| 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 } | 221 } |
| 222 | 222 |
| 223 void TestGLES2Interface::TexStorage2DEXT(GLenum target, | 223 void TestGLES2Interface::TexStorage2DEXT(GLenum target, |
| 224 GLsizei levels, | 224 GLsizei levels, |
| 225 GLenum internalformat, | 225 GLenum internalformat, |
| 226 GLsizei width, | 226 GLsizei width, |
| 227 GLsizei height) { | 227 GLsizei height) { |
| 228 test_context_->texStorage2DEXT(target, levels, internalformat, width, height); | 228 test_context_->texStorage2DEXT(target, levels, internalformat, width, height); |
| 229 } | 229 } |
| 230 | 230 |
| 231 void TestGLES2Interface::TexImageIOSurface2DCHROMIUM(GLenum target, | |
| 232 GLsizei width, | |
| 233 GLsizei height, | |
| 234 GLuint io_surface_id, | |
| 235 GLuint plane) { | |
| 236 test_context_->texImageIOSurface2DCHROMIUM( | |
| 237 target, width, height, io_surface_id, plane); | |
| 238 } | |
| 239 | |
| 240 void TestGLES2Interface::TexParameteri(GLenum target, | 231 void TestGLES2Interface::TexParameteri(GLenum target, |
| 241 GLenum pname, | 232 GLenum pname, |
| 242 GLint param) { | 233 GLint param) { |
| 243 test_context_->texParameteri(target, pname, param); | 234 test_context_->texParameteri(target, pname, param); |
| 244 } | 235 } |
| 245 | 236 |
| 246 void TestGLES2Interface::FramebufferRenderbuffer(GLenum target, | 237 void TestGLES2Interface::FramebufferRenderbuffer(GLenum target, |
| 247 GLenum attachment, | 238 GLenum attachment, |
| 248 GLenum renderbuffertarget, | 239 GLenum renderbuffertarget, |
| 249 GLuint renderbuffer) { | 240 GLuint renderbuffer) { |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 test_context_->loseContextCHROMIUM(current, other); | 400 test_context_->loseContextCHROMIUM(current, other); |
| 410 } | 401 } |
| 411 | 402 |
| 412 GLenum TestGLES2Interface::GetGraphicsResetStatusKHR() { | 403 GLenum TestGLES2Interface::GetGraphicsResetStatusKHR() { |
| 413 if (test_context_->isContextLost()) | 404 if (test_context_->isContextLost()) |
| 414 return GL_UNKNOWN_CONTEXT_RESET_KHR; | 405 return GL_UNKNOWN_CONTEXT_RESET_KHR; |
| 415 return GL_NO_ERROR; | 406 return GL_NO_ERROR; |
| 416 } | 407 } |
| 417 | 408 |
| 418 } // namespace cc | 409 } // namespace cc |
| OLD | NEW |