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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 gfx::Rect visible_rect_for_tile_priority() { | 106 gfx::Rect visible_rect_for_tile_priority() { |
107 return visible_rect_for_tile_priority_; | 107 return visible_rect_for_tile_priority_; |
108 } | 108 } |
109 | 109 |
110 gfx::Rect viewport_rect_for_tile_priority_in_content_space() { | 110 gfx::Rect viewport_rect_for_tile_priority_in_content_space() { |
111 return viewport_rect_for_tile_priority_in_content_space_; | 111 return viewport_rect_for_tile_priority_in_content_space_; |
112 } | 112 } |
113 | 113 |
114 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } | 114 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } |
115 | 115 |
| 116 void SetIsDrawnRenderSurfaceLayerListMember(bool is); |
| 117 |
116 void CreateAllTiles(); | 118 void CreateAllTiles(); |
117 void SetAllTilesVisible(); | 119 void SetAllTilesVisible(); |
118 void SetAllTilesReady(); | 120 void SetAllTilesReady(); |
119 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling); | 121 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling); |
120 void SetTileReady(Tile* tile); | 122 void SetTileReady(Tile* tile); |
121 void ResetAllTilesPriorities(); | 123 void ResetAllTilesPriorities(); |
122 PictureLayerTilingSet* GetTilings() { return tilings_.get(); } | 124 PictureLayerTilingSet* GetTilings() { return tilings_.get(); } |
123 | 125 |
124 // Add the given tiling as a "used" tiling during AppendQuads. This ensures | 126 // Add the given tiling as a "used" tiling during AppendQuads. This ensures |
125 // that future calls to UpdateTiles don't delete the tiling. | 127 // that future calls to UpdateTiles don't delete the tiling. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 size_t append_quads_count_; | 163 size_t append_quads_count_; |
162 size_t did_become_active_call_count_; | 164 size_t did_become_active_call_count_; |
163 bool has_valid_tile_priorities_; | 165 bool has_valid_tile_priorities_; |
164 bool use_set_valid_tile_priorities_flag_; | 166 bool use_set_valid_tile_priorities_flag_; |
165 size_t release_resources_count_; | 167 size_t release_resources_count_; |
166 }; | 168 }; |
167 | 169 |
168 } // namespace cc | 170 } // namespace cc |
169 | 171 |
170 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 172 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |