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

Unified Diff: cc/raster/one_copy_raster_buffer_provider.cc

Issue 2682023005: cc: Use compositor context for signal sync token callback. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « cc/raster/gpu_raster_buffer_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/one_copy_raster_buffer_provider.cc
diff --git a/cc/raster/one_copy_raster_buffer_provider.cc b/cc/raster/one_copy_raster_buffer_provider.cc
index 09f12744912a87197571bb74772b06f44237f685..972e9377d16c0a143ff143fe56b15c8bdc4f709b 100644
--- a/cc/raster/one_copy_raster_buffer_provider.cc
+++ b/cc/raster/one_copy_raster_buffer_provider.cc
@@ -191,12 +191,13 @@ uint64_t OneCopyRasterBufferProvider::SetReadyToDrawCallback(
DCHECK_NE(callback_id, 0u);
// If the callback is different from the one the caller is already waiting on,
- // pass the callback through to SignalSinkToken. Otherwise the request is
+ // pass the callback through to SignalSyncToken. Otherwise the request is
// redundant.
if (callback_id != pending_callback_id) {
- // SignalSyncToken is threadsafe, no need for worker context lock.
- worker_context_provider_->ContextSupport()->SignalSyncToken(sync_token,
- callback);
+ // Use the compositor context because we want this callback on the impl
+ // thread.
+ compositor_context_provider_->ContextSupport()->SignalSyncToken(sync_token,
+ callback);
}
return callback_id;
« no previous file with comments | « cc/raster/gpu_raster_buffer_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698