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

Side by Side Diff: cc/trees/layer_tree_host_impl.cc

Issue 13863015: Add flag for drawing layers to screen with Ganesh (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_common.cc ('k') | cc/trees/layer_tree_settings.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
(...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after
1429 UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy()); 1429 UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy());
1430 } 1430 }
1431 1431
1432 if (output_surface->capabilities().has_parent_compositor) { 1432 if (output_surface->capabilities().has_parent_compositor) {
1433 renderer_ = DelegatingRenderer::Create(this, output_surface.get(), 1433 renderer_ = DelegatingRenderer::Create(this, output_surface.get(),
1434 resource_provider.get()); 1434 resource_provider.get());
1435 } else if (output_surface->context3d()) { 1435 } else if (output_surface->context3d()) {
1436 renderer_ = GLRenderer::Create(this, 1436 renderer_ = GLRenderer::Create(this,
1437 output_surface.get(), 1437 output_surface.get(),
1438 resource_provider.get(), 1438 resource_provider.get(),
1439 settings_.highp_threshold_min); 1439 settings_.highp_threshold_min,
1440 settings_.force_direct_layer_drawing);
1440 } else if (output_surface->software_device()) { 1441 } else if (output_surface->software_device()) {
1441 renderer_ = SoftwareRenderer::Create(this, 1442 renderer_ = SoftwareRenderer::Create(this,
1442 output_surface.get(), 1443 output_surface.get(),
1443 resource_provider.get()); 1444 resource_provider.get());
1444 } 1445 }
1445 if (!renderer_) 1446 if (!renderer_)
1446 return false; 1447 return false;
1447 1448
1448 resource_provider_ = resource_provider.Pass(); 1449 resource_provider_ = resource_provider.Pass();
1449 } 1450 }
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
2221 } 2222 }
2222 2223
2223 void LayerTreeHostImpl::SetDebugState(const LayerTreeDebugState& debug_state) { 2224 void LayerTreeHostImpl::SetDebugState(const LayerTreeDebugState& debug_state) {
2224 if (debug_state_.continuous_painting != debug_state.continuous_painting) 2225 if (debug_state_.continuous_painting != debug_state.continuous_painting)
2225 paint_time_counter_->ClearHistory(); 2226 paint_time_counter_->ClearHistory();
2226 2227
2227 debug_state_ = debug_state; 2228 debug_state_ = debug_state;
2228 } 2229 }
2229 2230
2230 } // namespace cc 2231 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common.cc ('k') | cc/trees/layer_tree_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698