| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 needs_post_commit_initialization_ = true; | 68 needs_post_commit_initialization_ = true; |
| 69 } | 69 } |
| 70 | 70 |
| 71 bool needs_post_commit_initialization() const { | 71 bool needs_post_commit_initialization() const { |
| 72 return needs_post_commit_initialization_; | 72 return needs_post_commit_initialization_; |
| 73 } | 73 } |
| 74 | 74 |
| 75 float raster_page_scale() const { return raster_page_scale_; } | 75 float raster_page_scale() const { return raster_page_scale_; } |
| 76 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; } | 76 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; } |
| 77 | 77 |
| 78 float ideal_contents_scale() const { return ideal_contents_scale_; } |
| 79 float raster_contents_scale() const { return raster_contents_scale_; } |
| 80 |
| 78 PictureLayerTiling* HighResTiling() const; | 81 PictureLayerTiling* HighResTiling() const; |
| 79 PictureLayerTiling* LowResTiling() const; | 82 PictureLayerTiling* LowResTiling() const; |
| 80 size_t num_tilings() const { return tilings_->num_tilings(); } | 83 size_t num_tilings() const { return tilings_->num_tilings(); } |
| 81 | 84 |
| 82 PictureLayerImpl* twin_layer() { return twin_layer_; } | 85 PictureLayerImpl* twin_layer() { return twin_layer_; } |
| 83 void set_twin_layer(PictureLayerImpl* twin) { twin_layer_ = twin; } | 86 void set_twin_layer(PictureLayerImpl* twin) { twin_layer_ = twin; } |
| 84 PictureLayerTilingSet* tilings() { return tilings_.get(); } | 87 PictureLayerTilingSet* tilings() { return tilings_.get(); } |
| 85 PicturePileImpl* pile() { return pile_.get(); } | 88 PicturePileImpl* pile() { return pile_.get(); } |
| 86 size_t append_quads_count() { return append_quads_count_; } | 89 size_t append_quads_count() { return append_quads_count_; } |
| 87 | 90 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 126 |
| 124 size_t append_quads_count_; | 127 size_t append_quads_count_; |
| 125 size_t did_become_active_call_count_; | 128 size_t did_become_active_call_count_; |
| 126 bool has_valid_tile_priorities_; | 129 bool has_valid_tile_priorities_; |
| 127 bool use_set_valid_tile_priorities_flag_; | 130 bool use_set_valid_tile_priorities_flag_; |
| 128 }; | 131 }; |
| 129 | 132 |
| 130 } // namespace cc | 133 } // namespace cc |
| 131 | 134 |
| 132 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 135 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |