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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/test/test_context_provider.cc ('k') | cc/test/test_gles2_interface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« 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