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

Side by Side Diff: cc/layers/layer_impl.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/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | 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_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 void SetForceRenderSurface(bool force) { force_render_surface_ = force; } 137 void SetForceRenderSurface(bool force) { force_render_surface_ = force; }
138 138
139 void SetAnchorPoint(gfx::PointF anchor_point); 139 void SetAnchorPoint(gfx::PointF anchor_point);
140 gfx::PointF anchor_point() const { return anchor_point_; } 140 gfx::PointF anchor_point() const { return anchor_point_; }
141 141
142 void SetAnchorPointZ(float anchor_point_z); 142 void SetAnchorPointZ(float anchor_point_z);
143 float anchor_point_z() const { return anchor_point_z_; } 143 float anchor_point_z() const { return anchor_point_z_; }
144 144
145 void SetBackgroundColor(SkColor background_color); 145 void SetBackgroundColor(SkColor background_color);
146 SkColor background_color() const { return background_color_; } 146 SkColor background_color() const { return background_color_; }
147 // If contents_opaque(), return an opaque color else return a
148 // non-opaque color. Tries to return background_color(), if possible.
149 SkColor SafeOpaqueBackgroundColor() const;
147 150
148 void SetFilters(const WebKit::WebFilterOperations& filters); 151 void SetFilters(const WebKit::WebFilterOperations& filters);
149 const WebKit::WebFilterOperations& filters() const { return filters_; } 152 const WebKit::WebFilterOperations& filters() const { return filters_; }
150 153
151 void SetBackgroundFilters(const WebKit::WebFilterOperations& filters); 154 void SetBackgroundFilters(const WebKit::WebFilterOperations& filters);
152 const WebKit::WebFilterOperations& background_filters() const { 155 const WebKit::WebFilterOperations& background_filters() const {
153 return background_filters_; 156 return background_filters_;
154 } 157 }
155 158
156 void SetFilter(const skia::RefPtr<SkImageFilter>& filter); 159 void SetFilter(const skia::RefPtr<SkImageFilter>& filter);
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 // Group of properties that need to be computed based on the layer tree 568 // Group of properties that need to be computed based on the layer tree
566 // hierarchy before layers can be drawn. 569 // hierarchy before layers can be drawn.
567 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; 570 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_;
568 571
569 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 572 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
570 }; 573 };
571 574
572 } // namespace cc 575 } // namespace cc
573 576
574 #endif // CC_LAYERS_LAYER_IMPL_H_ 577 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698