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

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

Issue 10510013: GPU: Adding sync points for cross-channel synchronization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: protected destructor 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/webgraphicscontext3d_command_buffer_impl.cc
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
index e59a87e32e6f61f0f11025ed37904e8af37b02d5..b8b89502e51deb5d5f3595fd3b9f771168f8230d 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -426,6 +426,17 @@ bool WebGraphicsContext3DCommandBufferImpl::setParentContext(
return SetParent(parent_context_impl);
}
+unsigned int WebGraphicsContext3DCommandBufferImpl::insertSyncPoint() {
+ gl_->helper()->CommandBufferHelper::Flush();
+ return command_buffer_->InsertSyncPoint();
+}
+
+void WebGraphicsContext3DCommandBufferImpl::waitSyncPoint(
+ unsigned int sync_point) {
+ gl_->helper()->CommandBufferHelper::Flush();
+ command_buffer_->WaitSyncPoint(sync_point);
+}
+
bool WebGraphicsContext3DCommandBufferImpl::SetParent(
WebGraphicsContext3DCommandBufferImpl* new_parent) {
if (parent_ == new_parent)

Powered by Google App Engine
This is Rietveld 408576698