| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 PictureLayerImpl* twin_layer() { return twin_layer_; } | 86 PictureLayerImpl* twin_layer() { return twin_layer_; } |
| 87 void set_twin_layer(PictureLayerImpl* twin) { twin_layer_ = twin; } | 87 void set_twin_layer(PictureLayerImpl* twin) { twin_layer_ = twin; } |
| 88 PictureLayerTilingSet* tilings() { return tilings_.get(); } | 88 PictureLayerTilingSet* tilings() { return tilings_.get(); } |
| 89 PicturePileImpl* pile() { return pile_.get(); } | 89 PicturePileImpl* pile() { return pile_.get(); } |
| 90 size_t append_quads_count() { return append_quads_count_; } | 90 size_t append_quads_count() { return append_quads_count_; } |
| 91 | 91 |
| 92 const Region& invalidation() const { return invalidation_; } | 92 const Region& invalidation() const { return invalidation_; } |
| 93 void set_invalidation(const Region& region) { invalidation_ = region; } | 93 void set_invalidation(const Region& region) { invalidation_ = region; } |
| 94 | 94 |
| 95 void set_visible_rect_for_tile_priority(gfx::Rect rect) { |
| 96 visible_rect_for_tile_priority_ = rect; |
| 97 } |
| 95 gfx::Rect visible_rect_for_tile_priority() { | 98 gfx::Rect visible_rect_for_tile_priority() { |
| 96 return visible_rect_for_tile_priority_; | 99 return visible_rect_for_tile_priority_; |
| 97 } | 100 } |
| 98 gfx::Rect viewport_rect_for_tile_priority() { | 101 gfx::Rect viewport_rect_for_tile_priority() { |
| 99 return viewport_rect_for_tile_priority_; | 102 return viewport_rect_for_tile_priority_; |
| 100 } | 103 } |
| 101 gfx::Transform screen_space_transform_for_tile_priority() { | 104 gfx::Transform screen_space_transform_for_tile_priority() { |
| 102 return screen_space_transform_for_tile_priority_; | 105 return screen_space_transform_for_tile_priority_; |
| 103 } | 106 } |
| 104 | 107 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 134 size_t append_quads_count_; | 137 size_t append_quads_count_; |
| 135 size_t did_become_active_call_count_; | 138 size_t did_become_active_call_count_; |
| 136 bool has_valid_tile_priorities_; | 139 bool has_valid_tile_priorities_; |
| 137 bool use_set_valid_tile_priorities_flag_; | 140 bool use_set_valid_tile_priorities_flag_; |
| 138 size_t release_resources_count_; | 141 size_t release_resources_count_; |
| 139 }; | 142 }; |
| 140 | 143 |
| 141 } // namespace cc | 144 } // namespace cc |
| 142 | 145 |
| 143 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 146 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |