OLD | NEW |
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 "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "cc/content_layer.h" | 7 #include "cc/content_layer.h" |
8 | 8 |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 } | 58 } |
59 | 59 |
60 void ContentLayer::setTexturePriorities(const PriorityCalculator& priorityCalc) | 60 void ContentLayer::setTexturePriorities(const PriorityCalculator& priorityCalc) |
61 { | 61 { |
62 // Update the tile data before creating all the layer's tiles. | 62 // Update the tile data before creating all the layer's tiles. |
63 updateTileSizeAndTilingOption(); | 63 updateTileSizeAndTilingOption(); |
64 | 64 |
65 TiledLayer::setTexturePriorities(priorityCalc); | 65 TiledLayer::setTexturePriorities(priorityCalc); |
66 } | 66 } |
67 | 67 |
68 void ContentLayer::update(TextureUpdateQueue& queue, const OcclusionTracker* occ
lusion, RenderingStats& stats) | 68 void ContentLayer::update(ResourceUpdateQueue& queue, const OcclusionTracker* oc
clusion, RenderingStats& stats) |
69 { | 69 { |
70 createUpdaterIfNeeded(); | 70 createUpdaterIfNeeded(); |
71 TiledLayer::update(queue, occlusion, stats); | 71 TiledLayer::update(queue, occlusion, stats); |
72 m_needsDisplay = false; | 72 m_needsDisplay = false; |
73 } | 73 } |
74 | 74 |
75 bool ContentLayer::needMoreUpdates() | 75 bool ContentLayer::needMoreUpdates() |
76 { | 76 { |
77 return needsIdlePaint(); | 77 return needsIdlePaint(); |
78 } | 78 } |
(...skipping 21 matching lines...) Expand all Loading... |
100 } | 100 } |
101 | 101 |
102 void ContentLayer::setContentsOpaque(bool opaque) | 102 void ContentLayer::setContentsOpaque(bool opaque) |
103 { | 103 { |
104 Layer::setContentsOpaque(opaque); | 104 Layer::setContentsOpaque(opaque); |
105 if (m_updater) | 105 if (m_updater) |
106 m_updater->setOpaque(opaque); | 106 m_updater->setOpaque(opaque); |
107 } | 107 } |
108 | 108 |
109 } | 109 } |
OLD | NEW |