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" | |
6 | |
7 #include "cc/content_layer.h" | 5 #include "cc/content_layer.h" |
8 | 6 |
9 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
10 #include "base/time.h" | 8 #include "base/time.h" |
11 #include "cc/bitmap_content_layer_updater.h" | 9 #include "cc/bitmap_content_layer_updater.h" |
12 #include "cc/bitmap_skpicture_content_layer_updater.h" | 10 #include "cc/bitmap_skpicture_content_layer_updater.h" |
13 #include "cc/content_layer_client.h" | 11 #include "cc/content_layer_client.h" |
14 #include "cc/layer_painter.h" | 12 #include "cc/layer_painter.h" |
15 #include "cc/layer_tree_host.h" | 13 #include "cc/layer_tree_host.h" |
16 #include "cc/settings.h" | 14 #include "cc/settings.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 } | 98 } |
101 | 99 |
102 void ContentLayer::setContentsOpaque(bool opaque) | 100 void ContentLayer::setContentsOpaque(bool opaque) |
103 { | 101 { |
104 Layer::setContentsOpaque(opaque); | 102 Layer::setContentsOpaque(opaque); |
105 if (m_updater) | 103 if (m_updater) |
106 m_updater->setOpaque(opaque); | 104 m_updater->setOpaque(opaque); |
107 } | 105 } |
108 | 106 |
109 } // namespace cc | 107 } // namespace cc |
OLD | NEW |