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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 869433003: (not for commit) Simplified multi-threaded Ganesh with lock on Flush only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 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 | « gpu/command_buffer/client/gles2_implementation.h ('k') | gpu/command_buffer/client/gles2_interface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index b4628a0b0735a2810c760d9044a84b2f0bb8768b..1d4de5ad25a533939e3f0c289fd55e9d588e9ece 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -833,6 +833,19 @@ void GLES2Implementation::ShallowFlushCHROMIUM() {
// TODO(piman): Add the FreeEverything() logic here.
}
+void GLES2Implementation::SetSafeFlushPoint() {
+ GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glSetSafeFlushPoint()");
+ // Save the current command offset for SafeFlush().
+ helper_->CommandBufferHelper::SetSafeFlushPoint();
+}
+
+void GLES2Implementation::SafeFlush() {
+ GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glSafeFlushCHROMIUM()");
+ // Flush our command buffer up to the last safe flush point.
+ // (tell the service to execute up to the flush cmd.)
+ helper_->CommandBufferHelper::SafeFlush();
+}
+
void GLES2Implementation::Finish() {
GPU_CLIENT_SINGLE_THREAD_CHECK();
FinishHelper();
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.h ('k') | gpu/command_buffer/client/gles2_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698