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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 float raster_page_scale() const { return raster_page_scale_; } | 73 float raster_page_scale() const { return raster_page_scale_; } |
74 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; } | 74 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; } |
75 | 75 |
76 float ideal_contents_scale() const { return ideal_contents_scale_; } | 76 float ideal_contents_scale() const { return ideal_contents_scale_; } |
77 float raster_contents_scale() const { return raster_contents_scale_; } | 77 float raster_contents_scale() const { return raster_contents_scale_; } |
78 | 78 |
79 PictureLayerTiling* HighResTiling() const; | 79 PictureLayerTiling* HighResTiling() const; |
80 PictureLayerTiling* LowResTiling() const; | 80 PictureLayerTiling* LowResTiling() const; |
81 size_t num_tilings() const { return tilings_->num_tilings(); } | 81 size_t num_tilings() const { return tilings_->num_tilings(); } |
82 | 82 |
| 83 PictureLayerImpl* twin_layer() { return twin_layer_; } |
| 84 void set_twin_layer(PictureLayerImpl* twin) { twin_layer_ = twin; } |
83 PictureLayerTilingSet* tilings() { return tilings_.get(); } | 85 PictureLayerTilingSet* tilings() { return tilings_.get(); } |
84 PicturePileImpl* pile() { return pile_.get(); } | 86 PicturePileImpl* pile() { return pile_.get(); } |
85 void SetPile(scoped_refptr<PicturePileImpl> pile); | |
86 size_t append_quads_count() { return append_quads_count_; } | 87 size_t append_quads_count() { return append_quads_count_; } |
87 | 88 |
88 const Region& invalidation() const { return invalidation_; } | 89 const Region& invalidation() const { return invalidation_; } |
89 void set_invalidation(const Region& region) { invalidation_ = region; } | 90 void set_invalidation(const Region& region) { invalidation_ = region; } |
90 | 91 |
91 gfx::Rect visible_rect_for_tile_priority() { | 92 gfx::Rect visible_rect_for_tile_priority() { |
92 return visible_rect_for_tile_priority_; | 93 return visible_rect_for_tile_priority_; |
93 } | 94 } |
94 | 95 |
95 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } | 96 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 size_t append_quads_count_; | 129 size_t append_quads_count_; |
129 size_t did_become_active_call_count_; | 130 size_t did_become_active_call_count_; |
130 bool has_valid_tile_priorities_; | 131 bool has_valid_tile_priorities_; |
131 bool use_set_valid_tile_priorities_flag_; | 132 bool use_set_valid_tile_priorities_flag_; |
132 size_t release_resources_count_; | 133 size_t release_resources_count_; |
133 }; | 134 }; |
134 | 135 |
135 } // namespace cc | 136 } // namespace cc |
136 | 137 |
137 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 138 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |