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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 void SetViewportSize(gfx::Size device_viewport_size); | 188 void SetViewportSize(gfx::Size device_viewport_size); |
189 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 189 void SetOverdrawBottomHeight(float overdraw_bottom_height); |
190 | 190 |
191 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 191 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
192 float overdraw_bottom_height() const { return overdraw_bottom_height_; } | 192 float overdraw_bottom_height() const { return overdraw_bottom_height_; } |
193 | 193 |
194 void SetPageScaleFactorAndLimits(float page_scale_factor, | 194 void SetPageScaleFactorAndLimits(float page_scale_factor, |
195 float min_page_scale_factor, | 195 float min_page_scale_factor, |
196 float max_page_scale_factor); | 196 float max_page_scale_factor); |
197 | 197 |
| 198 SkColor background_color() const { return background_color_; } |
198 void set_background_color(SkColor color) { background_color_ = color; } | 199 void set_background_color(SkColor color) { background_color_ = color; } |
199 | 200 |
200 void set_has_transparent_background(bool transparent) { | 201 void set_has_transparent_background(bool transparent) { |
201 has_transparent_background_ = transparent; | 202 has_transparent_background_ = transparent; |
202 } | 203 } |
203 | 204 |
204 PrioritizedResourceManager* contents_texture_manager() const { | 205 PrioritizedResourceManager* contents_texture_manager() const { |
205 return contents_texture_manager_.get(); | 206 return contents_texture_manager_.get(); |
206 } | 207 } |
207 | 208 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 int64 total_num_cc_layers_will_use_lcd_text; | 364 int64 total_num_cc_layers_will_use_lcd_text; |
364 }; | 365 }; |
365 LCDTextMetrics lcd_text_metrics_; | 366 LCDTextMetrics lcd_text_metrics_; |
366 | 367 |
367 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 368 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
368 }; | 369 }; |
369 | 370 |
370 } // namespace cc | 371 } // namespace cc |
371 | 372 |
372 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 373 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |