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

Unified Diff: components/mus/gles2/command_buffer_impl.cc

Issue 1568563002: Added a way for sync point clients to issue out of order waits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Allow WaitOutOfOrder if no client order data Created 4 years, 11 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
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gles2/command_buffer_impl.cc
diff --git a/components/mus/gles2/command_buffer_impl.cc b/components/mus/gles2/command_buffer_impl.cc
index f7dda677d29cf97d53ef4d9ab331023f1b8db9b0..f4a581c79fafc15443221be7dc41c597a9e3aa76 100644
--- a/components/mus/gles2/command_buffer_impl.cc
+++ b/components/mus/gles2/command_buffer_impl.cc
@@ -214,7 +214,9 @@ bool CommandBufferImpl::FlushHelper(int32_t put_offset,
// Return false if the Flush is not finished, so the CommandBufferTaskRunner
// will not remove this task from the task queue.
const bool complete = !driver_->HasUnprocessedCommands();
- if (complete)
+ if (!complete)
+ driver_->sync_point_order_data()->PauseProcessingOrderNumber(order_num);
+ else
driver_->sync_point_order_data()->FinishProcessingOrderNumber(order_num);
return complete;
}
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698