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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "cc/layers/picture_layer_impl.h" | 9 #include "cc/layers/picture_layer_impl.h" |
| 10 #include "cc/playback/raster_source.h" |
10 | 11 |
11 namespace cc { | 12 namespace cc { |
12 | 13 |
13 class FakePictureLayerImpl : public PictureLayerImpl { | 14 class FakePictureLayerImpl : public PictureLayerImpl { |
14 public: | 15 public: |
15 static scoped_ptr<FakePictureLayerImpl> Create( | 16 static scoped_ptr<FakePictureLayerImpl> Create( |
16 LayerTreeImpl* tree_impl, int id) { | 17 LayerTreeImpl* tree_impl, int id) { |
17 bool is_mask = false; | 18 bool is_mask = false; |
18 return make_scoped_ptr(new FakePictureLayerImpl(tree_impl, id, is_mask)); | 19 return make_scoped_ptr(new FakePictureLayerImpl(tree_impl, id, is_mask)); |
19 } | 20 } |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 size_t append_quads_count_; | 170 size_t append_quads_count_; |
170 size_t did_become_active_call_count_; | 171 size_t did_become_active_call_count_; |
171 bool has_valid_tile_priorities_; | 172 bool has_valid_tile_priorities_; |
172 bool use_set_valid_tile_priorities_flag_; | 173 bool use_set_valid_tile_priorities_flag_; |
173 size_t release_resources_count_; | 174 size_t release_resources_count_; |
174 }; | 175 }; |
175 | 176 |
176 } // namespace cc | 177 } // namespace cc |
177 | 178 |
178 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 179 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |