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/picture_layer_tiling_set.h" | 5 #include "cc/picture_layer_tiling_set.h" |
6 | 6 |
7 namespace cc { | 7 namespace cc { |
8 | 8 |
9 namespace { | 9 namespace { |
10 | 10 |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 current_frame_time, | 293 current_frame_time, |
294 store_screen_space_quads_on_tiles); | 294 store_screen_space_quads_on_tiles); |
295 } | 295 } |
296 } | 296 } |
297 | 297 |
298 void PictureLayerTilingSet::DidBecomeActive() { | 298 void PictureLayerTilingSet::DidBecomeActive() { |
299 for (size_t i = 0; i < tilings_.size(); ++i) | 299 for (size_t i = 0; i < tilings_.size(); ++i) |
300 tilings_[i]->DidBecomeActive(); | 300 tilings_[i]->DidBecomeActive(); |
301 } | 301 } |
302 | 302 |
| 303 scoped_ptr<base::Value> PictureLayerTilingSet::AsValue() const { |
| 304 scoped_ptr<base::ListValue> state(new base::ListValue()); |
| 305 for (size_t i = 0; i < tilings_.size(); ++i) |
| 306 state->Append(tilings_[i]->AsValue().release()); |
| 307 return state.PassAs<base::Value>(); |
| 308 } |
| 309 |
303 } // namespace cc | 310 } // namespace cc |
OLD | NEW |