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

Unified Diff: cc/resource_provider.cc

Issue 11606012: cc: Unify context losing machinery (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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: cc/resource_provider.cc
diff --git a/cc/resource_provider.cc b/cc/resource_provider.cc
index c2b44d28e8e0885674e6233fe0024ab0227616bd..d091bd2aa8cf6a4fe3863d79a4fdcb8401460b12 100644
--- a/cc/resource_provider.cc
+++ b/cc/resource_provider.cc
@@ -956,4 +956,13 @@ bool ResourceProvider::didSetPixelsComplete(ResourceId id) {
return true;
}
+void ResourceProvider::loseOutputSurface() {
+ WebGraphicsContext3D* context3d = m_outputSurface->Context3D();
jamesr 2012/12/18 21:24:01 this file's currently 4-space indent. i think bein
+ DCHECK(context3d);
+ if (!context3d)
+ return;
+ context3d->loseContextCHROMIUM(
+ GL_GUILTY_CONTEXT_RESET_EXT, GL_INNOCENT_CONTEXT_RESET_EXT);
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698