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

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

Issue 2846653002: cc : Stop pushing layers from hidden subtrees at commit
Patch Set: . 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 return fallback_surface_info_; 45 return fallback_surface_info_;
46 } 46 }
47 47
48 protected: 48 protected:
49 explicit SurfaceLayer(scoped_refptr<SurfaceReferenceFactory> ref_factory); 49 explicit SurfaceLayer(scoped_refptr<SurfaceReferenceFactory> ref_factory);
50 bool HasDrawableContent() const override; 50 bool HasDrawableContent() const override;
51 51
52 private: 52 private:
53 ~SurfaceLayer() override; 53 ~SurfaceLayer() override;
54 void RemoveReference(base::Closure reference_returner); 54 void RemoveReference(base::Closure reference_returner);
55 const SurfaceId* GetSurfaceId(LayerTreeHost* new_host);
55 56
56 SurfaceInfo primary_surface_info_; 57 SurfaceInfo primary_surface_info_;
57 base::Closure primary_reference_returner_; 58 base::Closure primary_reference_returner_;
58 59
59 SurfaceInfo fallback_surface_info_; 60 SurfaceInfo fallback_surface_info_;
60 base::Closure fallback_reference_returner_; 61 base::Closure fallback_reference_returner_;
61 62
62 scoped_refptr<SurfaceReferenceFactory> ref_factory_; 63 scoped_refptr<SurfaceReferenceFactory> ref_factory_;
63 bool stretch_content_to_fill_bounds_ = false; 64 bool stretch_content_to_fill_bounds_ = false;
64 65
65 DISALLOW_COPY_AND_ASSIGN(SurfaceLayer); 66 DISALLOW_COPY_AND_ASSIGN(SurfaceLayer);
66 }; 67 };
67 68
68 } // namespace cc 69 } // namespace cc
69 70
70 #endif // CC_LAYERS_SURFACE_LAYER_H_ 71 #endif // CC_LAYERS_SURFACE_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698