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

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

Issue 17176027: Add gpu command buffer support for loseContextCHROMIUM (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch 2 Created 7 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 ed105b4fe93c19225e424538c4ebfe528e8657c7..69f0947ac6aca6cfd4484347a436ec722e9b2cdd 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -1599,6 +1599,13 @@ void WebGraphicsContext3DCommandBufferImpl::signalSyncPoint(
base::Bind(&SignalSyncPointCallback, base::Passed(&own_callback)));
}
+void WebGraphicsContext3DCommandBufferImpl::loseContextCHROMIUM(
+ WGC3Denum current, WGC3Denum other) {
+ gl_->LoseContextCHROMIUM(current, other);
+ gl_->Finish();
piman 2013/06/21 19:05:05 Actually, doing a Finish() here makes it less inte
+ DCHECK(IsCommandBufferContextLost());
+}
+
void WebGraphicsContext3DCommandBufferImpl::genMailboxCHROMIUM(
WGC3Dbyte* name) {
std::vector<gpu::Mailbox> names(1);

Powered by Google App Engine
This is Rietveld 408576698