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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 using PictureLayerImpl::CleanUpTilingsOnActiveLayer; | 90 using PictureLayerImpl::CleanUpTilingsOnActiveLayer; |
91 using PictureLayerImpl::CanHaveTilings; | 91 using PictureLayerImpl::CanHaveTilings; |
92 using PictureLayerImpl::MinimumContentsScale; | 92 using PictureLayerImpl::MinimumContentsScale; |
93 using PictureLayerImpl::SanityCheckTilingState; | 93 using PictureLayerImpl::SanityCheckTilingState; |
94 using PictureLayerImpl::UpdateRasterSource; | 94 using PictureLayerImpl::UpdateRasterSource; |
95 | 95 |
96 using PictureLayerImpl::UpdateIdealScales; | 96 using PictureLayerImpl::UpdateIdealScales; |
97 using PictureLayerImpl::MaximumTilingContentsScale; | 97 using PictureLayerImpl::MaximumTilingContentsScale; |
98 | 98 |
99 void AddTilingUntilNextDraw(float scale) { | 99 void AddTilingUntilNextDraw(float scale) { |
100 last_append_quads_tilings_.push_back(AddTiling(scale)); | 100 last_append_quads_tilings_.push_back(AddTiling(scale, gfx::Vector2dF())); |
101 } | 101 } |
102 | 102 |
103 float raster_page_scale() const { return raster_page_scale_; } | 103 float raster_page_scale() const { return raster_page_scale_; } |
104 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; } | 104 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; } |
105 | 105 |
106 float ideal_contents_scale() const { return ideal_contents_scale_; } | 106 float ideal_contents_scale() const { return ideal_contents_scale_; } |
107 float raster_contents_scale() const { return raster_contents_scale_; } | 107 float raster_contents_scale() const { return raster_contents_scale_; } |
108 | 108 |
109 PictureLayerTiling* HighResTiling() const; | 109 PictureLayerTiling* HighResTiling() const; |
110 PictureLayerTiling* LowResTiling() const; | 110 PictureLayerTiling* LowResTiling() const; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 size_t append_quads_count_; | 166 size_t append_quads_count_; |
167 size_t did_become_active_call_count_; | 167 size_t did_become_active_call_count_; |
168 bool has_valid_tile_priorities_; | 168 bool has_valid_tile_priorities_; |
169 bool use_set_valid_tile_priorities_flag_; | 169 bool use_set_valid_tile_priorities_flag_; |
170 size_t release_resources_count_; | 170 size_t release_resources_count_; |
171 }; | 171 }; |
172 | 172 |
173 } // namespace cc | 173 } // namespace cc |
174 | 174 |
175 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 175 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |