| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 PictureLayerImpl* twin_layer() { return twin_layer_; } | 48 PictureLayerImpl* twin_layer() { return twin_layer_; } |
| 49 PictureLayerTilingSet* tilings() { return tilings_.get(); } | 49 PictureLayerTilingSet* tilings() { return tilings_.get(); } |
| 50 PicturePileImpl* pile() { return pile_.get(); } | 50 PicturePileImpl* pile() { return pile_.get(); } |
| 51 size_t append_quads_count() { return append_quads_count_; } | 51 size_t append_quads_count() { return append_quads_count_; } |
| 52 | 52 |
| 53 const Region& invalidation() const { return invalidation_; } | 53 const Region& invalidation() const { return invalidation_; } |
| 54 void set_invalidation(const Region& region) { invalidation_ = region; } | 54 void set_invalidation(const Region& region) { invalidation_ = region; } |
| 55 | 55 |
| 56 void set_fixed_tile_size(gfx::Size size) { fixed_tile_size_ = size; } | 56 void set_fixed_tile_size(gfx::Size size) { fixed_tile_size_ = size; } |
| 57 | 57 |
| 58 void CreateDefaultTilingsAndTiles(WhichTree tree); | 58 void CreateDefaultTilingsAndTiles(); |
| 59 void SetAllTilesVisible(); | 59 void SetAllTilesVisible(); |
| 60 void SetAllTilesReady(); | 60 void SetAllTilesReady(); |
| 61 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling); | 61 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling); |
| 62 | 62 |
| 63 protected: | 63 protected: |
| 64 FakePictureLayerImpl( | 64 FakePictureLayerImpl( |
| 65 LayerTreeImpl* tree_impl, | 65 LayerTreeImpl* tree_impl, |
| 66 int id, | 66 int id, |
| 67 scoped_refptr<PicturePileImpl> pile); | 67 scoped_refptr<PicturePileImpl> pile); |
| 68 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id); | 68 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id); |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 gfx::Size fixed_tile_size_; | 71 gfx::Size fixed_tile_size_; |
| 72 | 72 |
| 73 size_t append_quads_count_; | 73 size_t append_quads_count_; |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace cc | 76 } // namespace cc |
| 77 | 77 |
| 78 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 78 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |