| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |