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

Side by Side Diff: gpu/ipc/client/gpu_channel_host.h

Issue 2222663002: Clear old verified flush IDs when doing OrderingBarrier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 unified diff | Download patch
« no previous file with comments | « gpu/ipc/client/command_buffer_proxy_impl.cc ('k') | gpu/ipc/client/gpu_channel_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ 5 #ifndef GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_
6 #define GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ 6 #define GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 // The GPU stats reported by the GPU process. 81 // The GPU stats reported by the GPU process.
82 const gpu::GPUInfo& gpu_info() const { return gpu_info_; } 82 const gpu::GPUInfo& gpu_info() const { return gpu_info_; }
83 83
84 // IPC::Sender implementation: 84 // IPC::Sender implementation:
85 bool Send(IPC::Message* msg) override; 85 bool Send(IPC::Message* msg) override;
86 86
87 // Set an ordering barrier. AsyncFlushes any pending barriers on other 87 // Set an ordering barrier. AsyncFlushes any pending barriers on other
88 // routes. Combines multiple OrderingBarriers into a single AsyncFlush. 88 // routes. Combines multiple OrderingBarriers into a single AsyncFlush.
89 // Returns the flush ID for the stream or 0 if put offset was not changed. 89 // Returns the flush ID for the stream or 0 if put offset was not changed.
90 // Outputs *highest_verified_flush_id.
90 uint32_t OrderingBarrier(int32_t route_id, 91 uint32_t OrderingBarrier(int32_t route_id,
91 int32_t stream_id, 92 int32_t stream_id,
92 int32_t put_offset, 93 int32_t put_offset,
93 uint32_t flush_count, 94 uint32_t flush_count,
94 const std::vector<ui::LatencyInfo>& latency_info, 95 const std::vector<ui::LatencyInfo>& latency_info,
95 bool put_offset_changed, 96 bool put_offset_changed,
96 bool do_flush); 97 bool do_flush,
98 uint32_t* highest_verified_flush_id);
97 99
98 void FlushPendingStream(int32_t stream_id); 100 void FlushPendingStream(int32_t stream_id);
99 101
100 // Destroy this channel. Must be called on the main thread, before 102 // Destroy this channel. Must be called on the main thread, before
101 // destruction. 103 // destruction.
102 void DestroyChannel(); 104 void DestroyChannel();
103 105
104 // Add a message route for the current message loop. 106 // Add a message route for the current message loop.
105 void AddRoute(int route_id, base::WeakPtr<IPC::Listener> listener); 107 void AddRoute(int route_id, base::WeakPtr<IPC::Listener> listener);
106 108
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 mutable base::Lock context_lock_; 269 mutable base::Lock context_lock_;
268 std::unique_ptr<IPC::SyncChannel> channel_; 270 std::unique_ptr<IPC::SyncChannel> channel_;
269 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_; 271 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_;
270 272
271 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 273 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
272 }; 274 };
273 275
274 } // namespace gpu 276 } // namespace gpu
275 277
276 #endif // GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ 278 #endif // GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « gpu/ipc/client/command_buffer_proxy_impl.cc ('k') | gpu/ipc/client/gpu_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698