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

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

Issue 105103004: Convert cc resource system over to GLES2Interface (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/test/test_gles2_interface.h ('k') | no next file » | 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 #include "cc/test/test_gles2_interface.h" 5 #include "cc/test/test_gles2_interface.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "cc/test/test_web_graphics_context_3d.h" 8 #include "cc/test/test_web_graphics_context_3d.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 70 }
71 71
72 GLuint TestGLES2Interface::CreateProgram() { 72 GLuint TestGLES2Interface::CreateProgram() {
73 return test_context_->createProgram(); 73 return test_context_->createProgram();
74 } 74 }
75 75
76 void TestGLES2Interface::BindTexture(GLenum target, GLuint texture) { 76 void TestGLES2Interface::BindTexture(GLenum target, GLuint texture) {
77 test_context_->bindTexture(target, texture); 77 test_context_->bindTexture(target, texture);
78 } 78 }
79 79
80 void TestGLES2Interface::GetIntegerv(GLenum pname, GLint* params) {
81 test_context_->getIntegerv(pname, params);
82 }
83
80 void TestGLES2Interface::GetShaderiv(GLuint shader, 84 void TestGLES2Interface::GetShaderiv(GLuint shader,
81 GLenum pname, 85 GLenum pname,
82 GLint* params) { 86 GLint* params) {
83 test_context_->getShaderiv(shader, pname, params); 87 test_context_->getShaderiv(shader, pname, params);
84 } 88 }
85 89
86 void TestGLES2Interface::GetProgramiv(GLuint program, 90 void TestGLES2Interface::GetProgramiv(GLuint program,
87 GLenum pname, 91 GLenum pname,
88 GLint* params) { 92 GLint* params) {
89 test_context_->getProgramiv(program, pname, params); 93 test_context_->getProgramiv(program, pname, params);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void TestGLES2Interface::ClearStencil(GLint s) { 145 void TestGLES2Interface::ClearStencil(GLint s) {
142 test_context_->clearStencil(s); 146 test_context_->clearStencil(s);
143 } 147 }
144 148
145 void TestGLES2Interface::Clear(GLbitfield mask) { test_context_->clear(mask); } 149 void TestGLES2Interface::Clear(GLbitfield mask) { test_context_->clear(mask); }
146 150
147 void TestGLES2Interface::Flush() { test_context_->flush(); } 151 void TestGLES2Interface::Flush() { test_context_->flush(); }
148 152
149 void TestGLES2Interface::Finish() { test_context_->finish(); } 153 void TestGLES2Interface::Finish() { test_context_->finish(); }
150 154
155 void TestGLES2Interface::ShallowFlushCHROMIUM() {
156 test_context_->shallowFlushCHROMIUM();
157 }
158
151 void TestGLES2Interface::Enable(GLenum cap) { test_context_->enable(cap); } 159 void TestGLES2Interface::Enable(GLenum cap) { test_context_->enable(cap); }
152 160
153 void TestGLES2Interface::Disable(GLenum cap) { test_context_->disable(cap); } 161 void TestGLES2Interface::Disable(GLenum cap) { test_context_->disable(cap); }
154 162
155 void TestGLES2Interface::BindFramebuffer(GLenum target, GLuint buffer) { 163 void TestGLES2Interface::BindFramebuffer(GLenum target, GLuint buffer) {
156 test_context_->bindFramebuffer(target, buffer); 164 test_context_->bindFramebuffer(target, buffer);
157 } 165 }
158 166
159 void TestGLES2Interface::BindBuffer(GLenum target, GLuint buffer) { 167 void TestGLES2Interface::BindBuffer(GLenum target, GLuint buffer) {
160 test_context_->bindBuffer(target, buffer); 168 test_context_->bindBuffer(target, buffer);
161 } 169 }
162 170
171 void TestGLES2Interface::TexImage2D(GLenum target,
172 GLint level,
173 GLint internalformat,
174 GLsizei width,
175 GLsizei height,
176 GLint border,
177 GLenum format,
178 GLenum type,
179 const void* pixels) {
180 test_context_->texImage2D(target,
181 level,
182 internalformat,
183 width,
184 height,
185 border,
186 format,
187 type,
188 pixels);
189 }
190
191 void TestGLES2Interface::TexSubImage2D(GLenum target,
192 GLint level,
193 GLint xoffset,
194 GLint yoffset,
195 GLsizei width,
196 GLsizei height,
197 GLenum format,
198 GLenum type,
199 const void* pixels) {
200 test_context_->texSubImage2D(
201 target, level, xoffset, yoffset, width, height, format, type, pixels);
202 }
203
204 void TestGLES2Interface::TexStorage2DEXT(GLenum target,
205 GLsizei levels,
206 GLenum internalformat,
207 GLsizei width,
208 GLsizei height) {
209 test_context_->texStorage2DEXT(target, levels, internalformat, width, height);
210 }
211
212 void TestGLES2Interface::TexParameteri(GLenum target,
213 GLenum pname,
214 GLint param) {
215 test_context_->texParameteri(target, pname, param);
216 }
217
218 void TestGLES2Interface::AsyncTexImage2DCHROMIUM(GLenum target,
219 GLint level,
220 GLint internalformat,
221 GLsizei width,
222 GLsizei height,
223 GLint border,
224 GLenum format,
225 GLenum type,
226 const void* pixels) {
227 test_context_->asyncTexImage2DCHROMIUM(target,
228 level,
229 internalformat,
230 width,
231 height,
232 border,
233 format,
234 type,
235 pixels);
236 }
237
238 void TestGLES2Interface::AsyncTexSubImage2DCHROMIUM(GLenum target,
239 GLint level,
240 GLint xoffset,
241 GLint yoffset,
242 GLsizei width,
243 GLsizei height,
244 GLenum format,
245 GLenum type,
246 const void* pixels) {
247 test_context_->asyncTexSubImage2DCHROMIUM(
248 target, level, xoffset, yoffset, width, height, format, type, pixels);
249 }
250
251 void TestGLES2Interface::CompressedTexImage2D(GLenum target,
252 GLint level,
253 GLenum internalformat,
254 GLsizei width,
255 GLsizei height,
256 GLint border,
257 GLsizei image_size,
258 const void* data) {
259 test_context_->compressedTexImage2D(
260 target, level, internalformat, width, height, border, image_size, data);
261 }
262
263 void TestGLES2Interface::WaitAsyncTexImage2DCHROMIUM(GLenum target) {
264 test_context_->waitAsyncTexImage2DCHROMIUM(target);
265 }
266
267 GLuint TestGLES2Interface::CreateImageCHROMIUM(GLsizei width,
268 GLsizei height,
269 GLenum internalformat) {
270 return test_context_->createImageCHROMIUM(width, height, internalformat);
271 }
272
273 void TestGLES2Interface::DestroyImageCHROMIUM(GLuint image_id) {
274 test_context_->destroyImageCHROMIUM(image_id);
275 }
276
277 void* TestGLES2Interface::MapImageCHROMIUM(GLuint image_id, GLenum access) {
278 return test_context_->mapImageCHROMIUM(image_id, access);
279 }
280
281 void TestGLES2Interface::GetImageParameterivCHROMIUM(GLuint image_id,
282 GLenum pname,
283 GLint* params) {
284 test_context_->getImageParameterivCHROMIUM(image_id, pname, params);
285 }
286
287 void TestGLES2Interface::UnmapImageCHROMIUM(GLuint image_id) {
288 test_context_->unmapImageCHROMIUM(image_id);
289 }
290
291 void TestGLES2Interface::BindTexImage2DCHROMIUM(GLenum target, GLint image_id) {
292 test_context_->bindTexImage2DCHROMIUM(target, image_id);
293 }
294
295 void TestGLES2Interface::ReleaseTexImage2DCHROMIUM(GLenum target,
296 GLint image_id) {
297 test_context_->releaseTexImage2DCHROMIUM(target, image_id);
298 }
299
163 void* TestGLES2Interface::MapBufferCHROMIUM(GLuint target, GLenum access) { 300 void* TestGLES2Interface::MapBufferCHROMIUM(GLuint target, GLenum access) {
164 return test_context_->mapBufferCHROMIUM(target, access); 301 return test_context_->mapBufferCHROMIUM(target, access);
165 } 302 }
166 303
167 GLboolean TestGLES2Interface::UnmapBufferCHROMIUM(GLuint target) { 304 GLboolean TestGLES2Interface::UnmapBufferCHROMIUM(GLuint target) {
168 return test_context_->unmapBufferCHROMIUM(target); 305 return test_context_->unmapBufferCHROMIUM(target);
169 } 306 }
170 307
171 void TestGLES2Interface::BufferData(GLenum target, 308 void TestGLES2Interface::BufferData(GLenum target,
172 GLsizeiptr size, 309 GLsizeiptr size,
(...skipping 11 matching lines...) Expand all
184 } 321 }
185 322
186 void TestGLES2Interface::BeginQueryEXT(GLenum target, GLuint id) { 323 void TestGLES2Interface::BeginQueryEXT(GLenum target, GLuint id) {
187 test_context_->beginQueryEXT(target, id); 324 test_context_->beginQueryEXT(target, id);
188 } 325 }
189 326
190 void TestGLES2Interface::EndQueryEXT(GLenum target) { 327 void TestGLES2Interface::EndQueryEXT(GLenum target) {
191 test_context_->endQueryEXT(target); 328 test_context_->endQueryEXT(target);
192 } 329 }
193 330
331 void TestGLES2Interface::GetQueryObjectuivEXT(GLuint id,
332 GLenum pname,
333 GLuint* params) {
334 test_context_->getQueryObjectuivEXT(id, pname, params);
335 }
336
194 void TestGLES2Interface::DiscardFramebufferEXT(GLenum target, 337 void TestGLES2Interface::DiscardFramebufferEXT(GLenum target,
195 GLsizei count, 338 GLsizei count,
196 const GLenum* attachments) { 339 const GLenum* attachments) {
197 test_context_->discardFramebufferEXT(target, count, attachments); 340 test_context_->discardFramebufferEXT(target, count, attachments);
198 } 341 }
199 342
200 void TestGLES2Interface::GenMailboxCHROMIUM(GLbyte* mailbox) { 343 void TestGLES2Interface::GenMailboxCHROMIUM(GLbyte* mailbox) {
201 test_context_->genMailboxCHROMIUM(mailbox); 344 test_context_->genMailboxCHROMIUM(mailbox);
202 } 345 }
203 346
347 void TestGLES2Interface::ProduceTextureCHROMIUM(GLenum target,
348 const GLbyte* mailbox) {
349 test_context_->produceTextureCHROMIUM(target, mailbox);
350 }
351
352 void TestGLES2Interface::ConsumeTextureCHROMIUM(GLenum target,
353 const GLbyte* mailbox) {
354 test_context_->consumeTextureCHROMIUM(target, mailbox);
355 }
356
204 } // namespace cc 357 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/test_gles2_interface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698