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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 12210129: gpu: Add the ability to wait on upload completion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatting tweak. Created 7 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // A class to emulate GLES2 over command buffers. 5 // A class to emulate GLES2 over command buffers.
6 6
7 #include "../client/gles2_implementation.h" 7 #include "../client/gles2_implementation.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 3421 matching lines...) Expand 10 before | Expand all | Expand 10 after
3432 "glAsyncTexSubImage2DCHROMIUM", offset, size); 3432 "glAsyncTexSubImage2DCHROMIUM", offset, size);
3433 if (!buffer) 3433 if (!buffer)
3434 return; 3434 return;
3435 3435
3436 helper_->AsyncTexSubImage2DCHROMIUM( 3436 helper_->AsyncTexSubImage2DCHROMIUM(
3437 target, level, xoffset, yoffset, width, height, format, type, 3437 target, level, xoffset, yoffset, width, height, format, type,
3438 buffer->shm_id(), buffer->shm_offset() + offset); 3438 buffer->shm_id(), buffer->shm_offset() + offset);
3439 return; 3439 return;
3440 } 3440 }
3441 3441
3442 void GLES2Implementation::WaitAsyncTexImage2DCHROMIUM(GLenum target) {
3443 GPU_CLIENT_SINGLE_THREAD_CHECK();
3444 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glWaitAsyncTexImage2DCHROMIUM()");
greggman 2013/03/04 21:25:53 log the target with GLES2Util::GetStringTextureTar
Sami 2013/03/05 12:25:26 Well spotted, fixed.
3445 helper_->WaitAsyncTexImage2DCHROMIUM(target);
3446 CheckGLError();
3447 }
3448
3442 // Include the auto-generated part of this file. We split this because it means 3449 // Include the auto-generated part of this file. We split this because it means
3443 // we can easily edit the non-auto generated parts right here in this file 3450 // we can easily edit the non-auto generated parts right here in this file
3444 // instead of having to edit some template or the code generator. 3451 // instead of having to edit some template or the code generator.
3445 #include "../client/gles2_implementation_impl_autogen.h" 3452 #include "../client/gles2_implementation_impl_autogen.h"
3446 3453
3447 } // namespace gles2 3454 } // namespace gles2
3448 } // namespace gpu 3455 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698