Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / third_party / angle / tests / perf_tests / PointSprites.h
1 //
2 // Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6
7 #include "SimpleBenchmark.h"
8
9 struct PointSpritesParams : public BenchmarkParams
10 {
11     virtual std::string suffix() const;
12
13     unsigned int count;
14     float size;
15     unsigned int numVaryings;
16
17     // static parameters
18     unsigned int iterations;
19 };
20
21 class PointSpritesBenchmark : public SimpleBenchmark
22 {
23 public:
24     PointSpritesBenchmark(const PointSpritesParams &params);
25
26     virtual bool initializeBenchmark();
27     virtual void destroyBenchmark();
28     virtual void beginDrawBenchmark();
29     virtual void drawBenchmark();
30
31 private:
32     DISALLOW_COPY_AND_ASSIGN(PointSpritesBenchmark);
33
34     GLuint mProgram;
35     GLuint mBuffer;
36
37     const PointSpritesParams mParams;
38 };