| 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 #include "gpu/GLES2/gl2extchromium.h" | 9 #include "gpu/GLES2/gl2extchromium.h" |
| 10 | 10 |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 | 292 |
| 293 GLuint TestGLES2Interface::CreateGpuMemoryBufferImageCHROMIUM( | 293 GLuint TestGLES2Interface::CreateGpuMemoryBufferImageCHROMIUM( |
| 294 GLsizei width, | 294 GLsizei width, |
| 295 GLsizei height, | 295 GLsizei height, |
| 296 GLenum internalformat, | 296 GLenum internalformat, |
| 297 GLenum usage) { | 297 GLenum usage) { |
| 298 return test_context_->createGpuMemoryBufferImageCHROMIUM( | 298 return test_context_->createGpuMemoryBufferImageCHROMIUM( |
| 299 width, height, internalformat, usage); | 299 width, height, internalformat, usage); |
| 300 } | 300 } |
| 301 | 301 |
| 302 void TestGLES2Interface::GetImageivCHROMIUM(GLuint image_id, |
| 303 GLenum param, |
| 304 GLint* data) { |
| 305 return test_context_->getImageivCHROMIUM(image_id, param, data); |
| 306 } |
| 307 |
| 302 void TestGLES2Interface::BindTexImage2DCHROMIUM(GLenum target, GLint image_id) { | 308 void TestGLES2Interface::BindTexImage2DCHROMIUM(GLenum target, GLint image_id) { |
| 303 test_context_->bindTexImage2DCHROMIUM(target, image_id); | 309 test_context_->bindTexImage2DCHROMIUM(target, image_id); |
| 304 } | 310 } |
| 305 | 311 |
| 306 void TestGLES2Interface::ReleaseTexImage2DCHROMIUM(GLenum target, | 312 void TestGLES2Interface::ReleaseTexImage2DCHROMIUM(GLenum target, |
| 307 GLint image_id) { | 313 GLint image_id) { |
| 308 test_context_->releaseTexImage2DCHROMIUM(target, image_id); | 314 test_context_->releaseTexImage2DCHROMIUM(target, image_id); |
| 309 } | 315 } |
| 310 | 316 |
| 311 void* TestGLES2Interface::MapBufferCHROMIUM(GLuint target, GLenum access) { | 317 void* TestGLES2Interface::MapBufferCHROMIUM(GLuint target, GLenum access) { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 test_context_->loseContextCHROMIUM(current, other); | 409 test_context_->loseContextCHROMIUM(current, other); |
| 404 } | 410 } |
| 405 | 411 |
| 406 GLenum TestGLES2Interface::GetGraphicsResetStatusKHR() { | 412 GLenum TestGLES2Interface::GetGraphicsResetStatusKHR() { |
| 407 if (test_context_->isContextLost()) | 413 if (test_context_->isContextLost()) |
| 408 return GL_UNKNOWN_CONTEXT_RESET_KHR; | 414 return GL_UNKNOWN_CONTEXT_RESET_KHR; |
| 409 return GL_NO_ERROR; | 415 return GL_NO_ERROR; |
| 410 } | 416 } |
| 411 | 417 |
| 412 } // namespace cc | 418 } // namespace cc |
| OLD | NEW |