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

Side by Side Diff: cc/test/test_gles2_interface.h

Issue 516663003: Surfaceless OutputSurface implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests for new bind/init order Created 6 years, 3 months 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
« no previous file with comments | « no previous file | 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TEST_TEST_GLES2_INTERFACE_H_ 5 #ifndef CC_TEST_TEST_GLES2_INTERFACE_H_
6 #define CC_TEST_TEST_GLES2_INTERFACE_H_ 6 #define CC_TEST_TEST_GLES2_INTERFACE_H_
7 7
8 #include "gpu/command_buffer/client/gles2_interface_stub.h" 8 #include "gpu/command_buffer/client/gles2_interface_stub.h"
9 9
10 namespace cc { 10 namespace cc {
11 class TestWebGraphicsContext3D; 11 class TestWebGraphicsContext3D;
12 12
13 class TestGLES2Interface : public gpu::gles2::GLES2InterfaceStub { 13 class TestGLES2Interface : public gpu::gles2::GLES2InterfaceStub {
14 public: 14 public:
15 explicit TestGLES2Interface(TestWebGraphicsContext3D* test_context); 15 explicit TestGLES2Interface(TestWebGraphicsContext3D* test_context);
16 virtual ~TestGLES2Interface(); 16 virtual ~TestGLES2Interface();
17 17
18 virtual void GenTextures(GLsizei n, GLuint* textures) OVERRIDE; 18 virtual void GenTextures(GLsizei n, GLuint* textures) OVERRIDE;
19 virtual void GenBuffers(GLsizei n, GLuint* buffers) OVERRIDE; 19 virtual void GenBuffers(GLsizei n, GLuint* buffers) OVERRIDE;
20 virtual void GenFramebuffers(GLsizei n, GLuint* framebuffers) OVERRIDE; 20 virtual void GenFramebuffers(GLsizei n, GLuint* framebuffers) OVERRIDE;
21 virtual void GenRenderbuffers(GLsizei n, GLuint* renderbuffers) OVERRIDE;
21 virtual void GenQueriesEXT(GLsizei n, GLuint* queries) OVERRIDE; 22 virtual void GenQueriesEXT(GLsizei n, GLuint* queries) OVERRIDE;
22 23
23 virtual void DeleteTextures(GLsizei n, const GLuint* textures) OVERRIDE; 24 virtual void DeleteTextures(GLsizei n, const GLuint* textures) OVERRIDE;
24 virtual void DeleteBuffers(GLsizei n, const GLuint* buffers) OVERRIDE; 25 virtual void DeleteBuffers(GLsizei n, const GLuint* buffers) OVERRIDE;
25 virtual void DeleteFramebuffers(GLsizei n, 26 virtual void DeleteFramebuffers(GLsizei n,
26 const GLuint* framebuffers) OVERRIDE; 27 const GLuint* framebuffers) OVERRIDE;
27 virtual void DeleteQueriesEXT(GLsizei n, const GLuint* queries) OVERRIDE; 28 virtual void DeleteQueriesEXT(GLsizei n, const GLuint* queries) OVERRIDE;
28 29
29 virtual GLuint CreateShader(GLenum type) OVERRIDE; 30 virtual GLuint CreateShader(GLenum type) OVERRIDE;
30 virtual GLuint CreateProgram() OVERRIDE; 31 virtual GLuint CreateProgram() OVERRIDE;
(...skipping 27 matching lines...) Expand all
58 GLclampf alpha) OVERRIDE; 59 GLclampf alpha) OVERRIDE;
59 virtual void ClearStencil(GLint s) OVERRIDE; 60 virtual void ClearStencil(GLint s) OVERRIDE;
60 virtual void Clear(GLbitfield mask) OVERRIDE; 61 virtual void Clear(GLbitfield mask) OVERRIDE;
61 virtual void Flush() OVERRIDE; 62 virtual void Flush() OVERRIDE;
62 virtual void Finish() OVERRIDE; 63 virtual void Finish() OVERRIDE;
63 virtual void ShallowFlushCHROMIUM() OVERRIDE; 64 virtual void ShallowFlushCHROMIUM() OVERRIDE;
64 virtual void Enable(GLenum cap) OVERRIDE; 65 virtual void Enable(GLenum cap) OVERRIDE;
65 virtual void Disable(GLenum cap) OVERRIDE; 66 virtual void Disable(GLenum cap) OVERRIDE;
66 67
67 virtual void BindBuffer(GLenum target, GLuint buffer) OVERRIDE; 68 virtual void BindBuffer(GLenum target, GLuint buffer) OVERRIDE;
69 virtual void BindRenderbuffer(GLenum target, GLuint buffer) OVERRIDE;
68 virtual void BindFramebuffer(GLenum target, GLuint buffer) OVERRIDE; 70 virtual void BindFramebuffer(GLenum target, GLuint buffer) OVERRIDE;
69 71
70 virtual void TexImage2D(GLenum target, 72 virtual void TexImage2D(GLenum target,
71 GLint level, 73 GLint level,
72 GLint internalformat, 74 GLint internalformat,
73 GLsizei width, 75 GLsizei width,
74 GLsizei height, 76 GLsizei height,
75 GLint border, 77 GLint border,
76 GLenum format, 78 GLenum format,
77 GLenum type, 79 GLenum type,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 GLenum usage) OVERRIDE; 132 GLenum usage) OVERRIDE;
131 virtual void DestroyImageCHROMIUM(GLuint image_id) OVERRIDE; 133 virtual void DestroyImageCHROMIUM(GLuint image_id) OVERRIDE;
132 virtual void* MapImageCHROMIUM(GLuint image_id) OVERRIDE; 134 virtual void* MapImageCHROMIUM(GLuint image_id) OVERRIDE;
133 virtual void GetImageParameterivCHROMIUM(GLuint image_id, 135 virtual void GetImageParameterivCHROMIUM(GLuint image_id,
134 GLenum pname, 136 GLenum pname,
135 GLint* params) OVERRIDE; 137 GLint* params) OVERRIDE;
136 virtual void UnmapImageCHROMIUM(GLuint image_id) OVERRIDE; 138 virtual void UnmapImageCHROMIUM(GLuint image_id) OVERRIDE;
137 virtual void BindTexImage2DCHROMIUM(GLenum target, GLint image_id) OVERRIDE; 139 virtual void BindTexImage2DCHROMIUM(GLenum target, GLint image_id) OVERRIDE;
138 virtual void ReleaseTexImage2DCHROMIUM(GLenum target, 140 virtual void ReleaseTexImage2DCHROMIUM(GLenum target,
139 GLint image_id) OVERRIDE; 141 GLint image_id) OVERRIDE;
142 virtual void FramebufferRenderbuffer(GLenum target,
143 GLenum attachment,
144 GLenum renderbuffertarget,
145 GLuint renderbuffer) OVERRIDE;
146 virtual void FramebufferTexture2D(GLenum target,
147 GLenum attachment,
148 GLenum textarget,
149 GLuint texture,
150 GLint level) OVERRIDE;
151 virtual void RenderbufferStorage(GLenum target,
152 GLenum internalformat,
153 GLsizei width,
154 GLsizei height) OVERRIDE;
140 155
141 virtual void* MapBufferCHROMIUM(GLuint target, GLenum access) OVERRIDE; 156 virtual void* MapBufferCHROMIUM(GLuint target, GLenum access) OVERRIDE;
142 virtual GLboolean UnmapBufferCHROMIUM(GLuint target) OVERRIDE; 157 virtual GLboolean UnmapBufferCHROMIUM(GLuint target) OVERRIDE;
143 virtual void BufferData(GLenum target, 158 virtual void BufferData(GLenum target,
144 GLsizeiptr size, 159 GLsizeiptr size,
145 const void* data, 160 const void* data,
146 GLenum usage) OVERRIDE; 161 GLenum usage) OVERRIDE;
147 162
148 virtual void WaitSyncPointCHROMIUM(GLuint sync_point) OVERRIDE; 163 virtual void WaitSyncPointCHROMIUM(GLuint sync_point) OVERRIDE;
149 virtual GLuint InsertSyncPointCHROMIUM() OVERRIDE; 164 virtual GLuint InsertSyncPointCHROMIUM() OVERRIDE;
(...skipping 24 matching lines...) Expand all
174 float device_scale) OVERRIDE; 189 float device_scale) OVERRIDE;
175 virtual void LoseContextCHROMIUM(GLenum current, GLenum other) OVERRIDE; 190 virtual void LoseContextCHROMIUM(GLenum current, GLenum other) OVERRIDE;
176 191
177 private: 192 private:
178 TestWebGraphicsContext3D* test_context_; 193 TestWebGraphicsContext3D* test_context_;
179 }; 194 };
180 195
181 } // namespace cc 196 } // namespace cc
182 197
183 #endif // CC_TEST_TEST_GLES2_INTERFACE_H_ 198 #endif // CC_TEST_TEST_GLES2_INTERFACE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/test/test_gles2_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698