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

Side by Side Diff: cc/resources/picture_layer_tiling_set.cc

Issue 12471007: Part 8 of cc/ directory shuffles: resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
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/resources/picture_layer_tiling_set.h"
6 6
7 namespace cc { 7 namespace cc {
8 8
9 namespace { 9 namespace {
10 10
11 class LargestToSmallestScaleFunctor { 11 class LargestToSmallestScaleFunctor {
12 public: 12 public:
13 bool operator() (PictureLayerTiling* left, PictureLayerTiling* right) { 13 bool operator() (PictureLayerTiling* left, PictureLayerTiling* right) {
14 return left->contents_scale() > right->contents_scale(); 14 return left->contents_scale() > right->contents_scale();
15 } 15 }
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 } 302 }
303 303
304 scoped_ptr<base::Value> PictureLayerTilingSet::AsValue() const { 304 scoped_ptr<base::Value> PictureLayerTilingSet::AsValue() const {
305 scoped_ptr<base::ListValue> state(new base::ListValue()); 305 scoped_ptr<base::ListValue> state(new base::ListValue());
306 for (size_t i = 0; i < tilings_.size(); ++i) 306 for (size_t i = 0; i < tilings_.size(); ++i)
307 state->Append(tilings_[i]->AsValue().release()); 307 state->Append(tilings_[i]->AsValue().release());
308 return state.PassAs<base::Value>(); 308 return state.PassAs<base::Value>();
309 } 309 }
310 310
311 } // namespace cc 311 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_set.h ('k') | cc/resources/picture_layer_tiling_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698