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

Side by Side Diff: cc/content_layer.cc

Issue 12095053: cc: Avoid expensive RenderingStats collection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 years, 10 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/content_layer.h ('k') | cc/content_layer_unittest.cc » ('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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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/content_layer.h" 5 #include "cc/content_layer.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "cc/bitmap_content_layer_updater.h" 10 #include "cc/bitmap_content_layer_updater.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 void ContentLayer::setTexturePriorities(const PriorityCalculator& priorityCalc) 61 void ContentLayer::setTexturePriorities(const PriorityCalculator& priorityCalc)
62 { 62 {
63 // Update the tile data before creating all the layer's tiles. 63 // Update the tile data before creating all the layer's tiles.
64 updateTileSizeAndTilingOption(); 64 updateTileSizeAndTilingOption();
65 65
66 TiledLayer::setTexturePriorities(priorityCalc); 66 TiledLayer::setTexturePriorities(priorityCalc);
67 } 67 }
68 68
69 void ContentLayer::update(ResourceUpdateQueue& queue, const OcclusionTracker* oc clusion, RenderingStats& stats) 69 void ContentLayer::update(ResourceUpdateQueue& queue, const OcclusionTracker* oc clusion, RenderingStats* stats)
70 { 70 {
71 { 71 {
72 base::AutoReset<bool> ignoreSetNeedsCommit(&m_ignoreSetNeedsCommit, true ); 72 base::AutoReset<bool> ignoreSetNeedsCommit(&m_ignoreSetNeedsCommit, true );
73 73
74 createUpdaterIfNeeded(); 74 createUpdaterIfNeeded();
75 } 75 }
76 76
77 TiledLayer::update(queue, occlusion, stats); 77 TiledLayer::update(queue, occlusion, stats);
78 m_needsDisplay = false; 78 m_needsDisplay = false;
79 } 79 }
(...skipping 26 matching lines...) Expand all
106 } 106 }
107 107
108 void ContentLayer::setContentsOpaque(bool opaque) 108 void ContentLayer::setContentsOpaque(bool opaque)
109 { 109 {
110 Layer::setContentsOpaque(opaque); 110 Layer::setContentsOpaque(opaque);
111 if (m_updater) 111 if (m_updater)
112 m_updater->setOpaque(opaque); 112 m_updater->setOpaque(opaque);
113 } 113 }
114 114
115 } // namespace cc 115 } // namespace cc
OLDNEW
« no previous file with comments | « cc/content_layer.h ('k') | cc/content_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698