diff options
author | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-16 22:37:32 +0000 |
---|---|---|
committer | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-16 22:37:32 +0000 |
commit | fe8d73c066f9fd5506509fbc95d53f33872e13ab (patch) | |
tree | 516643eab1296a4906b733f58db42ca7033b27ac /gpu/command_buffer/service/common_decoder.cc | |
parent | aee50e84293e34ee609fad03cc21ed29cce9c27e (diff) | |
download | chromium_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.cc | 1 |
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; |