OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/test/fake_picture_layer_impl.h" | 5 #include "cc/test/fake_picture_layer_impl.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 #include "cc/resources/tile.h" | 8 #include "cc/resources/tile.h" |
9 #include "cc/trees/layer_tree_impl.h" | 9 #include "cc/trees/layer_tree_impl.h" |
10 | 10 |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 } | 253 } |
254 } | 254 } |
255 | 255 |
256 return count; | 256 return count; |
257 } | 257 } |
258 | 258 |
259 size_t FakePictureLayerImpl::CountTilesRequiredForActivation() const { | 259 size_t FakePictureLayerImpl::CountTilesRequiredForActivation() const { |
260 if (!layer_tree_impl()->IsPendingTree()) | 260 if (!layer_tree_impl()->IsPendingTree()) |
261 return 0; | 261 return 0; |
262 | 262 |
263 return CountTilesRequired( | 263 return CountTilesRequired(&PictureLayerTiling::IsTileRequiredForActivation); |
264 &PictureLayerTiling::IsTileRequiredForActivationIfVisible); | |
265 } | 264 } |
266 | 265 |
267 size_t FakePictureLayerImpl::CountTilesRequiredForDraw() const { | 266 size_t FakePictureLayerImpl::CountTilesRequiredForDraw() const { |
268 if (!layer_tree_impl()->IsActiveTree()) | 267 if (!layer_tree_impl()->IsActiveTree()) |
269 return 0; | 268 return 0; |
270 | 269 |
271 return CountTilesRequired( | 270 return CountTilesRequired(&PictureLayerTiling::IsTileRequiredForDraw); |
272 &PictureLayerTiling::IsTileRequiredForDrawIfVisible); | |
273 } | 271 } |
274 | 272 |
275 void FakePictureLayerImpl::ReleaseResources() { | 273 void FakePictureLayerImpl::ReleaseResources() { |
276 PictureLayerImpl::ReleaseResources(); | 274 PictureLayerImpl::ReleaseResources(); |
277 ++release_resources_count_; | 275 ++release_resources_count_; |
278 } | 276 } |
279 | 277 |
280 } // namespace cc | 278 } // namespace cc |
OLD | NEW |