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

Unified Diff: cc/layers/layer_impl_test_properties.h

Issue 1924933002: cc : Stop pushing properties not used by LayerImpl to LayerImpl (4) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/layer_impl_test_properties.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl_test_properties.h
diff --git a/cc/layers/layer_impl_test_properties.h b/cc/layers/layer_impl_test_properties.h
index cc4cff41388c50b8579fe00b862468526b70f371..1bcb460e5981956059cf6e7ab9936ae7144f53f0 100644
--- a/cc/layers/layer_impl_test_properties.h
+++ b/cc/layers/layer_impl_test_properties.h
@@ -5,20 +5,33 @@
#ifndef CC_LAYERS_LAYER_IMPL_TEST_PROPERTIES_H_
#define CC_LAYERS_LAYER_IMPL_TEST_PROPERTIES_H_
+#include <set>
+
+#include "base/memory/ptr_util.h"
#include "cc/layers/layer_position_constraint.h"
#include "ui/gfx/geometry/point3_f.h"
namespace cc {
-struct LayerImplTestProperties {
- bool double_sided = true;
- bool force_render_surface = false;
- bool is_container_for_fixed_position_layers = false;
- bool should_flatten_transform = true;
- int num_descendants_that_draw_content = 0;
+class LayerImpl;
+
+struct CC_EXPORT LayerImplTestProperties {
+ LayerImplTestProperties();
+ ~LayerImplTestProperties();
+
+ bool double_sided;
+ bool force_render_surface;
+ bool is_container_for_fixed_position_layers;
+ bool should_flatten_transform;
+ int num_descendants_that_draw_content;
LayerPositionConstraint position_constraint;
gfx::Point3F transform_origin;
+ LayerImpl* scroll_parent;
+ std::unique_ptr<std::set<LayerImpl*>> scroll_children;
+ LayerImpl* clip_parent;
+ std::unique_ptr<std::set<LayerImpl*>> clip_children;
};
} // namespace cc
+
#endif // CC_LAYERS_LAYER_IMPL_TEST_PROPERTIES_H_
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/layer_impl_test_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698