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 <stddef.h> |
| 8 |
7 #include <vector> | 9 #include <vector> |
8 #include "cc/tiles/tile.h" | 10 #include "cc/tiles/tile.h" |
9 #include "cc/trees/layer_tree_impl.h" | 11 #include "cc/trees/layer_tree_impl.h" |
10 | 12 |
11 namespace cc { | 13 namespace cc { |
12 | 14 |
13 FakePictureLayerImpl::FakePictureLayerImpl( | 15 FakePictureLayerImpl::FakePictureLayerImpl( |
14 LayerTreeImpl* tree_impl, | 16 LayerTreeImpl* tree_impl, |
15 int id, | 17 int id, |
16 scoped_refptr<DisplayListRasterSource> raster_source, | 18 scoped_refptr<DisplayListRasterSource> raster_source, |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 | 237 |
236 return CountTilesRequired(&PictureLayerTiling::IsTileRequiredForDraw); | 238 return CountTilesRequired(&PictureLayerTiling::IsTileRequiredForDraw); |
237 } | 239 } |
238 | 240 |
239 void FakePictureLayerImpl::ReleaseResources() { | 241 void FakePictureLayerImpl::ReleaseResources() { |
240 PictureLayerImpl::ReleaseResources(); | 242 PictureLayerImpl::ReleaseResources(); |
241 ++release_resources_count_; | 243 ++release_resources_count_; |
242 } | 244 } |
243 | 245 |
244 } // namespace cc | 246 } // namespace cc |
OLD | NEW |