| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 const Region& invalidation() const { return invalidation_; } | 104 const Region& invalidation() const { return invalidation_; } |
| 105 void set_invalidation(const Region& region) { invalidation_ = region; } | 105 void set_invalidation(const Region& region) { invalidation_ = region; } |
| 106 | 106 |
| 107 gfx::Rect visible_rect_for_tile_priority() { | 107 gfx::Rect visible_rect_for_tile_priority() { |
| 108 return visible_rect_for_tile_priority_; | 108 return visible_rect_for_tile_priority_; |
| 109 } | 109 } |
| 110 | 110 |
| 111 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } | 111 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } |
| 112 | 112 |
| 113 // TODO(danakj): Remove this darn thing. | 113 void CreateAllTiles(); |
| 114 void CreateDefaultTilingsAndTiles(); | |
| 115 | |
| 116 void SetAllTilesVisible(); | 114 void SetAllTilesVisible(); |
| 117 void SetAllTilesReady(); | 115 void SetAllTilesReady(); |
| 118 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling); | 116 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling); |
| 119 void SetTileReady(Tile* tile); | 117 void SetTileReady(Tile* tile); |
| 120 void ResetAllTilesPriorities(); | 118 void ResetAllTilesPriorities(); |
| 121 PictureLayerTilingSet* GetTilings() { return tilings_.get(); } | 119 PictureLayerTilingSet* GetTilings() { return tilings_.get(); } |
| 122 | 120 |
| 123 size_t release_resources_count() const { return release_resources_count_; } | 121 size_t release_resources_count() const { return release_resources_count_; } |
| 124 void reset_release_resources_count() { release_resources_count_ = 0; } | 122 void reset_release_resources_count() { release_resources_count_ = 0; } |
| 125 | 123 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 147 size_t append_quads_count_; | 145 size_t append_quads_count_; |
| 148 size_t did_become_active_call_count_; | 146 size_t did_become_active_call_count_; |
| 149 bool has_valid_tile_priorities_; | 147 bool has_valid_tile_priorities_; |
| 150 bool use_set_valid_tile_priorities_flag_; | 148 bool use_set_valid_tile_priorities_flag_; |
| 151 size_t release_resources_count_; | 149 size_t release_resources_count_; |
| 152 }; | 150 }; |
| 153 | 151 |
| 154 } // namespace cc | 152 } // namespace cc |
| 155 | 153 |
| 156 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 154 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |