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; } | |
85 PictureLayerTilingSet* tilings() { return tilings_.get(); } | 83 PictureLayerTilingSet* tilings() { return tilings_.get(); } |
86 PicturePileImpl* pile() { return pile_.get(); } | 84 PicturePileImpl* pile() { return pile_.get(); } |
| 85 void SetPile(scoped_refptr<PicturePileImpl> pile); |
87 size_t append_quads_count() { return append_quads_count_; } | 86 size_t append_quads_count() { return append_quads_count_; } |
88 | 87 |
89 const Region& invalidation() const { return invalidation_; } | 88 const Region& invalidation() const { return invalidation_; } |
90 void set_invalidation(const Region& region) { invalidation_ = region; } | 89 void set_invalidation(const Region& region) { invalidation_ = region; } |
91 | 90 |
92 gfx::Rect visible_rect_for_tile_priority() { | 91 gfx::Rect visible_rect_for_tile_priority() { |
93 return visible_rect_for_tile_priority_; | 92 return visible_rect_for_tile_priority_; |
94 } | 93 } |
95 | 94 |
96 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } | 95 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... |
129 size_t append_quads_count_; | 128 size_t append_quads_count_; |
130 size_t did_become_active_call_count_; | 129 size_t did_become_active_call_count_; |
131 bool has_valid_tile_priorities_; | 130 bool has_valid_tile_priorities_; |
132 bool use_set_valid_tile_priorities_flag_; | 131 bool use_set_valid_tile_priorities_flag_; |
133 size_t release_resources_count_; | 132 size_t release_resources_count_; |
134 }; | 133 }; |
135 | 134 |
136 } // namespace cc | 135 } // namespace cc |
137 | 136 |
138 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 137 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |