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

Unified Diff: ui/gl/gl_surface_ios.mm

Issue 1183213007: Fix offscreen rendering on iOS by not assuming that the default window bound framebuffer is 0 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
« ui/gl/gl_surface_ios.h ('K') | « ui/gl/gl_surface_ios.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_ios.mm
diff --git a/ui/gl/gl_surface_ios.mm b/ui/gl/gl_surface_ios.mm
index 669e7e2b99daf40bc508a8feb00d972dde1059c1..a65c666ab89b76d0d330fac7bc84fa2e9d502ec9 100644
--- a/ui/gl/gl_surface_ios.mm
+++ b/ui/gl/gl_surface_ios.mm
@@ -218,6 +218,10 @@ bool GLSurfaceIOS::SwapBuffers() {
return [[EAGLContext currentContext] presentRenderbuffer:GL_RENDERBUFFER];
}
+unsigned int GLSurfaceIOS::GetBackingFrameBufferObject() {
+ return framebuffer_;
+}
+
void GLSurfaceIOS::Destroy() {
DCHECK(glGetError() == GL_NO_ERROR);
« ui/gl/gl_surface_ios.h ('K') | « ui/gl/gl_surface_ios.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698