Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3791)

Unified Diff: cc/test/test_gles2_interface.h

Issue 93433004: Use GLES2Interface for shaders and programs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android_aosp warning Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/test_context_provider.cc ('k') | cc/test/test_gles2_interface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_gles2_interface.h
diff --git a/cc/test/test_gles2_interface.h b/cc/test/test_gles2_interface.h
new file mode 100644
index 0000000000000000000000000000000000000000..c7f06370ba54b599c7c1439b885f686ac2abf09e
--- /dev/null
+++ b/cc/test/test_gles2_interface.h
@@ -0,0 +1,36 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_TEST_TEST_GLES2_INTERFACE_H_
+#define CC_TEST_TEST_GLES2_INTERFACE_H_
+
+#include "gpu/command_buffer/client/gles2_interface_stub.h"
+
+namespace cc {
+class TestWebGraphicsContext3D;
+
+class TestGLES2Interface : public gpu::gles2::GLES2InterfaceStub {
+ public:
+ explicit TestGLES2Interface(TestWebGraphicsContext3D* test_context);
+ virtual ~TestGLES2Interface();
+
+ virtual GLuint CreateShader(GLenum type) OVERRIDE;
+ virtual GLuint CreateProgram() OVERRIDE;
+ virtual void GetShaderiv(GLuint shader, GLenum pname, GLint* params) OVERRIDE;
+ virtual void GetProgramiv(GLuint program,
+ GLenum pname,
+ GLint* params) OVERRIDE;
+ virtual void GetShaderPrecisionFormat(GLenum shadertype,
+ GLenum precisiontype,
+ GLint* range,
+ GLint* precision) OVERRIDE;
+ virtual void UseProgram(GLuint program) OVERRIDE;
+
+ private:
+ TestWebGraphicsContext3D* test_context_;
+};
+
+} // namespace cc
+
+#endif // CC_TEST_TEST_GLES2_INTERFACE_H_
« no previous file with comments | « cc/test/test_context_provider.cc ('k') | cc/test/test_gles2_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698