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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 using PictureLayerImpl::CanHaveTilings; | 57 using PictureLayerImpl::CanHaveTilings; |
58 using PictureLayerImpl::MarkVisibleResourcesAsRequired; | 58 using PictureLayerImpl::MarkVisibleResourcesAsRequired; |
59 using PictureLayerImpl::DoPostCommitInitializationIfNeeded; | 59 using PictureLayerImpl::DoPostCommitInitializationIfNeeded; |
60 using PictureLayerImpl::MinimumContentsScale; | 60 using PictureLayerImpl::MinimumContentsScale; |
61 using PictureLayerImpl::GetViewportForTilePriorityInContentSpace; | 61 using PictureLayerImpl::GetViewportForTilePriorityInContentSpace; |
62 using PictureLayerImpl::SanityCheckTilingState; | 62 using PictureLayerImpl::SanityCheckTilingState; |
63 | 63 |
64 using PictureLayerImpl::UpdateIdealScales; | 64 using PictureLayerImpl::UpdateIdealScales; |
65 using PictureLayerImpl::MaximumTilingContentsScale; | 65 using PictureLayerImpl::MaximumTilingContentsScale; |
66 | 66 |
| 67 PictureLayerImpl* GetRecycledTwinLayer() { return recycled_twin_layer_; } |
| 68 |
67 void SetNeedsPostCommitInitialization() { | 69 void SetNeedsPostCommitInitialization() { |
68 needs_post_commit_initialization_ = true; | 70 needs_post_commit_initialization_ = true; |
69 } | 71 } |
70 | 72 |
71 bool needs_post_commit_initialization() const { | 73 bool needs_post_commit_initialization() const { |
72 return needs_post_commit_initialization_; | 74 return needs_post_commit_initialization_; |
73 } | 75 } |
74 | 76 |
75 float raster_page_scale() const { return raster_page_scale_; } | 77 float raster_page_scale() const { return raster_page_scale_; } |
76 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; } | 78 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; } |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 125 |
124 size_t append_quads_count_; | 126 size_t append_quads_count_; |
125 size_t did_become_active_call_count_; | 127 size_t did_become_active_call_count_; |
126 bool has_valid_tile_priorities_; | 128 bool has_valid_tile_priorities_; |
127 bool use_set_valid_tile_priorities_flag_; | 129 bool use_set_valid_tile_priorities_flag_; |
128 }; | 130 }; |
129 | 131 |
130 } // namespace cc | 132 } // namespace cc |
131 | 133 |
132 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 134 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |