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

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

Issue 2443023002: gpu: Add CHROMIUM_copy_image extension.
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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 GLint image_id, 290 GLint image_id,
291 GLint fence_id) { 291 GLint fence_id) {
292 test_context_->bindTexImage2DCHROMIUM(target, image_id, fence_id); 292 test_context_->bindTexImage2DCHROMIUM(target, image_id, fence_id);
293 } 293 }
294 294
295 void TestGLES2Interface::ReleaseTexImage2DCHROMIUM(GLenum target, 295 void TestGLES2Interface::ReleaseTexImage2DCHROMIUM(GLenum target,
296 GLint image_id) { 296 GLint image_id) {
297 test_context_->releaseTexImage2DCHROMIUM(target, image_id); 297 test_context_->releaseTexImage2DCHROMIUM(target, image_id);
298 } 298 }
299 299
300 void TestGLES2Interface::CopyImageSubDataCHROMIUM(GLint source_image_id,
301 GLint dest_texture_id,
302 GLint xoffset,
303 GLint yoffset,
304 GLint x,
305 GLint y,
306 GLsizei width,
307 GLsizei height,
308 GLint in_fence_id,
309 GLint out_fence_id) {
310 test_context_->copyImageSubDataCHROMIUM(source_image_id, dest_texture_id,
311 xoffset, yoffset, x, y, width, height,
312 in_fence_id, out_fence_id);
313 }
314
300 void* TestGLES2Interface::MapBufferCHROMIUM(GLuint target, GLenum access) { 315 void* TestGLES2Interface::MapBufferCHROMIUM(GLuint target, GLenum access) {
301 return test_context_->mapBufferCHROMIUM(target, access); 316 return test_context_->mapBufferCHROMIUM(target, access);
302 } 317 }
303 318
304 GLboolean TestGLES2Interface::UnmapBufferCHROMIUM(GLuint target) { 319 GLboolean TestGLES2Interface::UnmapBufferCHROMIUM(GLuint target) {
305 return test_context_->unmapBufferCHROMIUM(target); 320 return test_context_->unmapBufferCHROMIUM(target);
306 } 321 }
307 322
308 void TestGLES2Interface::BufferData(GLenum target, 323 void TestGLES2Interface::BufferData(GLenum target,
309 GLsizeiptr size, 324 GLsizeiptr size,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 return GL_NO_ERROR; 413 return GL_NO_ERROR;
399 } 414 }
400 415
401 void TestGLES2Interface::set_test_context(TestWebGraphicsContext3D* context) { 416 void TestGLES2Interface::set_test_context(TestWebGraphicsContext3D* context) {
402 DCHECK(!test_context_); 417 DCHECK(!test_context_);
403 test_context_ = context; 418 test_context_ = context;
404 InitializeTestContext(test_context_); 419 InitializeTestContext(test_context_);
405 } 420 }
406 421
407 } // namespace cc 422 } // 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