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/resources/display_list_recording_source.h" | 10 #include "cc/resources/display_list_recording_source.h" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 } | 205 } |
206 | 206 |
207 bool PictureLayer::HasDrawableContent() const { | 207 bool PictureLayer::HasDrawableContent() const { |
208 return client_ && Layer::HasDrawableContent(); | 208 return client_ && Layer::HasDrawableContent(); |
209 } | 209 } |
210 | 210 |
211 void PictureLayer::RunMicroBenchmark(MicroBenchmark* benchmark) { | 211 void PictureLayer::RunMicroBenchmark(MicroBenchmark* benchmark) { |
212 benchmark->RunOnLayer(this); | 212 benchmark->RunOnLayer(this); |
213 } | 213 } |
214 | 214 |
| 215 void PictureLayer::OnDeviceViewportSizeChanged() { |
| 216 SetNeedsPushProperties(); |
| 217 } |
| 218 |
215 } // namespace cc | 219 } // namespace cc |
OLD | NEW |