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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 | 283 |
284 GLuint TestGLES2Interface::CreateGpuMemoryBufferImageCHROMIUM( | 284 GLuint TestGLES2Interface::CreateGpuMemoryBufferImageCHROMIUM( |
285 GLsizei width, | 285 GLsizei width, |
286 GLsizei height, | 286 GLsizei height, |
287 GLenum internalformat, | 287 GLenum internalformat, |
288 GLenum usage) { | 288 GLenum usage) { |
289 return test_context_->createGpuMemoryBufferImageCHROMIUM( | 289 return test_context_->createGpuMemoryBufferImageCHROMIUM( |
290 width, height, internalformat, usage); | 290 width, height, internalformat, usage); |
291 } | 291 } |
292 | 292 |
293 void TestGLES2Interface::GetImageivCHROMIUM(GLuint image_id, | |
294 GLenum param, | |
295 GLint* data) { | |
296 return test_context_->getImageivCHROMIUM(image_id, param, data); | |
297 } | |
298 | |
299 void TestGLES2Interface::BindTexImage2DCHROMIUM(GLenum target, GLint image_id) { | 293 void TestGLES2Interface::BindTexImage2DCHROMIUM(GLenum target, GLint image_id) { |
300 test_context_->bindTexImage2DCHROMIUM(target, image_id); | 294 test_context_->bindTexImage2DCHROMIUM(target, image_id); |
301 } | 295 } |
302 | 296 |
303 void TestGLES2Interface::ReleaseTexImage2DCHROMIUM(GLenum target, | 297 void TestGLES2Interface::ReleaseTexImage2DCHROMIUM(GLenum target, |
304 GLint image_id) { | 298 GLint image_id) { |
305 test_context_->releaseTexImage2DCHROMIUM(target, image_id); | 299 test_context_->releaseTexImage2DCHROMIUM(target, image_id); |
306 } | 300 } |
307 | 301 |
308 void* TestGLES2Interface::MapBufferCHROMIUM(GLuint target, GLenum access) { | 302 void* TestGLES2Interface::MapBufferCHROMIUM(GLuint target, GLenum access) { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 test_context_->loseContextCHROMIUM(current, other); | 394 test_context_->loseContextCHROMIUM(current, other); |
401 } | 395 } |
402 | 396 |
403 GLenum TestGLES2Interface::GetGraphicsResetStatusKHR() { | 397 GLenum TestGLES2Interface::GetGraphicsResetStatusKHR() { |
404 if (test_context_->isContextLost()) | 398 if (test_context_->isContextLost()) |
405 return GL_UNKNOWN_CONTEXT_RESET_KHR; | 399 return GL_UNKNOWN_CONTEXT_RESET_KHR; |
406 return GL_NO_ERROR; | 400 return GL_NO_ERROR; |
407 } | 401 } |
408 | 402 |
409 } // namespace cc | 403 } // namespace cc |
OLD | NEW |