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

Side by Side Diff: gpu/command_buffer/service/in_process_command_buffer.h

Issue 1559893003: Added method to synchronize command buffers within GpuControl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SynchronizeCommandBuffer() -> EnsureWorkVisible() Created 4 years, 11 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
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_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 unsigned internalformat, 123 unsigned internalformat,
124 unsigned usage) override; 124 unsigned usage) override;
125 uint32_t InsertSyncPoint() override; 125 uint32_t InsertSyncPoint() override;
126 uint32_t InsertFutureSyncPoint() override; 126 uint32_t InsertFutureSyncPoint() override;
127 void RetireSyncPoint(uint32_t sync_point) override; 127 void RetireSyncPoint(uint32_t sync_point) override;
128 void SignalSyncPoint(uint32_t sync_point, 128 void SignalSyncPoint(uint32_t sync_point,
129 const base::Closure& callback) override; 129 const base::Closure& callback) override;
130 void SignalQuery(uint32_t query_id, const base::Closure& callback) override; 130 void SignalQuery(uint32_t query_id, const base::Closure& callback) override;
131 void SetLock(base::Lock*) override; 131 void SetLock(base::Lock*) override;
132 bool IsGpuChannelLost() override; 132 bool IsGpuChannelLost() override;
133 void EnsureWorkVisible() override;
133 CommandBufferNamespace GetNamespaceID() const override; 134 CommandBufferNamespace GetNamespaceID() const override;
134 uint64_t GetCommandBufferID() const override; 135 uint64_t GetCommandBufferID() const override;
135 int32_t GetExtraCommandBufferData() const override; 136 int32_t GetExtraCommandBufferData() const override;
136 uint64_t GenerateFenceSyncRelease() override; 137 uint64_t GenerateFenceSyncRelease() override;
137 bool IsFenceSyncRelease(uint64_t release) override; 138 bool IsFenceSyncRelease(uint64_t release) override;
138 bool IsFenceSyncFlushed(uint64_t release) override; 139 bool IsFenceSyncFlushed(uint64_t release) override;
139 bool IsFenceSyncFlushReceived(uint64_t release) override; 140 bool IsFenceSyncFlushReceived(uint64_t release) override;
140 void SignalSyncToken(const SyncToken& sync_token, 141 void SignalSyncToken(const SyncToken& sync_token,
141 const base::Closure& callback) override; 142 const base::Closure& callback) override;
142 bool CanWaitUnverifiedSyncToken(const SyncToken* sync_token) override; 143 bool CanWaitUnverifiedSyncToken(const SyncToken* sync_token) override;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 SyncPointManager* sync_point_manager_; // Non-owning. 323 SyncPointManager* sync_point_manager_; // Non-owning.
323 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; 324 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_;
324 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> 325 scoped_refptr<gpu::gles2::FramebufferCompletenessCache>
325 framebuffer_completeness_cache_; 326 framebuffer_completeness_cache_;
326 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); 327 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread);
327 }; 328 };
328 329
329 } // namespace gpu 330 } // namespace gpu
330 331
331 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 332 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gpu_control.h ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698