| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 using PictureLayerImpl::CleanUpTilingsOnActiveLayer; | 76 using PictureLayerImpl::CleanUpTilingsOnActiveLayer; |
| 77 using PictureLayerImpl::CanHaveTilings; | 77 using PictureLayerImpl::CanHaveTilings; |
| 78 using PictureLayerImpl::MinimumContentsScale; | 78 using PictureLayerImpl::MinimumContentsScale; |
| 79 using PictureLayerImpl::SanityCheckTilingState; | 79 using PictureLayerImpl::SanityCheckTilingState; |
| 80 using PictureLayerImpl::GetRecycledTwinLayer; | 80 using PictureLayerImpl::GetRecycledTwinLayer; |
| 81 using PictureLayerImpl::UpdateRasterSource; | 81 using PictureLayerImpl::UpdateRasterSource; |
| 82 | 82 |
| 83 using PictureLayerImpl::UpdateIdealScales; | 83 using PictureLayerImpl::UpdateIdealScales; |
| 84 using PictureLayerImpl::MaximumTilingContentsScale; | 84 using PictureLayerImpl::MaximumTilingContentsScale; |
| 85 | 85 |
| 86 void AddTilingUntilNextDraw(float scale) { |
| 87 last_append_quads_tilings_.push_back(AddTiling(scale)); |
| 88 } |
| 89 |
| 86 float raster_page_scale() const { return raster_page_scale_; } | 90 float raster_page_scale() const { return raster_page_scale_; } |
| 87 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; } | 91 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; } |
| 88 | 92 |
| 89 float ideal_contents_scale() const { return ideal_contents_scale_; } | 93 float ideal_contents_scale() const { return ideal_contents_scale_; } |
| 90 float raster_contents_scale() const { return raster_contents_scale_; } | 94 float raster_contents_scale() const { return raster_contents_scale_; } |
| 91 | 95 |
| 92 PictureLayerTiling* HighResTiling() const; | 96 PictureLayerTiling* HighResTiling() const; |
| 93 PictureLayerTiling* LowResTiling() const; | 97 PictureLayerTiling* LowResTiling() const; |
| 94 size_t num_tilings() const { return tilings_->num_tilings(); } | 98 size_t num_tilings() const { return tilings_->num_tilings(); } |
| 95 | 99 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 size_t append_quads_count_; | 166 size_t append_quads_count_; |
| 163 size_t did_become_active_call_count_; | 167 size_t did_become_active_call_count_; |
| 164 bool has_valid_tile_priorities_; | 168 bool has_valid_tile_priorities_; |
| 165 bool use_set_valid_tile_priorities_flag_; | 169 bool use_set_valid_tile_priorities_flag_; |
| 166 size_t release_resources_count_; | 170 size_t release_resources_count_; |
| 167 }; | 171 }; |
| 168 | 172 |
| 169 } // namespace cc | 173 } // namespace cc |
| 170 | 174 |
| 171 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 175 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |