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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 return screen_space_transform_for_tile_priority_; | 86 return screen_space_transform_for_tile_priority_; |
87 } | 87 } |
88 | 88 |
89 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } | 89 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } |
90 | 90 |
91 void CreateDefaultTilingsAndTiles(); | 91 void CreateDefaultTilingsAndTiles(); |
92 void SetAllTilesVisible(); | 92 void SetAllTilesVisible(); |
93 void SetAllTilesReady(); | 93 void SetAllTilesReady(); |
94 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling); | 94 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling); |
95 void ResetAllTilesPriorities(); | 95 void ResetAllTilesPriorities(); |
| 96 PictureLayerTilingSet* GetTilings() { return tilings_.get(); } |
96 | 97 |
97 protected: | 98 protected: |
98 FakePictureLayerImpl( | 99 FakePictureLayerImpl( |
99 LayerTreeImpl* tree_impl, | 100 LayerTreeImpl* tree_impl, |
100 int id, | 101 int id, |
101 scoped_refptr<PicturePileImpl> pile); | 102 scoped_refptr<PicturePileImpl> pile); |
102 FakePictureLayerImpl(LayerTreeImpl* tree_impl, | 103 FakePictureLayerImpl(LayerTreeImpl* tree_impl, |
103 int id, | 104 int id, |
104 scoped_refptr<PicturePileImpl> pile, | 105 scoped_refptr<PicturePileImpl> pile, |
105 const gfx::Size& layer_bounds); | 106 const gfx::Size& layer_bounds); |
106 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id); | 107 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id); |
107 | 108 |
108 private: | 109 private: |
109 gfx::Size fixed_tile_size_; | 110 gfx::Size fixed_tile_size_; |
110 | 111 |
111 size_t append_quads_count_; | 112 size_t append_quads_count_; |
112 }; | 113 }; |
113 | 114 |
114 } // namespace cc | 115 } // namespace cc |
115 | 116 |
116 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 117 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |