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

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

Issue 2388653002: gpu: Add CHROMIUM_texture_from_image spec and fence support.
Patch Set: rebase Created 4 years, 1 month 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 279
280 GLuint TestGLES2Interface::CreateGpuMemoryBufferImageCHROMIUM( 280 GLuint TestGLES2Interface::CreateGpuMemoryBufferImageCHROMIUM(
281 GLsizei width, 281 GLsizei width,
282 GLsizei height, 282 GLsizei height,
283 GLenum internalformat, 283 GLenum internalformat,
284 GLenum usage) { 284 GLenum usage) {
285 return test_context_->createGpuMemoryBufferImageCHROMIUM( 285 return test_context_->createGpuMemoryBufferImageCHROMIUM(
286 width, height, internalformat, usage); 286 width, height, internalformat, usage);
287 } 287 }
288 288
289 void TestGLES2Interface::BindTexImage2DCHROMIUM(GLenum target, GLint image_id) { 289 void TestGLES2Interface::BindTexImage2DCHROMIUM(GLenum target,
290 test_context_->bindTexImage2DCHROMIUM(target, image_id); 290 GLint image_id,
291 GLint fence_id) {
292 test_context_->bindTexImage2DCHROMIUM(target, image_id, fence_id);
291 } 293 }
292 294
293 void TestGLES2Interface::ReleaseTexImage2DCHROMIUM(GLenum target, 295 void TestGLES2Interface::ReleaseTexImage2DCHROMIUM(GLenum target,
294 GLint image_id) { 296 GLint image_id) {
295 test_context_->releaseTexImage2DCHROMIUM(target, image_id); 297 test_context_->releaseTexImage2DCHROMIUM(target, image_id);
296 } 298 }
297 299
298 void* TestGLES2Interface::MapBufferCHROMIUM(GLuint target, GLenum access) { 300 void* TestGLES2Interface::MapBufferCHROMIUM(GLuint target, GLenum access) {
299 return test_context_->mapBufferCHROMIUM(target, access); 301 return test_context_->mapBufferCHROMIUM(target, access);
300 } 302 }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 return GL_NO_ERROR; 398 return GL_NO_ERROR;
397 } 399 }
398 400
399 void TestGLES2Interface::set_test_context(TestWebGraphicsContext3D* context) { 401 void TestGLES2Interface::set_test_context(TestWebGraphicsContext3D* context) {
400 DCHECK(!test_context_); 402 DCHECK(!test_context_);
401 test_context_ = context; 403 test_context_ = context;
402 InitializeTestContext(test_context_); 404 InitializeTestContext(test_context_);
403 } 405 }
404 406
405 } // namespace cc 407 } // 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