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

Unified Diff: ui/gl/gl_surface_egl.cc

Issue 14241009: Revert "gpu: Fix Vivante's "hisilicon" GPUs" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@HUAWEI_fix_black_fix_var
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
« no previous file with comments | « ui/gl/gl_surface_egl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_egl.cc
diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
index 98ed4fabf7765420e2035cf37661aa4c1df11754..3b81daf83285a476768cb724f7facde9bbca8950 100644
--- a/ui/gl/gl_surface_egl.cc
+++ b/ui/gl/gl_surface_egl.cc
@@ -221,8 +221,7 @@ NativeViewGLSurfaceEGL::NativeViewGLSurfaceEGL(bool software,
: window_(window),
surface_(NULL),
supports_post_sub_buffer_(false),
- config_(NULL),
- recreate_on_make_current_(false) {
+ config_(NULL) {
software_ = software;
#if defined(OS_ANDROID)
if (window)
@@ -400,28 +399,16 @@ bool NativeViewGLSurfaceEGL::Resize(const gfx::Size& size) {
if (was_current)
current_context->ReleaseCurrent(this);
- Recreate();
-
- if (was_current)
- return current_context->MakeCurrent(this);
- return true;
-}
-
-bool NativeViewGLSurfaceEGL::Recreate() {
Destroy();
+
if (!Initialize()) {
- LOG(ERROR) << "Failed to create surface.";
+ LOG(ERROR) << "Failed to resize pbuffer.";
return false;
}
- return true;
-}
-
-bool NativeViewGLSurfaceEGL::RecreateOnMakeCurrent() {
- return recreate_on_make_current_;
-}
-void NativeViewGLSurfaceEGL::SetRecreateOnMakeCurrent(bool recreate) {
- recreate_on_make_current_ = recreate;
+ if (was_current)
+ return current_context->MakeCurrent(this);
+ return true;
}
EGLSurface NativeViewGLSurfaceEGL::GetHandle() {
« no previous file with comments | « ui/gl/gl_surface_egl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698