| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 using PictureLayerImpl::SanityCheckTilingState; | 49 using PictureLayerImpl::SanityCheckTilingState; |
| 50 | 50 |
| 51 void SetNeedsPostCommitInitialization() { | 51 void SetNeedsPostCommitInitialization() { |
| 52 needs_post_commit_initialization_ = true; | 52 needs_post_commit_initialization_ = true; |
| 53 } | 53 } |
| 54 | 54 |
| 55 bool needs_post_commit_initialization() const { | 55 bool needs_post_commit_initialization() const { |
| 56 return needs_post_commit_initialization_; | 56 return needs_post_commit_initialization_; |
| 57 } | 57 } |
| 58 | 58 |
| 59 bool is_using_lcd_text() const { return is_using_lcd_text_; } | |
| 60 void force_set_lcd_text(bool enabled) { is_using_lcd_text_ = enabled; } | |
| 61 | |
| 62 PictureLayerTiling* HighResTiling() const; | 59 PictureLayerTiling* HighResTiling() const; |
| 63 PictureLayerTiling* LowResTiling() const; | 60 PictureLayerTiling* LowResTiling() const; |
| 64 size_t num_tilings() const { return tilings_->num_tilings(); } | 61 size_t num_tilings() const { return tilings_->num_tilings(); } |
| 65 | 62 |
| 66 PictureLayerImpl* twin_layer() { return twin_layer_; } | 63 PictureLayerImpl* twin_layer() { return twin_layer_; } |
| 67 void set_twin_layer(PictureLayerImpl* twin) { twin_layer_ = twin; } | 64 void set_twin_layer(PictureLayerImpl* twin) { twin_layer_ = twin; } |
| 68 PictureLayerTilingSet* tilings() { return tilings_.get(); } | 65 PictureLayerTilingSet* tilings() { return tilings_.get(); } |
| 69 PicturePileImpl* pile() { return pile_.get(); } | 66 PicturePileImpl* pile() { return pile_.get(); } |
| 70 size_t append_quads_count() { return append_quads_count_; } | 67 size_t append_quads_count() { return append_quads_count_; } |
| 71 | 68 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 100 |
| 104 private: | 101 private: |
| 105 gfx::Size fixed_tile_size_; | 102 gfx::Size fixed_tile_size_; |
| 106 | 103 |
| 107 size_t append_quads_count_; | 104 size_t append_quads_count_; |
| 108 }; | 105 }; |
| 109 | 106 |
| 110 } // namespace cc | 107 } // namespace cc |
| 111 | 108 |
| 112 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 109 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |