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

Unified Diff: ui/gl/gl_context_egl.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_egl.h
diff --git a/ui/gl/gl_context_egl.h b/ui/gl/gl_context_egl.h
index e45cc251890145fcca9279814843edfa61d44a3e..a4f0cbfa34ce041b4da85de7f4811e55a1906a55 100644
--- a/ui/gl/gl_context_egl.h
+++ b/ui/gl/gl_context_egl.h
@@ -35,6 +35,9 @@ class GLContextEGL : public GLContext {
virtual std::string GetExtensions() OVERRIDE;
virtual bool WasAllocatedUsingRobustnessExtension() OVERRIDE;
virtual bool GetTotalGpuMemory(size_t* bytes) OVERRIDE;
+ virtual void SetRecreateSurfaceOnMakeCurrent() OVERRIDE;
+
+ bool RecreateSurfaceIfNeeded(GLSurface* surface);
protected:
virtual ~GLContextEGL();
@@ -43,6 +46,7 @@ class GLContextEGL : public GLContext {
EGLContext context_;
EGLDisplay display_;
EGLConfig config_;
+ bool recreate_surface_on_makecurrent_;
DISALLOW_COPY_AND_ASSIGN(GLContextEGL);
};

Powered by Google App Engine
This is Rietveld 408576698