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

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: 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
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..87b6897b857605fb9dcd69682936a5427255e730
--- /dev/null
+++ b/cc/test/test_gles2_interface.h
@@ -0,0 +1,32 @@
+// 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 UseProgram(GLuint program) OVERRIDE;
+
+ private:
+ TestWebGraphicsContext3D* test_context_;
+};
+
+} // namespace cc
+
+
+#endif // CC_TEST_TEST_GLES2_INTERFACE_H_

Powered by Google App Engine
This is Rietveld 408576698