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

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

Issue 2134793002: Remove the command buffer method glGetImageivCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge conflict. Created 4 years, 5 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
« no previous file with comments | « cc/test/test_gles2_interface.h ('k') | cc/test/test_web_graphics_context_3d.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « cc/test/test_gles2_interface.h ('k') | cc/test/test_web_graphics_context_3d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698