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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 test_context_->compressedTexImage2D( | 268 test_context_->compressedTexImage2D( |
269 target, level, internalformat, width, height, border, image_size, data); | 269 target, level, internalformat, width, height, border, image_size, data); |
270 } | 270 } |
271 | 271 |
272 void TestGLES2Interface::WaitAsyncTexImage2DCHROMIUM(GLenum target) { | 272 void TestGLES2Interface::WaitAsyncTexImage2DCHROMIUM(GLenum target) { |
273 test_context_->waitAsyncTexImage2DCHROMIUM(target); | 273 test_context_->waitAsyncTexImage2DCHROMIUM(target); |
274 } | 274 } |
275 | 275 |
276 GLuint TestGLES2Interface::CreateImageCHROMIUM(GLsizei width, | 276 GLuint TestGLES2Interface::CreateImageCHROMIUM(GLsizei width, |
277 GLsizei height, | 277 GLsizei height, |
278 GLenum internalformat) { | 278 GLenum internalformat, |
279 return test_context_->createImageCHROMIUM(width, height, internalformat); | 279 GLenum usage) { |
| 280 return test_context_->createImageCHROMIUM( |
| 281 width, height, internalformat, usage); |
280 } | 282 } |
281 | 283 |
282 void TestGLES2Interface::DestroyImageCHROMIUM(GLuint image_id) { | 284 void TestGLES2Interface::DestroyImageCHROMIUM(GLuint image_id) { |
283 test_context_->destroyImageCHROMIUM(image_id); | 285 test_context_->destroyImageCHROMIUM(image_id); |
284 } | 286 } |
285 | 287 |
286 void* TestGLES2Interface::MapImageCHROMIUM(GLuint image_id, GLenum access) { | 288 void* TestGLES2Interface::MapImageCHROMIUM(GLuint image_id) { |
287 return test_context_->mapImageCHROMIUM(image_id, access); | 289 return test_context_->mapImageCHROMIUM(image_id); |
288 } | 290 } |
289 | 291 |
290 void TestGLES2Interface::GetImageParameterivCHROMIUM(GLuint image_id, | 292 void TestGLES2Interface::GetImageParameterivCHROMIUM(GLuint image_id, |
291 GLenum pname, | 293 GLenum pname, |
292 GLint* params) { | 294 GLint* params) { |
293 test_context_->getImageParameterivCHROMIUM(image_id, pname, params); | 295 test_context_->getImageParameterivCHROMIUM(image_id, pname, params); |
294 } | 296 } |
295 | 297 |
296 void TestGLES2Interface::UnmapImageCHROMIUM(GLuint image_id) { | 298 void TestGLES2Interface::UnmapImageCHROMIUM(GLuint image_id) { |
297 test_context_->unmapImageCHROMIUM(image_id); | 299 test_context_->unmapImageCHROMIUM(image_id); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 GLuint height, | 369 GLuint height, |
368 float device_scale) { | 370 float device_scale) { |
369 test_context_->reshapeWithScaleFactor(width, height, device_scale); | 371 test_context_->reshapeWithScaleFactor(width, height, device_scale); |
370 } | 372 } |
371 | 373 |
372 void TestGLES2Interface::LoseContextCHROMIUM(GLenum current, GLenum other) { | 374 void TestGLES2Interface::LoseContextCHROMIUM(GLenum current, GLenum other) { |
373 test_context_->loseContextCHROMIUM(current, other); | 375 test_context_->loseContextCHROMIUM(current, other); |
374 } | 376 } |
375 | 377 |
376 } // namespace cc | 378 } // namespace cc |
OLD | NEW |