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/layers/content_layer.h" | 5 #include "cc/layers/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/time.h" |
10 #include "cc/layers/content_layer_client.h" | 10 #include "cc/layers/content_layer_client.h" |
11 #include "cc/resources/bitmap_content_layer_updater.h" | 11 #include "cc/resources/bitmap_content_layer_updater.h" |
12 #include "cc/resources/bitmap_skpicture_content_layer_updater.h" | 12 #include "cc/resources/bitmap_skpicture_content_layer_updater.h" |
13 #include "cc/resources/layer_painter.h" | 13 #include "cc/resources/layer_painter.h" |
14 #include "cc/trees/layer_tree_host.h" | 14 #include "cc/trees/layer_tree_host.h" |
15 | 15 |
16 namespace cc { | 16 namespace cc { |
17 | 17 |
18 ContentLayerPainter::ContentLayerPainter(ContentLayerClient* client) | 18 ContentLayerPainter::ContentLayerPainter(ContentLayerClient* client) |
19 : client_(client) {} | 19 : client_(client) {} |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 can_use_lcd_text_last_frame_ = can_use_lcd_text(); | 140 can_use_lcd_text_last_frame_ = can_use_lcd_text(); |
141 if (client_) | 141 if (client_) |
142 client_->DidChangeLayerCanUseLCDText(); | 142 client_->DidChangeLayerCanUseLCDText(); |
143 } | 143 } |
144 | 144 |
145 bool ContentLayer::SupportsLCDText() const { | 145 bool ContentLayer::SupportsLCDText() const { |
146 return true; | 146 return true; |
147 } | 147 } |
148 | 148 |
149 } // namespace cc | 149 } // namespace cc |
OLD | NEW |