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.
7 #include "SimpleBenchmark.h"
9 struct TexSubImageParams : public BenchmarkParams
15 unsigned int iterations;
17 virtual std::string name() const;
20 class TexSubImageBenchmark : public SimpleBenchmark
23 TexSubImageBenchmark(const TexSubImageParams ¶ms);
25 virtual bool initializeBenchmark();
26 virtual void destroyBenchmark();
27 virtual void beginDrawBenchmark();
28 virtual void drawBenchmark();
31 GLuint createTexture();
33 TexSubImageParams mParams;
35 // Handle to a program object
38 // Attribute locations