OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_TREES_LAYER_TREE_HOST_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 void CollectRenderingStats(RenderingStats* stats) const; | 159 void CollectRenderingStats(RenderingStats* stats) const; |
160 | 160 |
161 RenderingStatsInstrumentation* rendering_stats_instrumentation() const { | 161 RenderingStatsInstrumentation* rendering_stats_instrumentation() const { |
162 return rendering_stats_instrumentation_.get(); | 162 return rendering_stats_instrumentation_.get(); |
163 } | 163 } |
164 | 164 |
165 const RendererCapabilities& GetRendererCapabilities() const; | 165 const RendererCapabilities& GetRendererCapabilities() const; |
166 | 166 |
167 void SetNeedsAnimate(); | 167 void SetNeedsAnimate(); |
| 168 virtual void SetNeedsUpdateLayers(); |
168 virtual void SetNeedsCommit(); | 169 virtual void SetNeedsCommit(); |
169 virtual void SetNeedsFullTreeSync(); | 170 virtual void SetNeedsFullTreeSync(); |
170 void SetNeedsRedraw(); | 171 void SetNeedsRedraw(); |
171 void SetNeedsRedrawRect(gfx::Rect damage_rect); | 172 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
172 bool CommitRequested() const; | 173 bool CommitRequested() const; |
173 | 174 |
174 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, | 175 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, |
175 base::Time wall_clock_time); | 176 base::Time wall_clock_time); |
176 | 177 |
177 void SetRootLayer(scoped_refptr<Layer> root_layer); | 178 void SetRootLayer(scoped_refptr<Layer> root_layer); |
178 Layer* root_layer() { return root_layer_.get(); } | 179 Layer* root_layer() { return root_layer_.get(); } |
179 const Layer* root_layer() const { return root_layer_.get(); } | 180 const Layer* root_layer() const { return root_layer_.get(); } |
180 | 181 |
181 const LayerTreeSettings& settings() const { return settings_; } | 182 const LayerTreeSettings& settings() const { return settings_; } |
182 | 183 |
183 void SetDebugState(const LayerTreeDebugState& debug_state); | 184 void SetDebugState(const LayerTreeDebugState& debug_state); |
184 const LayerTreeDebugState& debug_state() const { return debug_state_; } | 185 const LayerTreeDebugState& debug_state() const { return debug_state_; } |
185 | 186 |
186 void SetViewportSize(gfx::Size device_viewport_size); | 187 void SetViewportSize(gfx::Size device_viewport_size); |
187 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 188 void SetOverdrawBottomHeight(float overdraw_bottom_height); |
188 | 189 |
189 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 190 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
190 float overdraw_bottom_height() const { return overdraw_bottom_height_; } | 191 float overdraw_bottom_height() const { return overdraw_bottom_height_; } |
191 | 192 |
| 193 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); |
192 void SetPageScaleFactorAndLimits(float page_scale_factor, | 194 void SetPageScaleFactorAndLimits(float page_scale_factor, |
193 float min_page_scale_factor, | 195 float min_page_scale_factor, |
194 float max_page_scale_factor); | 196 float max_page_scale_factor); |
195 float page_scale_factor() const { return page_scale_factor_; } | 197 float page_scale_factor() const { return page_scale_factor_; } |
196 | 198 |
197 SkColor background_color() const { return background_color_; } | 199 SkColor background_color() const { return background_color_; } |
198 void set_background_color(SkColor color) { background_color_ = color; } | 200 void set_background_color(SkColor color) { background_color_ = color; } |
199 | 201 |
200 void set_has_transparent_background(bool transparent) { | 202 void set_has_transparent_background(bool transparent) { |
201 has_transparent_background_ = transparent; | 203 has_transparent_background_ = transparent; |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 }; | 371 }; |
370 LCDTextMetrics lcd_text_metrics_; | 372 LCDTextMetrics lcd_text_metrics_; |
371 int tree_id_; | 373 int tree_id_; |
372 | 374 |
373 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 375 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
374 }; | 376 }; |
375 | 377 |
376 } // namespace cc | 378 } // namespace cc |
377 | 379 |
378 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 380 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |