| 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 "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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |