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 14 matching lines...) Expand all Loading... |
108 | 108 |
109 private: | 109 private: |
110 gfx::Size fixed_tile_size_; | 110 gfx::Size fixed_tile_size_; |
111 | 111 |
112 size_t append_quads_count_; | 112 size_t append_quads_count_; |
113 }; | 113 }; |
114 | 114 |
115 } // namespace cc | 115 } // namespace cc |
116 | 116 |
117 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 117 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |