| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 PictureLayerTilingSet* tilings() { return tilings_.get(); } | 72 PictureLayerTilingSet* tilings() { return tilings_.get(); } |
| 73 PicturePileImpl* pile() { return pile_.get(); } | 73 PicturePileImpl* pile() { return pile_.get(); } |
| 74 size_t append_quads_count() { return append_quads_count_; } | 74 size_t append_quads_count() { return append_quads_count_; } |
| 75 | 75 |
| 76 const Region& invalidation() const { return invalidation_; } | 76 const Region& invalidation() const { return invalidation_; } |
| 77 void set_invalidation(const Region& region) { invalidation_ = region; } | 77 void set_invalidation(const Region& region) { invalidation_ = region; } |
| 78 | 78 |
| 79 gfx::Rect visible_rect_for_tile_priority() { | 79 gfx::Rect visible_rect_for_tile_priority() { |
| 80 return visible_rect_for_tile_priority_; | 80 return visible_rect_for_tile_priority_; |
| 81 } | 81 } |
| 82 gfx::Size viewport_size_for_tile_priority() { | 82 gfx::Rect viewport_rect_for_tile_priority() { |
| 83 return viewport_size_for_tile_priority_; | 83 return viewport_rect_for_tile_priority_; |
| 84 } | 84 } |
| 85 gfx::Transform screen_space_transform_for_tile_priority() { | 85 gfx::Transform screen_space_transform_for_tile_priority() { |
| 86 return screen_space_transform_for_tile_priority_; | 86 return screen_space_transform_for_tile_priority_; |
| 87 } | 87 } |
| 88 | 88 |
| 89 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } | 89 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } |
| 90 | 90 |
| 91 void CreateDefaultTilingsAndTiles(); | 91 void CreateDefaultTilingsAndTiles(); |
| 92 void SetAllTilesVisible(); | 92 void SetAllTilesVisible(); |
| 93 void SetAllTilesReady(); | 93 void SetAllTilesReady(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 107 | 107 |
| 108 private: | 108 private: |
| 109 gfx::Size fixed_tile_size_; | 109 gfx::Size fixed_tile_size_; |
| 110 | 110 |
| 111 size_t append_quads_count_; | 111 size_t append_quads_count_; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace cc | 114 } // namespace cc |
| 115 | 115 |
| 116 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 116 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |