| 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(ScaleTranslate2d(scale, gfx::
Vector2dF()))); | 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 size_t did_become_active_call_count_ = 0; | 171 size_t did_become_active_call_count_ = 0; |
| 171 bool has_valid_tile_priorities_ = false; | 172 bool has_valid_tile_priorities_ = false; |
| 172 bool use_set_valid_tile_priorities_flag_ = false; | 173 bool use_set_valid_tile_priorities_flag_ = false; |
| 173 size_t release_resources_count_ = 0; | 174 size_t release_resources_count_ = 0; |
| 174 size_t release_tile_resources_count_ = 0; | 175 size_t release_tile_resources_count_ = 0; |
| 175 }; | 176 }; |
| 176 | 177 |
| 177 } // namespace cc | 178 } // namespace cc |
| 178 | 179 |
| 179 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 180 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |