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

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

Issue 2241253003: Clear old verified flush IDs when doing OrderingBarrier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 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 | gpu/ipc/client/gpu_channel_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/client/command_buffer_proxy_impl.cc
diff --git a/gpu/ipc/client/command_buffer_proxy_impl.cc b/gpu/ipc/client/command_buffer_proxy_impl.cc
index 9c1ec56129bfe93855e8fcf7c8e57bed88371689..1af72b0be313d376af815be8ab7ea1999ac3ec08 100644
--- a/gpu/ipc/client/command_buffer_proxy_impl.cc
+++ b/gpu/ipc/client/command_buffer_proxy_impl.cc
@@ -262,9 +262,11 @@ void CommandBufferProxyImpl::Flush(int32_t put_offset) {
last_barrier_put_offset_ = put_offset;
if (channel_) {
+ uint32_t highest_verified_flush_id;
const uint32_t flush_id = channel_->OrderingBarrier(
route_id_, stream_id_, put_offset, ++flush_count_, latency_info_,
- put_offset_changed, true);
+ put_offset_changed, true, &highest_verified_flush_id);
+ UpdateVerifiedReleases(highest_verified_flush_id);
if (put_offset_changed) {
DCHECK(flush_id);
const uint64_t fence_sync_release = next_fence_sync_release_ - 1;
@@ -292,9 +294,12 @@ void CommandBufferProxyImpl::OrderingBarrier(int32_t put_offset) {
last_barrier_put_offset_ = put_offset;
if (channel_) {
+ uint32_t highest_verified_flush_id;
const uint32_t flush_id = channel_->OrderingBarrier(
route_id_, stream_id_, put_offset, ++flush_count_, latency_info_,
- put_offset_changed, false);
+ put_offset_changed, false, &highest_verified_flush_id);
+ UpdateVerifiedReleases(highest_verified_flush_id);
+
if (put_offset_changed) {
DCHECK(flush_id);
const uint64_t fence_sync_release = next_fence_sync_release_ - 1;
« no previous file with comments | « no previous file | gpu/ipc/client/gpu_channel_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698