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/layer.h" | 5 #include "cc/layers/layer.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1233 } | 1233 } |
1234 | 1234 |
1235 ScrollbarLayerInterface* Layer::ToScrollbarLayer() { | 1235 ScrollbarLayerInterface* Layer::ToScrollbarLayer() { |
1236 return nullptr; | 1236 return nullptr; |
1237 } | 1237 } |
1238 | 1238 |
1239 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { | 1239 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { |
1240 return layer_tree_host_->rendering_stats_instrumentation(); | 1240 return layer_tree_host_->rendering_stats_instrumentation(); |
1241 } | 1241 } |
1242 | 1242 |
1243 bool Layer::SupportsLCDText() const { | |
1244 return false; | |
1245 } | |
1246 | |
1247 void Layer::RemoveFromScrollTree() { | 1243 void Layer::RemoveFromScrollTree() { |
1248 if (scroll_children_.get()) { | 1244 if (scroll_children_.get()) { |
1249 std::set<Layer*> copy = *scroll_children_; | 1245 std::set<Layer*> copy = *scroll_children_; |
1250 for (std::set<Layer*>::iterator it = copy.begin(); it != copy.end(); ++it) | 1246 for (std::set<Layer*>::iterator it = copy.begin(); it != copy.end(); ++it) |
1251 (*it)->SetScrollParent(nullptr); | 1247 (*it)->SetScrollParent(nullptr); |
1252 } | 1248 } |
1253 | 1249 |
1254 DCHECK(!scroll_children_); | 1250 DCHECK(!scroll_children_); |
1255 SetScrollParent(nullptr); | 1251 SetScrollParent(nullptr); |
1256 } | 1252 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1323 } | 1319 } |
1324 | 1320 |
1325 void Layer::SetFrameTimingRequests( | 1321 void Layer::SetFrameTimingRequests( |
1326 const std::vector<FrameTimingRequest>& requests) { | 1322 const std::vector<FrameTimingRequest>& requests) { |
1327 frame_timing_requests_ = requests; | 1323 frame_timing_requests_ = requests; |
1328 frame_timing_requests_dirty_ = true; | 1324 frame_timing_requests_dirty_ = true; |
1329 SetNeedsCommit(); | 1325 SetNeedsCommit(); |
1330 } | 1326 } |
1331 | 1327 |
1332 } // namespace cc | 1328 } // namespace cc |
OLD | NEW |