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

Side by Side Diff: cc/layers/layer.h

Issue 2624323002: cc: remove virtual from Layer::SetContentsOpaque (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | 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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 const FilterOperations& filters() const { return inputs_.filters; } 153 const FilterOperations& filters() const { return inputs_.filters; }
154 154
155 // Background filters are filters applied to what is behind this layer, when 155 // Background filters are filters applied to what is behind this layer, when
156 // they are viewed through non-opaque regions in this layer. They are used 156 // they are viewed through non-opaque regions in this layer. They are used
157 // through the WebLayer interface, and are not exposed to HTML. 157 // through the WebLayer interface, and are not exposed to HTML.
158 void SetBackgroundFilters(const FilterOperations& filters); 158 void SetBackgroundFilters(const FilterOperations& filters);
159 const FilterOperations& background_filters() const { 159 const FilterOperations& background_filters() const {
160 return inputs_.background_filters; 160 return inputs_.background_filters;
161 } 161 }
162 162
163 virtual void SetContentsOpaque(bool opaque); 163 void SetContentsOpaque(bool opaque);
164 bool contents_opaque() const { return inputs_.contents_opaque; } 164 bool contents_opaque() const { return inputs_.contents_opaque; }
165 165
166 void SetPosition(const gfx::PointF& position); 166 void SetPosition(const gfx::PointF& position);
167 gfx::PointF position() const { return inputs_.position; } 167 gfx::PointF position() const { return inputs_.position; }
168 168
169 // A layer that is a container for fixed position layers cannot be both 169 // A layer that is a container for fixed position layers cannot be both
170 // scrollable and have a non-identity transform. 170 // scrollable and have a non-identity transform.
171 void SetIsContainerForFixedPositionLayers(bool container); 171 void SetIsContainerForFixedPositionLayers(bool container);
172 bool IsContainerForFixedPositionLayers() const; 172 bool IsContainerForFixedPositionLayers() const;
173 173
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 // These all act like draw properties, so don't need push properties. 691 // These all act like draw properties, so don't need push properties.
692 gfx::Rect visible_layer_rect_; 692 gfx::Rect visible_layer_rect_;
693 size_t num_unclipped_descendants_; 693 size_t num_unclipped_descendants_;
694 694
695 DISALLOW_COPY_AND_ASSIGN(Layer); 695 DISALLOW_COPY_AND_ASSIGN(Layer);
696 }; 696 };
697 697
698 } // namespace cc 698 } // namespace cc
699 699
700 #endif // CC_LAYERS_LAYER_H_ 700 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698