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 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1393 UpdateTileManagerMemoryPolicy(managed_memory_policy_); | 1393 UpdateTileManagerMemoryPolicy(managed_memory_policy_); |
1394 } | 1394 } |
1395 | 1395 |
1396 if (output_surface->capabilities().has_parent_compositor) { | 1396 if (output_surface->capabilities().has_parent_compositor) { |
1397 renderer_ = DelegatingRenderer::Create(this, output_surface.get(), | 1397 renderer_ = DelegatingRenderer::Create(this, output_surface.get(), |
1398 resource_provider.get()); | 1398 resource_provider.get()); |
1399 } else if (output_surface->context3d()) { | 1399 } else if (output_surface->context3d()) { |
1400 renderer_ = GLRenderer::Create(this, | 1400 renderer_ = GLRenderer::Create(this, |
1401 output_surface.get(), | 1401 output_surface.get(), |
1402 resource_provider.get(), | 1402 resource_provider.get(), |
1403 settings_.highp_threshold_min); | 1403 settings_.highp_threshold_min, |
| 1404 settings_.force_direct_layer_drawing); |
1404 } else if (output_surface->software_device()) { | 1405 } else if (output_surface->software_device()) { |
1405 renderer_ = SoftwareRenderer::Create(this, | 1406 renderer_ = SoftwareRenderer::Create(this, |
1406 output_surface.get(), | 1407 output_surface.get(), |
1407 resource_provider.get()); | 1408 resource_provider.get()); |
1408 } | 1409 } |
1409 if (!renderer_) | 1410 if (!renderer_) |
1410 return false; | 1411 return false; |
1411 | 1412 |
1412 resource_provider_ = resource_provider.Pass(); | 1413 resource_provider_ = resource_provider.Pass(); |
1413 output_surface_ = output_surface.Pass(); | 1414 output_surface_ = output_surface.Pass(); |
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2163 } | 2164 } |
2164 | 2165 |
2165 void LayerTreeHostImpl::SetDebugState(const LayerTreeDebugState& debug_state) { | 2166 void LayerTreeHostImpl::SetDebugState(const LayerTreeDebugState& debug_state) { |
2166 if (debug_state_.continuous_painting != debug_state.continuous_painting) | 2167 if (debug_state_.continuous_painting != debug_state.continuous_painting) |
2167 paint_time_counter_->ClearHistory(); | 2168 paint_time_counter_->ClearHistory(); |
2168 | 2169 |
2169 debug_state_ = debug_state; | 2170 debug_state_ = debug_state; |
2170 } | 2171 } |
2171 | 2172 |
2172 } // namespace cc | 2173 } // namespace cc |
OLD | NEW |