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

Unified Diff: ui/gl/gl_context.h

Issue 13852023: Reland "gpu: Fix Vivante's "hisilicon" GPUs" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@HUAWEI_revert
Patch Set: Created 7 years, 8 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: ui/gl/gl_context.h
diff --git a/ui/gl/gl_context.h b/ui/gl/gl_context.h
index 7300cdb311955068428fae4afb07761576843f67..7645a29a2d7aafa728ae9fafcaf2b907019731a5 100644
--- a/ui/gl/gl_context.h
+++ b/ui/gl/gl_context.h
@@ -65,6 +65,10 @@ class GL_EXPORT GLContext : public base::RefCounted<GLContext> {
// transitioning can cause corruption and hangs (OS X only).
virtual void SetSafeToForceGpuSwitch();
+ // Indicate that the real context switches should recreate the surface
+ // (For an Android work-around only).
+ virtual void SetRecreateSurfaceOnMakeCurrent();
+
// Returns whether the current context supports the named extension. The
// context must be current.
bool HasExtension(const char* name);

Powered by Google App Engine
This is Rietveld 408576698