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

Unified Diff: Source/core/platform/graphics/Extensions3D.h

Issue 16032003: Fixing Canvas2DLayerBridge to handle lost graphics contexts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added Layout test and necessary content_shell API to test context loss 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: Source/core/platform/graphics/Extensions3D.h
diff --git a/Source/core/platform/graphics/Extensions3D.h b/Source/core/platform/graphics/Extensions3D.h
index 8b4da8ec713e016c983041c6b8f459f9d3bed66e..9e19dffb6b4ac0a90ddbe60d9048cf131d4c807d 100644
--- a/Source/core/platform/graphics/Extensions3D.h
+++ b/Source/core/platform/graphics/Extensions3D.h
@@ -107,7 +107,7 @@ public:
// GL_EXT_texture_format_BGRA8888 enums
BGRA_EXT = 0x80E1,
- // GL_ARB_robustness enums
+ // GL_ARB_robustness/GL_CHROMIUM_lose_context enums
GUILTY_CONTEXT_RESET_ARB = 0x8253,
INNOCENT_CONTEXT_RESET_ARB = 0x8254,
UNKNOWN_CONTEXT_RESET_ARB = 0x8255,
@@ -328,6 +328,9 @@ public:
// GL_CHROMIUM_shallow_flush
void shallowFlushCHROMIUM();
+ // GL_CHROMIUM_lose_context
+ void loseContextCHROMIUM(GC3Denum, GC3Denum);
+
private:
// Instances of this class are strictly owned by the GraphicsContext3D implementation and do not
// need to be instantiated by any other code.

Powered by Google App Engine
This is Rietveld 408576698