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

Unified Diff: cc/output/gl_renderer.cc

Issue 20185002: ContextProvider in OutputSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: contextprovider: don't access Context3d() in OutputSurface contructors, it's not bound yet Created 7 years, 4 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 | « cc/output/delegating_renderer.cc ('k') | cc/output/gl_renderer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index 61d0eaaafc4bfb63f0307f8961a933a2322093fc..d1cbec3dd608ad8022206e35561eb73e2d63e10e 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -151,7 +151,7 @@ GLRenderer::GLRenderer(RendererClient* client,
: DirectRenderer(client, output_surface, resource_provider),
offscreen_framebuffer_id_(0),
shared_geometry_quad_(gfx::RectF(-0.5f, -0.5f, 1.0f, 1.0f)),
- context_(output_surface->context3d()),
+ context_(output_surface->context_provider()->Context3d()),
is_backbuffer_discarded_(false),
discard_backbuffer_when_not_visible_(false),
is_using_bind_uniform_(false),
@@ -510,7 +510,7 @@ static inline SkBitmap ApplyFilters(GLRenderer* renderer,
offscreen_contexts->Context3d()->flush();
// Use the compositor's GL context again.
- renderer->resource_provider()->GraphicsContext3D()->makeContextCurrent();
+ renderer->Context()->makeContextCurrent();
return source;
}
@@ -592,7 +592,7 @@ static SkBitmap ApplyImageFilter(GLRenderer* renderer,
offscreen_contexts->Context3d()->flush();
// Use the compositor's GL context again.
- renderer->resource_provider()->GraphicsContext3D()->makeContextCurrent();
+ renderer->Context()->makeContextCurrent();
return device.accessBitmap(false);
}
« no previous file with comments | « cc/output/delegating_renderer.cc ('k') | cc/output/gl_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698