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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 GLsizei image_size, | 303 GLsizei image_size, |
304 const void* data) { | 304 const void* data) { |
305 test_context_->compressedTexImage2D( | 305 test_context_->compressedTexImage2D( |
306 target, level, internalformat, width, height, border, image_size, data); | 306 target, level, internalformat, width, height, border, image_size, data); |
307 } | 307 } |
308 | 308 |
309 void TestGLES2Interface::WaitAsyncTexImage2DCHROMIUM(GLenum target) { | 309 void TestGLES2Interface::WaitAsyncTexImage2DCHROMIUM(GLenum target) { |
310 test_context_->waitAsyncTexImage2DCHROMIUM(target); | 310 test_context_->waitAsyncTexImage2DCHROMIUM(target); |
311 } | 311 } |
312 | 312 |
313 GLuint TestGLES2Interface::CreateImageCHROMIUM(ClientBuffer buffer, | 313 GLuint TestGLES2Interface::CreateImageCHROMIUM(ClientBuffer* buffers, |
314 GLsizei width, | 314 GLsizei width, |
315 GLsizei height, | 315 GLsizei height, |
316 GLenum internalformat) { | 316 GLenum internalformat) { |
317 return test_context_->createImageCHROMIUM( | 317 return test_context_->createImageCHROMIUM(buffers, width, height, |
318 buffer, width, height, internalformat); | 318 internalformat); |
319 } | 319 } |
320 | 320 |
321 void TestGLES2Interface::DestroyImageCHROMIUM(GLuint image_id) { | 321 void TestGLES2Interface::DestroyImageCHROMIUM(GLuint image_id) { |
322 test_context_->destroyImageCHROMIUM(image_id); | 322 test_context_->destroyImageCHROMIUM(image_id); |
323 } | 323 } |
324 | 324 |
325 GLuint TestGLES2Interface::CreateGpuMemoryBufferImageCHROMIUM( | 325 GLuint TestGLES2Interface::CreateGpuMemoryBufferImageCHROMIUM( |
326 GLsizei width, | 326 GLsizei width, |
327 GLsizei height, | 327 GLsizei height, |
328 GLenum internalformat, | 328 GLenum internalformat, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 GLuint height, | 413 GLuint height, |
414 float device_scale) { | 414 float device_scale) { |
415 test_context_->reshapeWithScaleFactor(width, height, device_scale); | 415 test_context_->reshapeWithScaleFactor(width, height, device_scale); |
416 } | 416 } |
417 | 417 |
418 void TestGLES2Interface::LoseContextCHROMIUM(GLenum current, GLenum other) { | 418 void TestGLES2Interface::LoseContextCHROMIUM(GLenum current, GLenum other) { |
419 test_context_->loseContextCHROMIUM(current, other); | 419 test_context_->loseContextCHROMIUM(current, other); |
420 } | 420 } |
421 | 421 |
422 } // namespace cc | 422 } // namespace cc |
OLD | NEW |