Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(502)

Side by Side Diff: cc/picture_layer_tiling_set.cc

Issue 12258044: cc: Add PictureLayerImpl::AsValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Size as value Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/picture_layer_tiling_set.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/picture_layer_tiling_set.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698