| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_TEST_TEST_GLES2_INTERFACE_H_ |
| 6 #define CC_TEST_TEST_GLES2_INTERFACE_H_ |
| 7 |
| 8 #include "gpu/command_buffer/client/gles2_interface_stub.h" |
| 9 |
| 10 namespace cc { |
| 11 class TestWebGraphicsContext3D; |
| 12 |
| 13 class TestGLES2Interface : public gpu::gles2::GLES2InterfaceStub { |
| 14 public: |
| 15 explicit TestGLES2Interface(TestWebGraphicsContext3D* test_context); |
| 16 virtual ~TestGLES2Interface(); |
| 17 |
| 18 virtual GLuint CreateShader(GLenum type) OVERRIDE; |
| 19 virtual GLuint CreateProgram() OVERRIDE; |
| 20 virtual void GetShaderiv(GLuint shader, GLenum pname, GLint* params) OVERRIDE; |
| 21 virtual void GetProgramiv(GLuint program, |
| 22 GLenum pname, |
| 23 GLint* params) OVERRIDE; |
| 24 virtual void GetShaderPrecisionFormat(GLenum shadertype, |
| 25 GLenum precisiontype, |
| 26 GLint* range, |
| 27 GLint* precision) OVERRIDE; |
| 28 virtual void UseProgram(GLuint program) OVERRIDE; |
| 29 |
| 30 private: |
| 31 TestWebGraphicsContext3D* test_context_; |
| 32 }; |
| 33 |
| 34 } // namespace cc |
| 35 |
| 36 #endif // CC_TEST_TEST_GLES2_INTERFACE_H_ |
| OLD | NEW |