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

Side by Side Diff: content/common/gpu/client/command_buffer_proxy_impl.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 (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 CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 unsigned internal_format, 117 unsigned internal_format,
118 unsigned usage) override; 118 unsigned usage) override;
119 uint32_t InsertSyncPoint() override; 119 uint32_t InsertSyncPoint() override;
120 uint32_t InsertFutureSyncPoint() override; 120 uint32_t InsertFutureSyncPoint() override;
121 void RetireSyncPoint(uint32_t sync_point) override; 121 void RetireSyncPoint(uint32_t sync_point) override;
122 void SignalSyncPoint(uint32_t sync_point, 122 void SignalSyncPoint(uint32_t sync_point,
123 const base::Closure& callback) override; 123 const base::Closure& callback) override;
124 void SignalQuery(uint32_t query, const base::Closure& callback) override; 124 void SignalQuery(uint32_t query, const base::Closure& callback) override;
125 void SetLock(base::Lock* lock) override; 125 void SetLock(base::Lock* lock) override;
126 bool IsGpuChannelLost() override; 126 bool IsGpuChannelLost() override;
127 void EnsureWorkVisible() override;
127 gpu::CommandBufferNamespace GetNamespaceID() const override; 128 gpu::CommandBufferNamespace GetNamespaceID() const override;
128 uint64_t GetCommandBufferID() const override; 129 uint64_t GetCommandBufferID() const override;
129 int32_t GetExtraCommandBufferData() const override; 130 int32_t GetExtraCommandBufferData() const override;
130 uint64_t GenerateFenceSyncRelease() override; 131 uint64_t GenerateFenceSyncRelease() override;
131 bool IsFenceSyncRelease(uint64_t release) override; 132 bool IsFenceSyncRelease(uint64_t release) override;
132 bool IsFenceSyncFlushed(uint64_t release) override; 133 bool IsFenceSyncFlushed(uint64_t release) override;
133 bool IsFenceSyncFlushReceived(uint64_t release) override; 134 bool IsFenceSyncFlushReceived(uint64_t release) override;
134 void SignalSyncToken(const gpu::SyncToken& sync_token, 135 void SignalSyncToken(const gpu::SyncToken& sync_token,
135 const base::Closure& callback) override; 136 const base::Closure& callback) override;
136 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; 137 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 257
257 SwapBuffersCompletionCallback swap_buffers_completion_callback_; 258 SwapBuffersCompletionCallback swap_buffers_completion_callback_;
258 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_; 259 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_;
259 260
260 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); 261 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
261 }; 262 };
262 263
263 } // namespace content 264 } // namespace content
264 265
265 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 266 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
OLDNEW
« no previous file with comments | « components/mus/gles2/command_buffer_local.cc ('k') | content/common/gpu/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698