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( | 313 return test_context_->createImageCHROMIUM( |
314 width, height, internalformat, usage); | 314 buffer, width, height, internalformat); |
315 } | 315 } |
316 | 316 |
317 void TestGLES2Interface::DestroyImageCHROMIUM(GLuint image_id) { | 317 void TestGLES2Interface::DestroyImageCHROMIUM(GLuint image_id) { |
318 test_context_->destroyImageCHROMIUM(image_id); | 318 test_context_->destroyImageCHROMIUM(image_id); |
319 } | 319 } |
320 | 320 |
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( | 321 GLuint TestGLES2Interface::CreateGpuMemoryBufferImageCHROMIUM( |
336 GLsizei width, | 322 GLsizei width, |
337 GLsizei height, | 323 GLsizei height, |
338 GLenum internalformat, | 324 GLenum internalformat, |
339 GLenum usage) { | 325 GLenum usage) { |
340 return test_context_->createGpuMemoryBufferImageCHROMIUM( | 326 return test_context_->createGpuMemoryBufferImageCHROMIUM( |
341 width, height, internalformat, usage); | 327 width, height, internalformat, usage); |
342 } | 328 } |
343 | 329 |
344 void TestGLES2Interface::BindTexImage2DCHROMIUM(GLenum target, GLint image_id) { | 330 void TestGLES2Interface::BindTexImage2DCHROMIUM(GLenum target, GLint image_id) { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 GLuint height, | 409 GLuint height, |
424 float device_scale) { | 410 float device_scale) { |
425 test_context_->reshapeWithScaleFactor(width, height, device_scale); | 411 test_context_->reshapeWithScaleFactor(width, height, device_scale); |
426 } | 412 } |
427 | 413 |
428 void TestGLES2Interface::LoseContextCHROMIUM(GLenum current, GLenum other) { | 414 void TestGLES2Interface::LoseContextCHROMIUM(GLenum current, GLenum other) { |
429 test_context_->loseContextCHROMIUM(current, other); | 415 test_context_->loseContextCHROMIUM(current, other); |
430 } | 416 } |
431 | 417 |
432 } // namespace cc | 418 } // namespace cc |
OLD | NEW |