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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 12213073: Re-land: Mark async texture uploads as completed from the upload thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix shutdown issue Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index feb688cd016ba0316ce41811810659f394601f6e..a4a798ea891ad951c10997f202f356296f2082b2 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -2725,6 +2725,9 @@ bool GLES2DecoderImpl::MakeCurrent() {
return false;
}
+ if (engine() && query_manager_.get())
+ query_manager_->ProcessPendingTransferQueries();
+
// TODO(epenner): Is there a better place to do this? Transfers
// can complete any time we yield the main thread. So we *must*
// process transfers after any such yield, before resuming.
@@ -9122,6 +9125,8 @@ error::Error GLES2DecoderImpl::HandleEndQueryEXT(
return error::kOutOfBounds;
}
+ query_manager_->ProcessPendingTransferQueries();
+
state_.current_query = NULL;
return error::kNoError;
}

Powered by Google App Engine
This is Rietveld 408576698