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

Unified Diff: content/common/gpu/client/command_buffer_proxy_impl.cc

Issue 10510013: GPU: Adding sync points for cross-channel synchronization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/client/command_buffer_proxy_impl.cc
diff --git a/content/common/gpu/client/command_buffer_proxy_impl.cc b/content/common/gpu/client/command_buffer_proxy_impl.cc
index 6c7cef8c22e2fc6b07a3642e1f4fbdc7aa14b08d..8f3f4ce667198a912bed6a1df64c48d9bf84e0c6 100644
--- a/content/common/gpu/client/command_buffer_proxy_impl.cc
+++ b/content/common/gpu/client/command_buffer_proxy_impl.cc
@@ -416,6 +416,16 @@ bool CommandBufferProxyImpl::EnsureBackbuffer() {
return Send(new GpuCommandBufferMsg_EnsureBackbuffer(route_id_));
}
+uint32 CommandBufferProxyImpl::InsertSyncPoint() {
+ uint32 sync_point = 0;
+ Send(new GpuCommandBufferMsg_InsertSyncPoint(route_id_, &sync_point));
+ return sync_point;
+}
+
+void CommandBufferProxyImpl::WaitSyncPoint(uint32 sync_point) {
+ Send(new GpuCommandBufferMsg_WaitSyncPoint(route_id_, sync_point));
+}
+
bool CommandBufferProxyImpl::SetParent(
CommandBufferProxy* parent_command_buffer,
uint32 parent_texture_id) {

Powered by Google App Engine
This is Rietveld 408576698