| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/picture_layer.h" | 5 #include "cc/layers/picture_layer.h" |
| 6 | 6 |
| 7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "cc/layers/content_layer_client.h" | 8 #include "cc/layers/content_layer_client.h" |
| 9 #include "cc/layers/picture_layer_impl.h" | 9 #include "cc/layers/picture_layer_impl.h" |
| 10 #include "cc/playback/display_list_recording_source.h" | 10 #include "cc/playback/display_list_recording_source.h" |
| 11 #include "cc/playback/picture_pile.h" | |
| 12 #include "cc/trees/layer_tree_host.h" | 11 #include "cc/trees/layer_tree_host.h" |
| 13 #include "cc/trees/layer_tree_impl.h" | 12 #include "cc/trees/layer_tree_impl.h" |
| 14 #include "third_party/skia/include/core/SkPictureRecorder.h" | 13 #include "third_party/skia/include/core/SkPictureRecorder.h" |
| 15 #include "ui/gfx/geometry/rect_conversions.h" | 14 #include "ui/gfx/geometry/rect_conversions.h" |
| 16 | 15 |
| 17 namespace cc { | 16 namespace cc { |
| 18 | 17 |
| 19 scoped_refptr<PictureLayer> PictureLayer::Create(const LayerSettings& settings, | 18 scoped_refptr<PictureLayer> PictureLayer::Create(const LayerSettings& settings, |
| 20 ContentLayerClient* client) { | 19 ContentLayerClient* client) { |
| 21 return make_scoped_refptr(new PictureLayer(settings, client)); | 20 return make_scoped_refptr(new PictureLayer(settings, client)); |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 209 |
| 211 bool PictureLayer::HasDrawableContent() const { | 210 bool PictureLayer::HasDrawableContent() const { |
| 212 return client_ && Layer::HasDrawableContent(); | 211 return client_ && Layer::HasDrawableContent(); |
| 213 } | 212 } |
| 214 | 213 |
| 215 void PictureLayer::RunMicroBenchmark(MicroBenchmark* benchmark) { | 214 void PictureLayer::RunMicroBenchmark(MicroBenchmark* benchmark) { |
| 216 benchmark->RunOnLayer(this); | 215 benchmark->RunOnLayer(this); |
| 217 } | 216 } |
| 218 | 217 |
| 219 } // namespace cc | 218 } // namespace cc |
| OLD | NEW |