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 #ifndef CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 5 #ifndef CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
6 #define CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 6 #define CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "cc/layers/picture_layer_impl.h" | 13 #include "cc/layers/picture_layer_impl.h" |
14 #include "cc/playback/raster_source.h" | 14 #include "cc/raster/raster_source.h" |
15 | 15 |
16 namespace cc { | 16 namespace cc { |
17 | 17 |
18 class FakePictureLayerImpl : public PictureLayerImpl { | 18 class FakePictureLayerImpl : public PictureLayerImpl { |
19 public: | 19 public: |
20 using TileRequirementCheck = bool (PictureLayerTiling::*)(const Tile*) const; | 20 using TileRequirementCheck = bool (PictureLayerTiling::*)(const Tile*) const; |
21 | 21 |
22 static std::unique_ptr<FakePictureLayerImpl> Create(LayerTreeImpl* tree_impl, | 22 static std::unique_ptr<FakePictureLayerImpl> Create(LayerTreeImpl* tree_impl, |
23 int id) { | 23 int id) { |
24 Layer::LayerMaskType mask_type = Layer::LayerMaskType::NOT_MASK; | 24 Layer::LayerMaskType mask_type = Layer::LayerMaskType::NOT_MASK; |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 size_t did_become_active_call_count_ = 0; | 189 size_t did_become_active_call_count_ = 0; |
190 bool has_valid_tile_priorities_ = false; | 190 bool has_valid_tile_priorities_ = false; |
191 bool use_set_valid_tile_priorities_flag_ = false; | 191 bool use_set_valid_tile_priorities_flag_ = false; |
192 size_t release_resources_count_ = 0; | 192 size_t release_resources_count_ = 0; |
193 size_t release_tile_resources_count_ = 0; | 193 size_t release_tile_resources_count_ = 0; |
194 }; | 194 }; |
195 | 195 |
196 } // namespace cc | 196 } // namespace cc |
197 | 197 |
198 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 198 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |