| 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.h" | 5 #include "cc/trees/layer_tree_host.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <stack> | 8 #include <stack> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 | 764 |
| 765 lcd_text_metrics_.total_num_cc_layers++; | 765 lcd_text_metrics_.total_num_cc_layers++; |
| 766 if (layer->draw_properties().can_use_lcd_text) { | 766 if (layer->draw_properties().can_use_lcd_text) { |
| 767 lcd_text_metrics_.total_num_cc_layers_can_use_lcd_text++; | 767 lcd_text_metrics_.total_num_cc_layers_can_use_lcd_text++; |
| 768 if (layer->contents_opaque()) | 768 if (layer->contents_opaque()) |
| 769 lcd_text_metrics_.total_num_cc_layers_will_use_lcd_text++; | 769 lcd_text_metrics_.total_num_cc_layers_will_use_lcd_text++; |
| 770 } | 770 } |
| 771 } | 771 } |
| 772 | 772 |
| 773 bool LayerTreeHost::UsingSharedMemoryResources() { | 773 bool LayerTreeHost::UsingSharedMemoryResources() { |
| 774 return GetRendererCapabilities().using_shared_memory_resources; | 774 return false; // GetRendererCapabilities().using_shared_memory_resources; |
| 775 } | 775 } |
| 776 | 776 |
| 777 bool LayerTreeHost::UpdateLayers(Layer* root_layer, | 777 bool LayerTreeHost::UpdateLayers(Layer* root_layer, |
| 778 ResourceUpdateQueue* queue) { | 778 ResourceUpdateQueue* queue) { |
| 779 TRACE_EVENT1("cc", "LayerTreeHost::UpdateLayers", | 779 TRACE_EVENT1("cc", "LayerTreeHost::UpdateLayers", |
| 780 "source_frame_number", source_frame_number()); | 780 "source_frame_number", source_frame_number()); |
| 781 | 781 |
| 782 RenderSurfaceLayerList update_list; | 782 RenderSurfaceLayerList update_list; |
| 783 { | 783 { |
| 784 UpdateHudLayer(); | 784 UpdateHudLayer(); |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1265 swap_promise_list_.push_back(swap_promise.Pass()); | 1265 swap_promise_list_.push_back(swap_promise.Pass()); |
| 1266 } | 1266 } |
| 1267 | 1267 |
| 1268 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) { | 1268 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) { |
| 1269 for (size_t i = 0; i < swap_promise_list_.size(); i++) | 1269 for (size_t i = 0; i < swap_promise_list_.size(); i++) |
| 1270 swap_promise_list_[i]->DidNotSwap(reason); | 1270 swap_promise_list_[i]->DidNotSwap(reason); |
| 1271 swap_promise_list_.clear(); | 1271 swap_promise_list_.clear(); |
| 1272 } | 1272 } |
| 1273 | 1273 |
| 1274 } // namespace cc | 1274 } // namespace cc |
| OLD | NEW |