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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 gfx::Rect viewport_rect_for_tile_priority_in_content_space() { | 119 gfx::Rect viewport_rect_for_tile_priority_in_content_space() { |
120 return viewport_rect_for_tile_priority_in_content_space_; | 120 return viewport_rect_for_tile_priority_in_content_space_; |
121 } | 121 } |
122 | 122 |
123 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } | 123 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } |
124 | 124 |
125 void SetIsDrawnRenderSurfaceLayerListMember(bool is); | 125 void SetIsDrawnRenderSurfaceLayerListMember(bool is); |
126 | 126 |
127 void CreateAllTiles(); | 127 void CreateAllTiles(); |
128 void SetAllTilesVisible(); | |
129 void SetAllTilesReady(); | 128 void SetAllTilesReady(); |
130 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling); | 129 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling); |
131 void SetTileReady(Tile* tile); | 130 void SetTileReady(Tile* tile); |
132 void ResetAllTilesPriorities(); | |
133 PictureLayerTilingSet* GetTilings() { return tilings_.get(); } | 131 PictureLayerTilingSet* GetTilings() { return tilings_.get(); } |
134 | 132 |
135 // Add the given tiling as a "used" tiling during AppendQuads. This ensures | 133 // Add the given tiling as a "used" tiling during AppendQuads. This ensures |
136 // that future calls to UpdateTiles don't delete the tiling. | 134 // that future calls to UpdateTiles don't delete the tiling. |
137 void MarkAllTilingsUsed() { | 135 void MarkAllTilingsUsed() { |
138 last_append_quads_tilings_.clear(); | 136 last_append_quads_tilings_.clear(); |
139 for (size_t i = 0; i < tilings_->num_tilings(); ++i) | 137 for (size_t i = 0; i < tilings_->num_tilings(); ++i) |
140 last_append_quads_tilings_.push_back(tilings_->tiling_at(i)); | 138 last_append_quads_tilings_.push_back(tilings_->tiling_at(i)); |
141 } | 139 } |
142 | 140 |
(...skipping 29 matching lines...) Expand all Loading... |
172 size_t append_quads_count_; | 170 size_t append_quads_count_; |
173 size_t did_become_active_call_count_; | 171 size_t did_become_active_call_count_; |
174 bool has_valid_tile_priorities_; | 172 bool has_valid_tile_priorities_; |
175 bool use_set_valid_tile_priorities_flag_; | 173 bool use_set_valid_tile_priorities_flag_; |
176 size_t release_resources_count_; | 174 size_t release_resources_count_; |
177 }; | 175 }; |
178 | 176 |
179 } // namespace cc | 177 } // namespace cc |
180 | 178 |
181 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 179 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |