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

Unified Diff: android_webview/browser/aw_gl_surface.cc

Issue 2375743002: [Merge M54] aw: Fix FBO restore in webview functor (Closed)
Patch Set: Created 4 years, 3 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 | « android_webview/browser/aw_gl_surface.h ('k') | android_webview/browser/hardware_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_gl_surface.cc
diff --git a/android_webview/browser/aw_gl_surface.cc b/android_webview/browser/aw_gl_surface.cc
index 9f2163b64caacfc7eb7f231e046d4354b989ddd7..c2ed5ab59eaef8895d4ef214edbdb36042ba14e6 100644
--- a/android_webview/browser/aw_gl_surface.cc
+++ b/android_webview/browser/aw_gl_surface.cc
@@ -4,9 +4,11 @@
#include "android_webview/browser/aw_gl_surface.h"
+#include "android_webview/browser/scoped_app_gl_state_restore.h"
+
namespace android_webview {
-AwGLSurface::AwGLSurface() : fbo_(0) {}
+AwGLSurface::AwGLSurface() {}
AwGLSurface::~AwGLSurface() {}
@@ -18,7 +20,7 @@ bool AwGLSurface::IsOffscreen() {
}
unsigned int AwGLSurface::GetBackingFramebufferObject() {
- return fbo_;
+ return ScopedAppGLStateRestore::Current()->framebuffer_binding_ext();
}
gfx::SwapResult AwGLSurface::SwapBuffers() {
@@ -37,8 +39,4 @@ void* AwGLSurface::GetDisplay() {
return NULL;
}
-void AwGLSurface::SetBackingFrameBufferObject(unsigned int fbo) {
- fbo_ = fbo;
-}
-
} // namespace android_webview
« no previous file with comments | « android_webview/browser/aw_gl_surface.h ('k') | android_webview/browser/hardware_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698