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 | 10 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 FakePictureLayerImpl(LayerTreeImpl* tree_impl, | 142 FakePictureLayerImpl(LayerTreeImpl* tree_impl, |
143 int id, | 143 int id, |
144 scoped_refptr<RasterSource> raster_source, | 144 scoped_refptr<RasterSource> raster_source, |
145 bool is_mask); | 145 bool is_mask); |
146 FakePictureLayerImpl(LayerTreeImpl* tree_impl, | 146 FakePictureLayerImpl(LayerTreeImpl* tree_impl, |
147 int id, | 147 int id, |
148 scoped_refptr<RasterSource> raster_source, | 148 scoped_refptr<RasterSource> raster_source, |
149 bool is_mask, | 149 bool is_mask, |
150 const gfx::Size& layer_bounds); | 150 const gfx::Size& layer_bounds); |
151 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id, bool is_mask); | 151 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id, bool is_mask); |
| 152 FakePictureLayerImpl( |
| 153 LayerTreeImpl* tree_impl, |
| 154 int id, |
| 155 bool is_mask, |
| 156 scoped_refptr<LayerImpl::SyncedScrollOffset> synced_scroll_offset); |
152 | 157 |
153 private: | 158 private: |
154 gfx::Size fixed_tile_size_; | 159 gfx::Size fixed_tile_size_; |
155 | 160 |
156 size_t append_quads_count_; | 161 size_t append_quads_count_; |
157 size_t did_become_active_call_count_; | 162 size_t did_become_active_call_count_; |
158 bool has_valid_tile_priorities_; | 163 bool has_valid_tile_priorities_; |
159 bool use_set_valid_tile_priorities_flag_; | 164 bool use_set_valid_tile_priorities_flag_; |
160 size_t release_resources_count_; | 165 size_t release_resources_count_; |
161 }; | 166 }; |
162 | 167 |
163 } // namespace cc | 168 } // namespace cc |
164 | 169 |
165 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 170 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |