OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |