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

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

Issue 2876913003: Reland of gpu: GPU service scheduler. (Closed)
Patch Set: comment Created 3 years, 7 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/service/BUILD.gn ('k') | gpu/command_buffer/service/gpu_preferences.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5f75f599fed356ce9ac1aa264ebdc8cf8d07b3a4..3651a90c5494e794652439e1b2b18b4e8a79b058 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -16030,6 +16030,9 @@ error::Error GLES2DecoderImpl::HandleInsertFenceSyncCHROMIUM(
const uint64_t release_count = c.release_count();
if (!fence_sync_release_callback_.is_null())
fence_sync_release_callback_.Run(release_count);
+ // Exit inner command processing loop so that we check the scheduling state
+ // and yield if necessary as we may have unblocked a higher priority context.
+ ExitCommandProcessingEarly();
return error::kNoError;
}
« no previous file with comments | « gpu/command_buffer/service/BUILD.gn ('k') | gpu/command_buffer/service/gpu_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698