Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Side by Side Diff: cc/test/test_gles2_interface.cc

Issue 1974163003: Expose GpuMemoryBufferId through glGetImageivCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 GLint TestGLES2Interface::GetImageivCHROMIUM(GLuint image_id, GLenum param) {
303 return test_context_->getImageivCHROMIUM(image_id, param);
304 }
305
302 void TestGLES2Interface::BindTexImage2DCHROMIUM(GLenum target, GLint image_id) { 306 void TestGLES2Interface::BindTexImage2DCHROMIUM(GLenum target, GLint image_id) {
303 test_context_->bindTexImage2DCHROMIUM(target, image_id); 307 test_context_->bindTexImage2DCHROMIUM(target, image_id);
304 } 308 }
305 309
306 void TestGLES2Interface::ReleaseTexImage2DCHROMIUM(GLenum target, 310 void TestGLES2Interface::ReleaseTexImage2DCHROMIUM(GLenum target,
307 GLint image_id) { 311 GLint image_id) {
308 test_context_->releaseTexImage2DCHROMIUM(target, image_id); 312 test_context_->releaseTexImage2DCHROMIUM(target, image_id);
309 } 313 }
310 314
311 void* TestGLES2Interface::MapBufferCHROMIUM(GLuint target, GLenum access) { 315 void* TestGLES2Interface::MapBufferCHROMIUM(GLuint target, GLenum access) {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 test_context_->loseContextCHROMIUM(current, other); 407 test_context_->loseContextCHROMIUM(current, other);
404 } 408 }
405 409
406 GLenum TestGLES2Interface::GetGraphicsResetStatusKHR() { 410 GLenum TestGLES2Interface::GetGraphicsResetStatusKHR() {
407 if (test_context_->isContextLost()) 411 if (test_context_->isContextLost())
408 return GL_UNKNOWN_CONTEXT_RESET_KHR; 412 return GL_UNKNOWN_CONTEXT_RESET_KHR;
409 return GL_NO_ERROR; 413 return GL_NO_ERROR;
410 } 414 }
411 415
412 } // namespace cc 416 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698