summaryrefslogtreecommitdiffstats
path: root/cc/test/test_gles2_interface.h
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-11 06:51:51 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-11 06:51:51 +0000
commitd3232584bba32b0d3014d5a64b11ef0e480bf8f8 (patch)
tree3c9fe98754049110fc390edcc5cae5fe9dc0ef52 /cc/test/test_gles2_interface.h
parent38fe74eafda35851b09f8f3ebcabc013832ce047 (diff)
downloadchromium_src-d3232584bba32b0d3014d5a64b11ef0e480bf8f8.zip
chromium_src-d3232584bba32b0d3014d5a64b11ef0e480bf8f8.tar.gz
chromium_src-d3232584bba32b0d3014d5a64b11ef0e480bf8f8.tar.bz2
Use GLES2Interface in GLRenderer
This ports GLRenderer to (almost) exclusively use GLES2Interface as the context type instead of WebGraphicsContext3D. The remaining users within gl_renderer.cc are being addressed in parallel patches. Many callers outside of gl_renderer.cc still use the WebGraphicsContext3D type, so GLRenderer still exposes a pointer of that type. They'll be migrated piece by piece. Since this patch changes the line length of many lines due to changing the context pointer type from "context_" to "gl_" and changing the length of some of the context functions, I've clang-format'd the whole file. BUG=181120 R=danakj@chromium.org Review URL: https://codereview.chromium.org/105553003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240041 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/test_gles2_interface.h')
-rw-r--r--cc/test/test_gles2_interface.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/cc/test/test_gles2_interface.h b/cc/test/test_gles2_interface.h
index c7f0637..419639f 100644
--- a/cc/test/test_gles2_interface.h
+++ b/cc/test/test_gles2_interface.h
@@ -15,8 +15,22 @@ class TestGLES2Interface : public gpu::gles2::GLES2InterfaceStub {
explicit TestGLES2Interface(TestWebGraphicsContext3D* test_context);
virtual ~TestGLES2Interface();
+ virtual void GenTextures(GLsizei n, GLuint* textures) OVERRIDE;
+ virtual void GenBuffers(GLsizei n, GLuint* buffers) OVERRIDE;
+ virtual void GenFramebuffers(GLsizei n, GLuint* framebuffers) OVERRIDE;
+ virtual void GenQueriesEXT(GLsizei n, GLuint* queries) OVERRIDE;
+
+ virtual void DeleteTextures(GLsizei n, const GLuint* textures) OVERRIDE;
+ virtual void DeleteBuffers(GLsizei n, const GLuint* buffers) OVERRIDE;
+ virtual void DeleteFramebuffers(GLsizei n,
+ const GLuint* framebuffers) OVERRIDE;
+ virtual void DeleteQueriesEXT(GLsizei n, const GLuint* queries) OVERRIDE;
+
virtual GLuint CreateShader(GLenum type) OVERRIDE;
virtual GLuint CreateProgram() OVERRIDE;
+
+ virtual void BindTexture(GLenum target, GLuint texture) OVERRIDE;
+
virtual void GetShaderiv(GLuint shader, GLenum pname, GLint* params) OVERRIDE;
virtual void GetProgramiv(GLuint program,
GLenum pname,
@@ -25,7 +39,49 @@ class TestGLES2Interface : public gpu::gles2::GLES2InterfaceStub {
GLenum precisiontype,
GLint* range,
GLint* precision) OVERRIDE;
+ virtual GLenum CheckFramebufferStatus(GLenum target) OVERRIDE;
+
+ virtual void ActiveTexture(GLenum target) OVERRIDE;
+ virtual void Viewport(GLint x, GLint y, GLsizei width, GLsizei height)
+ OVERRIDE;
virtual void UseProgram(GLuint program) OVERRIDE;
+ virtual void Scissor(GLint x, GLint y, GLsizei width, GLsizei height)
+ OVERRIDE;
+ virtual void DrawElements(GLenum mode,
+ GLsizei count,
+ GLenum type,
+ const void* indices) OVERRIDE;
+ virtual void ClearColor(GLclampf red,
+ GLclampf green,
+ GLclampf blue,
+ GLclampf alpha) OVERRIDE;
+ virtual void ClearStencil(GLint s) OVERRIDE;
+ virtual void Clear(GLbitfield mask) OVERRIDE;
+ virtual void Flush() OVERRIDE;
+ virtual void Finish() OVERRIDE;
+ virtual void Enable(GLenum cap) OVERRIDE;
+ virtual void Disable(GLenum cap) OVERRIDE;
+
+ virtual void BindBuffer(GLenum target, GLuint buffer) OVERRIDE;
+ virtual void BindFramebuffer(GLenum target, GLuint buffer) OVERRIDE;
+
+ virtual void* MapBufferCHROMIUM(GLuint target, GLenum access) OVERRIDE;
+ virtual GLboolean UnmapBufferCHROMIUM(GLuint target) OVERRIDE;
+ virtual void BufferData(GLenum target,
+ GLsizeiptr size,
+ const void* data,
+ GLenum usage) OVERRIDE;
+
+ virtual void WaitSyncPointCHROMIUM(GLuint sync_point) OVERRIDE;
+ virtual GLuint InsertSyncPointCHROMIUM() OVERRIDE;
+
+ virtual void BeginQueryEXT(GLenum target, GLuint id) OVERRIDE;
+ virtual void EndQueryEXT(GLenum target) OVERRIDE;
+
+ virtual void DiscardFramebufferEXT(GLenum target,
+ GLsizei count,
+ const GLenum* attachments) OVERRIDE;
+ virtual void GenMailboxCHROMIUM(GLbyte* mailbox) OVERRIDE;
private:
TestWebGraphicsContext3D* test_context_;