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

Unified Diff: cc/trees/layer_tree_host_impl.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/test/pixel_test_output_surface.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 720febd7fc76edfd5e275002474f985344a9094e..2f5137d4bc1fb8b4bd5bbd0fd21fae8276cfa4eb 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -468,7 +468,7 @@ void LayerTreeHostImpl::FrameData::AppendRenderPass(
static DrawMode GetDrawMode(OutputSurface* output_surface) {
if (output_surface->ForcedDrawToSoftwareDevice()) {
return DRAW_MODE_RESOURCELESS_SOFTWARE;
- } else if (output_surface->context3d()) {
+ } else if (output_surface->context_provider()) {
return DRAW_MODE_HARDWARE;
} else {
DCHECK(output_surface->software_device());
@@ -1576,7 +1576,7 @@ void LayerTreeHostImpl::CreateAndSetRenderer(
if (output_surface->capabilities().delegated_rendering) {
renderer_ =
DelegatingRenderer::Create(this, output_surface, resource_provider);
- } else if (output_surface->context3d() && !skip_gl_renderer) {
+ } else if (output_surface->context_provider() && !skip_gl_renderer) {
renderer_ = GLRenderer::Create(this,
output_surface,
resource_provider,
@@ -1687,7 +1687,7 @@ bool LayerTreeHostImpl::DeferredInitialize(
DCHECK(output_surface_->capabilities().deferred_gl_initialization);
DCHECK(settings_.impl_side_painting);
DCHECK(settings_.solid_color_scrollbars);
- DCHECK(output_surface_->context3d());
+ DCHECK(output_surface_->context_provider());
ReleaseTreeResources();
renderer_.reset();
@@ -1710,7 +1710,7 @@ void LayerTreeHostImpl::ReleaseGL() {
DCHECK(output_surface_->capabilities().deferred_gl_initialization);
DCHECK(settings_.impl_side_painting);
DCHECK(settings_.solid_color_scrollbars);
- DCHECK(output_surface_->context3d());
+ DCHECK(output_surface_->context_provider());
ReleaseTreeResources();
renderer_.reset();
« no previous file with comments | « cc/test/pixel_test_output_surface.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698