| 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/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 Loading... |
| 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 |
| OLD | NEW |