OLD | NEW |
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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 GLsizei image_size, | 299 GLsizei image_size, |
300 const void* data) { | 300 const void* data) { |
301 test_context_->compressedTexImage2D( | 301 test_context_->compressedTexImage2D( |
302 target, level, internalformat, width, height, border, image_size, data); | 302 target, level, internalformat, width, height, border, image_size, data); |
303 } | 303 } |
304 | 304 |
305 void TestGLES2Interface::WaitAsyncTexImage2DCHROMIUM(GLenum target) { | 305 void TestGLES2Interface::WaitAsyncTexImage2DCHROMIUM(GLenum target) { |
306 test_context_->waitAsyncTexImage2DCHROMIUM(target); | 306 test_context_->waitAsyncTexImage2DCHROMIUM(target); |
307 } | 307 } |
308 | 308 |
309 GLuint TestGLES2Interface::CreateImageCHROMIUM(GLsizei width, | 309 GLuint TestGLES2Interface::CreateImageCHROMIUM(ClientBuffer buffer, |
| 310 GLsizei width, |
310 GLsizei height, | 311 GLsizei height, |
311 GLenum internalformat, | 312 GLenum internalformat) { |
312 GLenum usage) { | 313 return test_context_->createImageCHROMIUM(width, height, internalformat); |
313 return test_context_->createImageCHROMIUM( | |
314 width, height, internalformat, usage); | |
315 } | 314 } |
316 | 315 |
317 void TestGLES2Interface::DestroyImageCHROMIUM(GLuint image_id) { | 316 void TestGLES2Interface::DestroyImageCHROMIUM(GLuint image_id) { |
318 test_context_->destroyImageCHROMIUM(image_id); | 317 test_context_->destroyImageCHROMIUM(image_id); |
319 } | 318 } |
320 | 319 |
321 void* TestGLES2Interface::MapImageCHROMIUM(GLuint image_id) { | |
322 return test_context_->mapImageCHROMIUM(image_id); | |
323 } | |
324 | |
325 void TestGLES2Interface::GetImageParameterivCHROMIUM(GLuint image_id, | |
326 GLenum pname, | |
327 GLint* params) { | |
328 test_context_->getImageParameterivCHROMIUM(image_id, pname, params); | |
329 } | |
330 | |
331 void TestGLES2Interface::UnmapImageCHROMIUM(GLuint image_id) { | |
332 test_context_->unmapImageCHROMIUM(image_id); | |
333 } | |
334 | |
335 GLuint TestGLES2Interface::CreateGpuMemoryBufferImageCHROMIUM( | |
336 GLsizei width, | |
337 GLsizei height, | |
338 GLenum internalformat, | |
339 GLenum usage) { | |
340 return test_context_->createGpuMemoryBufferImageCHROMIUM( | |
341 width, height, internalformat, usage); | |
342 } | |
343 | |
344 void TestGLES2Interface::BindTexImage2DCHROMIUM(GLenum target, GLint image_id) { | 320 void TestGLES2Interface::BindTexImage2DCHROMIUM(GLenum target, GLint image_id) { |
345 test_context_->bindTexImage2DCHROMIUM(target, image_id); | 321 test_context_->bindTexImage2DCHROMIUM(target, image_id); |
346 } | 322 } |
347 | 323 |
348 void TestGLES2Interface::ReleaseTexImage2DCHROMIUM(GLenum target, | 324 void TestGLES2Interface::ReleaseTexImage2DCHROMIUM(GLenum target, |
349 GLint image_id) { | 325 GLint image_id) { |
350 test_context_->releaseTexImage2DCHROMIUM(target, image_id); | 326 test_context_->releaseTexImage2DCHROMIUM(target, image_id); |
351 } | 327 } |
352 | 328 |
353 void* TestGLES2Interface::MapBufferCHROMIUM(GLuint target, GLenum access) { | 329 void* TestGLES2Interface::MapBufferCHROMIUM(GLuint target, GLenum access) { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 GLuint height, | 399 GLuint height, |
424 float device_scale) { | 400 float device_scale) { |
425 test_context_->reshapeWithScaleFactor(width, height, device_scale); | 401 test_context_->reshapeWithScaleFactor(width, height, device_scale); |
426 } | 402 } |
427 | 403 |
428 void TestGLES2Interface::LoseContextCHROMIUM(GLenum current, GLenum other) { | 404 void TestGLES2Interface::LoseContextCHROMIUM(GLenum current, GLenum other) { |
429 test_context_->loseContextCHROMIUM(current, other); | 405 test_context_->loseContextCHROMIUM(current, other); |
430 } | 406 } |
431 | 407 |
432 } // namespace cc | 408 } // namespace cc |
OLD | NEW |