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

Unified Diff: sky/shell/gpu/ganesh_surface.h

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
« no previous file with comments | « no previous file | sky/shell/gpu/ganesh_surface.cc » ('j') | ui/gl/gl_surface_ios.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/gpu/ganesh_surface.h
diff --git a/sky/shell/gpu/ganesh_surface.h b/sky/shell/gpu/ganesh_surface.h
index 9a6ef1490fddbbf165f054c35bf5c6860c93d516..bceaad55d511851ef961fc5e8014a791e0376272 100644
--- a/sky/shell/gpu/ganesh_surface.h
+++ b/sky/shell/gpu/ganesh_surface.h
@@ -15,11 +15,13 @@ namespace sky {
namespace shell {
// GaneshSurface holds an SkSurface configured to render with Ganesh. Using the
-// provided GaneshContext, GaneshSurface wraps an SkSurface around FBO 0 so that
-// you can use |canvas()| to draw to FBO 0.
+// provided GaneshContext, GaneshSurface wraps an SkSurface around the window
+// bound FBO so that you can use |canvas()| to draw to that window bound FBO.
class GaneshSurface {
public:
- GaneshSurface(GaneshContext* context, const gfx::Size& size);
+ GaneshSurface(intptr_t window_fbo,
+ GaneshContext* context,
+ const gfx::Size& size);
~GaneshSurface();
SkCanvas* canvas() const { return surface_->getCanvas(); }
« no previous file with comments | « no previous file | sky/shell/gpu/ganesh_surface.cc » ('j') | ui/gl/gl_surface_ios.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698