| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 has_valid_tile_priorities_ = has_valid_priorities; | 51 has_valid_tile_priorities_ = has_valid_priorities; |
| 52 use_set_valid_tile_priorities_flag_ = true; | 52 use_set_valid_tile_priorities_flag_ = true; |
| 53 } | 53 } |
| 54 | 54 |
| 55 using PictureLayerImpl::AddTiling; | 55 using PictureLayerImpl::AddTiling; |
| 56 using PictureLayerImpl::CleanUpTilingsOnActiveLayer; | 56 using PictureLayerImpl::CleanUpTilingsOnActiveLayer; |
| 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::SanityCheckTilingState; | 62 using PictureLayerImpl::SanityCheckTilingState; |
| 62 | 63 |
| 63 using PictureLayerImpl::UpdateIdealScales; | 64 using PictureLayerImpl::UpdateIdealScales; |
| 64 using PictureLayerImpl::MaximumTilingContentsScale; | 65 using PictureLayerImpl::MaximumTilingContentsScale; |
| 65 | 66 |
| 66 void SetNeedsPostCommitInitialization() { | 67 void SetNeedsPostCommitInitialization() { |
| 67 needs_post_commit_initialization_ = true; | 68 needs_post_commit_initialization_ = true; |
| 68 } | 69 } |
| 69 | 70 |
| 70 bool needs_post_commit_initialization() const { | 71 bool needs_post_commit_initialization() const { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 123 |
| 123 size_t append_quads_count_; | 124 size_t append_quads_count_; |
| 124 size_t did_become_active_call_count_; | 125 size_t did_become_active_call_count_; |
| 125 bool has_valid_tile_priorities_; | 126 bool has_valid_tile_priorities_; |
| 126 bool use_set_valid_tile_priorities_flag_; | 127 bool use_set_valid_tile_priorities_flag_; |
| 127 }; | 128 }; |
| 128 | 129 |
| 129 } // namespace cc | 130 } // namespace cc |
| 130 | 131 |
| 131 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 132 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |