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

Unified Diff: gpu/ipc/client/gpu_channel_host.cc

Issue 2727573003: gpu: Add sync token dependencies to flush metadata. (Closed)
Patch Set: fix broken tests oops Created 3 years, 9 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/ipc/client/gpu_channel_host.cc
diff --git a/gpu/ipc/client/gpu_channel_host.cc b/gpu/ipc/client/gpu_channel_host.cc
index 5e41fd9e274d839f547a794b86c859236e6dc92e..af0c167aff22de0f5344f5a3b3160932633d306a 100644
--- a/gpu/ipc/client/gpu_channel_host.cc
+++ b/gpu/ipc/client/gpu_channel_host.cc
@@ -134,6 +134,7 @@ uint32_t GpuChannelHost::OrderingBarrier(
int32_t put_offset,
uint32_t flush_count,
const std::vector<ui::LatencyInfo>& latency_info,
+ const std::vector<SyncToken>& sync_token_fences,
bool put_offset_changed,
bool do_flush,
uint32_t* highest_verified_flush_id) {
@@ -153,6 +154,9 @@ uint32_t GpuChannelHost::OrderingBarrier(
flush_info.flush_id = flush_id;
flush_info.latency_info.insert(flush_info.latency_info.end(),
latency_info.begin(), latency_info.end());
+ flush_info.sync_token_fences.insert(flush_info.sync_token_fences.end(),
+ sync_token_fences.begin(),
+ sync_token_fences.end());
if (do_flush)
InternalFlush(&flush_info);
@@ -180,8 +184,9 @@ void GpuChannelHost::InternalFlush(StreamFlushInfo* flush_info) {
DCHECK_LT(flush_info->flushed_stream_flush_id, flush_info->flush_id);
Send(new GpuCommandBufferMsg_AsyncFlush(
flush_info->route_id, flush_info->put_offset, flush_info->flush_count,
- flush_info->latency_info));
+ flush_info->latency_info, flush_info->sync_token_fences));
flush_info->latency_info.clear();
+ flush_info->sync_token_fences.clear();
flush_info->flush_pending = false;
flush_info->flushed_stream_flush_id = flush_info->flush_id;

Powered by Google App Engine
This is Rietveld 408576698