summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/common_decoder.cc
diff options
context:
space:
mode:
authorreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-16 22:37:32 +0000
committerreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-16 22:37:32 +0000
commitfe8d73c066f9fd5506509fbc95d53f33872e13ab (patch)
tree516643eab1296a4906b733f58db42ca7033b27ac /gpu/command_buffer/service/common_decoder.cc
parentaee50e84293e34ee609fad03cc21ed29cce9c27e (diff)
downloadchromium_src-fe8d73c066f9fd5506509fbc95d53f33872e13ab.zip
chromium_src-fe8d73c066f9fd5506509fbc95d53f33872e13ab.tar.gz
chromium_src-fe8d73c066f9fd5506509fbc95d53f33872e13ab.tar.bz2
Re-land: Mark async texture uploads as completed from the upload thread.
This reduces the latency between when an upload completes and when the client is notified. BUG=173802 NOTRY=True Review URL: https://chromiumcodereview.appspot.com/12213073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183010 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/common_decoder.cc')
-rw-r--r--gpu/command_buffer/service/common_decoder.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/common_decoder.cc b/gpu/command_buffer/service/common_decoder.cc
index fa97c1c..e0a6a31 100644
--- a/gpu/command_buffer/service/common_decoder.cc
+++ b/gpu/command_buffer/service/common_decoder.cc
@@ -63,6 +63,7 @@ CommonDecoder::~CommonDecoder() {}
void* CommonDecoder::GetAddressAndCheckSize(unsigned int shm_id,
unsigned int offset,
unsigned int size) {
+ CHECK(engine_);
Buffer buffer = engine_->GetSharedMemoryBuffer(shm_id);
if (!buffer.ptr)
return NULL;