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( |
| 101 AddTiling(ScaleTranslate2d(scale, gfx::Vector2dF()))); |
101 } | 102 } |
102 | 103 |
103 float raster_page_scale() const { return raster_page_scale_; } | 104 float raster_page_scale() const { return raster_page_scale_; } |
104 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; } | 105 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; } |
105 | 106 |
106 float ideal_contents_scale() const { return ideal_contents_scale_; } | 107 float ideal_contents_scale() const { return ideal_contents_scale_; } |
107 float raster_contents_scale() const { return raster_contents_scale_; } | 108 float raster_contents_scale() const { return raster_contents_scale_; } |
108 | 109 |
109 PictureLayerTiling* HighResTiling() const; | 110 PictureLayerTiling* HighResTiling() const; |
110 PictureLayerTiling* LowResTiling() const; | 111 PictureLayerTiling* LowResTiling() const; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 size_t append_quads_count_; | 167 size_t append_quads_count_; |
167 size_t did_become_active_call_count_; | 168 size_t did_become_active_call_count_; |
168 bool has_valid_tile_priorities_; | 169 bool has_valid_tile_priorities_; |
169 bool use_set_valid_tile_priorities_flag_; | 170 bool use_set_valid_tile_priorities_flag_; |
170 size_t release_resources_count_; | 171 size_t release_resources_count_; |
171 }; | 172 }; |
172 | 173 |
173 } // namespace cc | 174 } // namespace cc |
174 | 175 |
175 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 176 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |