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

Side by Side Diff: gpu/ipc/in_process_command_buffer.h

Issue 2727573003: gpu: Add sync token dependencies to flush metadata. (Closed)
Patch Set: piman's review 2 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 unified diff | Download patch
« no previous file with comments | « gpu/ipc/common/gpu_messages.h ('k') | gpu/ipc/in_process_command_buffer.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_IN_PROCESS_COMMAND_BUFFER_H_ 5 #ifndef GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_
6 #define GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ 6 #define GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 CommandBufferNamespace GetNamespaceID() const override; 121 CommandBufferNamespace GetNamespaceID() const override;
122 CommandBufferId GetCommandBufferID() const override; 122 CommandBufferId GetCommandBufferID() const override;
123 int32_t GetExtraCommandBufferData() const override; 123 int32_t GetExtraCommandBufferData() const override;
124 uint64_t GenerateFenceSyncRelease() override; 124 uint64_t GenerateFenceSyncRelease() override;
125 bool IsFenceSyncRelease(uint64_t release) override; 125 bool IsFenceSyncRelease(uint64_t release) override;
126 bool IsFenceSyncFlushed(uint64_t release) override; 126 bool IsFenceSyncFlushed(uint64_t release) override;
127 bool IsFenceSyncFlushReceived(uint64_t release) override; 127 bool IsFenceSyncFlushReceived(uint64_t release) override;
128 bool IsFenceSyncReleased(uint64_t release) override; 128 bool IsFenceSyncReleased(uint64_t release) override;
129 void SignalSyncToken(const SyncToken& sync_token, 129 void SignalSyncToken(const SyncToken& sync_token,
130 const base::Closure& callback) override; 130 const base::Closure& callback) override;
131 bool CanWaitUnverifiedSyncToken(const SyncToken* sync_token) override; 131 void WaitSyncTokenHint(const SyncToken& sync_token) override;
132 bool CanWaitUnverifiedSyncToken(const SyncToken& sync_token) override;
132 133
133 // ImageTransportSurfaceDelegate implementation: 134 // ImageTransportSurfaceDelegate implementation:
134 #if defined(OS_WIN) 135 #if defined(OS_WIN)
135 void DidCreateAcceleratedSurfaceChildWindow( 136 void DidCreateAcceleratedSurfaceChildWindow(
136 SurfaceHandle parent_window, 137 SurfaceHandle parent_window,
137 SurfaceHandle child_window) override; 138 SurfaceHandle child_window) override;
138 #endif 139 #endif
139 void DidSwapBuffersComplete(SwapBuffersCompleteParams params) override; 140 void DidSwapBuffersComplete(SwapBuffersCompleteParams params) override;
140 const gles2::FeatureInfo* GetFeatureInfo() const override; 141 const gles2::FeatureInfo* GetFeatureInfo() const override;
141 void SetLatencyInfoCallback(const LatencyInfoCallback& callback) override; 142 void SetLatencyInfoCallback(const LatencyInfoCallback& callback) override;
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; 328 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_;
328 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_; 329 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_;
329 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; 330 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_;
330 331
331 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); 332 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer);
332 }; 333 };
333 334
334 } // namespace gpu 335 } // namespace gpu
335 336
336 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ 337 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_
OLDNEW
« no previous file with comments | « gpu/ipc/common/gpu_messages.h ('k') | gpu/ipc/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698