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

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

Issue 2857343002: Delete LayerImpl::GetRenderSurface. (Closed)
Patch Set: none Created 3 years, 7 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 | « cc/layers/effect_tree_layer_list_iterator_unittest.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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 void SetShouldCheckBackfaceVisibility(bool should_check_backface_visibility) { 209 void SetShouldCheckBackfaceVisibility(bool should_check_backface_visibility) {
210 should_check_backface_visibility_ = should_check_backface_visibility; 210 should_check_backface_visibility_ = should_check_backface_visibility;
211 } 211 }
212 bool should_check_backface_visibility() const { 212 bool should_check_backface_visibility() const {
213 return should_check_backface_visibility_; 213 return should_check_backface_visibility_;
214 } 214 }
215 215
216 bool ShowDebugBorders(DebugBorderType type) const; 216 bool ShowDebugBorders(DebugBorderType type) const;
217 217
218 // TODO(http://crbug.com/557160): Currently SPv2 creates dummy layers for the
219 // sole purpose of representing a render surface. Once that dependency is
220 // removed, also remove dummy layers from PaintArtifactCompositor.
221 RenderSurfaceImpl* GetRenderSurface() const;
222
223 // The render surface which this layer draws into. This can be either owned by 218 // The render surface which this layer draws into. This can be either owned by
224 // the same layer or an ancestor of this layer. 219 // the same layer or an ancestor of this layer.
225 RenderSurfaceImpl* render_target(); 220 RenderSurfaceImpl* render_target();
226 const RenderSurfaceImpl* render_target() const; 221 const RenderSurfaceImpl* render_target() const;
227 222
228 DrawProperties& draw_properties() { return draw_properties_; } 223 DrawProperties& draw_properties() { return draw_properties_; }
229 const DrawProperties& draw_properties() const { return draw_properties_; } 224 const DrawProperties& draw_properties() const { return draw_properties_; }
230 225
231 gfx::Transform DrawTransform() const; 226 gfx::Transform DrawTransform() const;
232 gfx::Transform ScreenSpaceTransform() const; 227 gfx::Transform ScreenSpaceTransform() const;
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 bool needs_show_scrollbars_ : 1; 557 bool needs_show_scrollbars_ : 1;
563 558
564 bool raster_even_if_not_in_rsll_ : 1; 559 bool raster_even_if_not_in_rsll_ : 1;
565 560
566 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 561 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
567 }; 562 };
568 563
569 } // namespace cc 564 } // namespace cc
570 565
571 #endif // CC_LAYERS_LAYER_IMPL_H_ 566 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/effect_tree_layer_list_iterator_unittest.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698