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

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

Issue 1186393004: gpu: Remove async texture uploads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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/trees/layer_tree_host_impl.cc » ('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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 target, attachment, textarget, texture, level); 259 target, attachment, textarget, texture, level);
260 } 260 }
261 261
262 void TestGLES2Interface::RenderbufferStorage(GLenum target, 262 void TestGLES2Interface::RenderbufferStorage(GLenum target,
263 GLenum internalformat, 263 GLenum internalformat,
264 GLsizei width, 264 GLsizei width,
265 GLsizei height) { 265 GLsizei height) {
266 test_context_->renderbufferStorage(target, internalformat, width, height); 266 test_context_->renderbufferStorage(target, internalformat, width, height);
267 } 267 }
268 268
269 void TestGLES2Interface::AsyncTexImage2DCHROMIUM(GLenum target,
270 GLint level,
271 GLenum internalformat,
272 GLsizei width,
273 GLsizei height,
274 GLint border,
275 GLenum format,
276 GLenum type,
277 const void* pixels) {
278 test_context_->asyncTexImage2DCHROMIUM(target,
279 level,
280 internalformat,
281 width,
282 height,
283 border,
284 format,
285 type,
286 pixels);
287 }
288
289 void TestGLES2Interface::AsyncTexSubImage2DCHROMIUM(GLenum target,
290 GLint level,
291 GLint xoffset,
292 GLint yoffset,
293 GLsizei width,
294 GLsizei height,
295 GLenum format,
296 GLenum type,
297 const void* pixels) {
298 test_context_->asyncTexSubImage2DCHROMIUM(
299 target, level, xoffset, yoffset, width, height, format, type, pixels);
300 }
301
302 void TestGLES2Interface::CompressedTexImage2D(GLenum target, 269 void TestGLES2Interface::CompressedTexImage2D(GLenum target,
303 GLint level, 270 GLint level,
304 GLenum internalformat, 271 GLenum internalformat,
305 GLsizei width, 272 GLsizei width,
306 GLsizei height, 273 GLsizei height,
307 GLint border, 274 GLint border,
308 GLsizei image_size, 275 GLsizei image_size,
309 const void* data) { 276 const void* data) {
310 test_context_->compressedTexImage2D( 277 test_context_->compressedTexImage2D(
311 target, level, internalformat, width, height, border, image_size, data); 278 target, level, internalformat, width, height, border, image_size, data);
312 } 279 }
313 280
314 void TestGLES2Interface::WaitAsyncTexImage2DCHROMIUM(GLenum target) {
315 test_context_->waitAsyncTexImage2DCHROMIUM(target);
316 }
317
318 GLuint TestGLES2Interface::CreateImageCHROMIUM(ClientBuffer buffer, 281 GLuint TestGLES2Interface::CreateImageCHROMIUM(ClientBuffer buffer,
319 GLsizei width, 282 GLsizei width,
320 GLsizei height, 283 GLsizei height,
321 GLenum internalformat) { 284 GLenum internalformat) {
322 return test_context_->createImageCHROMIUM( 285 return test_context_->createImageCHROMIUM(
323 buffer, width, height, internalformat); 286 buffer, width, height, internalformat);
324 } 287 }
325 288
326 void TestGLES2Interface::DestroyImageCHROMIUM(GLuint image_id) { 289 void TestGLES2Interface::DestroyImageCHROMIUM(GLuint image_id) {
327 test_context_->destroyImageCHROMIUM(image_id); 290 test_context_->destroyImageCHROMIUM(image_id);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 test_context_->loseContextCHROMIUM(current, other); 387 test_context_->loseContextCHROMIUM(current, other);
425 } 388 }
426 389
427 GLenum TestGLES2Interface::GetGraphicsResetStatusKHR() { 390 GLenum TestGLES2Interface::GetGraphicsResetStatusKHR() {
428 if (test_context_->isContextLost()) 391 if (test_context_->isContextLost())
429 return GL_UNKNOWN_CONTEXT_RESET_KHR; 392 return GL_UNKNOWN_CONTEXT_RESET_KHR;
430 return GL_NO_ERROR; 393 return GL_NO_ERROR;
431 } 394 }
432 395
433 } // namespace cc 396 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/test_gles2_interface.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698