Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Side by Side Diff: cc/trees/layer_tree_host.h

Issue 15995031: cc: Don't clear transparent piles to an opaque color (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698