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

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

Issue 2846653002: cc : Stop pushing layers from hidden subtrees at commit
Patch Set: hide mask layer also 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SURFACE_LAYER_H_ 5 #ifndef CC_LAYERS_SURFACE_LAYER_H_
6 #define CC_LAYERS_SURFACE_LAYER_H_ 6 #define CC_LAYERS_SURFACE_LAYER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/cc_export.h" 9 #include "cc/cc_export.h"
10 #include "cc/layers/layer.h" 10 #include "cc/layers/layer.h"
(...skipping 13 matching lines...) Expand all
24 void SetPrimarySurfaceInfo(const SurfaceInfo& surface_info); 24 void SetPrimarySurfaceInfo(const SurfaceInfo& surface_info);
25 void SetFallbackSurfaceInfo(const SurfaceInfo& surface_info); 25 void SetFallbackSurfaceInfo(const SurfaceInfo& surface_info);
26 26
27 // When stretch_content_to_fill_bounds is true, the scale of the embedded 27 // When stretch_content_to_fill_bounds is true, the scale of the embedded
28 // surface is ignored and the content will be stretched to fill the bounds. 28 // surface is ignored and the content will be stretched to fill the bounds.
29 void SetStretchContentToFillBounds(bool stretch_content_to_fill_bounds); 29 void SetStretchContentToFillBounds(bool stretch_content_to_fill_bounds);
30 30
31 // Layer overrides. 31 // Layer overrides.
32 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; 32 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
33 void SetLayerTreeHost(LayerTreeHost* host) override; 33 void SetLayerTreeHost(LayerTreeHost* host) override;
34 bool IsSurfaceLayer() const override;
35 const SurfaceId* GetSurfaceId() const override;
34 void PushPropertiesTo(LayerImpl* layer) override; 36 void PushPropertiesTo(LayerImpl* layer) override;
35 37
36 scoped_refptr<SurfaceReferenceFactory> surface_reference_factory() const { 38 scoped_refptr<SurfaceReferenceFactory> surface_reference_factory() const {
37 return ref_factory_; 39 return ref_factory_;
38 } 40 }
39 41
40 const SurfaceInfo& primary_surface_info() const { 42 const SurfaceInfo& primary_surface_info() const {
41 return primary_surface_info_; 43 return primary_surface_info_;
42 } 44 }
43 45
(...skipping 17 matching lines...) Expand all
61 63
62 scoped_refptr<SurfaceReferenceFactory> ref_factory_; 64 scoped_refptr<SurfaceReferenceFactory> ref_factory_;
63 bool stretch_content_to_fill_bounds_ = false; 65 bool stretch_content_to_fill_bounds_ = false;
64 66
65 DISALLOW_COPY_AND_ASSIGN(SurfaceLayer); 67 DISALLOW_COPY_AND_ASSIGN(SurfaceLayer);
66 }; 68 };
67 69
68 } // namespace cc 70 } // namespace cc
69 71
70 #endif // CC_LAYERS_SURFACE_LAYER_H_ 72 #endif // CC_LAYERS_SURFACE_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698