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

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

Issue 124063003: [NOT FOR COMMIT] Hacks to get hardware canvas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mass corruption on detach Created 6 years, 11 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
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.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
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
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
OLDNEW
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | content/browser/android/in_process/synchronous_compositor_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698