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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 PictureLayerTilingSet* tilings() { return tilings_.get(); } | 108 PictureLayerTilingSet* tilings() { return tilings_.get(); } |
109 DisplayListRasterSource* raster_source() { return raster_source_.get(); } | 109 DisplayListRasterSource* raster_source() { return raster_source_.get(); } |
110 void SetRasterSourceOnPending( | 110 void SetRasterSourceOnPending( |
111 scoped_refptr<DisplayListRasterSource> raster_source, | 111 scoped_refptr<DisplayListRasterSource> raster_source, |
112 const Region& invalidation); | 112 const Region& invalidation); |
113 size_t append_quads_count() { return append_quads_count_; } | 113 size_t append_quads_count() { return append_quads_count_; } |
114 | 114 |
115 const Region& invalidation() const { return invalidation_; } | 115 const Region& invalidation() const { return invalidation_; } |
116 void set_invalidation(const Region& region) { invalidation_ = region; } | 116 void set_invalidation(const Region& region) { invalidation_ = region; } |
117 | 117 |
118 gfx::Rect visible_rect_for_tile_priority() { | |
119 return visible_rect_for_tile_priority_; | |
120 } | |
121 | |
122 gfx::Transform screen_space_transform_for_tile_priority() { | |
123 return screen_space_transform_for_tile_priority_; | |
124 } | |
125 | |
126 gfx::Rect viewport_rect_for_tile_priority_in_content_space() { | 118 gfx::Rect viewport_rect_for_tile_priority_in_content_space() { |
127 return viewport_rect_for_tile_priority_in_content_space_; | 119 return viewport_rect_for_tile_priority_in_content_space_; |
128 } | 120 } |
129 | 121 |
130 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } | 122 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } |
131 | 123 |
132 void SetIsDrawnRenderSurfaceLayerListMember(bool is); | 124 void SetIsDrawnRenderSurfaceLayerListMember(bool is); |
133 | 125 |
134 void CreateAllTiles(); | 126 void CreateAllTiles(); |
135 void SetAllTilesReady(); | 127 void SetAllTilesReady(); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 size_t append_quads_count_; | 169 size_t append_quads_count_; |
178 size_t did_become_active_call_count_; | 170 size_t did_become_active_call_count_; |
179 bool has_valid_tile_priorities_; | 171 bool has_valid_tile_priorities_; |
180 bool use_set_valid_tile_priorities_flag_; | 172 bool use_set_valid_tile_priorities_flag_; |
181 size_t release_resources_count_; | 173 size_t release_resources_count_; |
182 }; | 174 }; |
183 | 175 |
184 } // namespace cc | 176 } // namespace cc |
185 | 177 |
186 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 178 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |