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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.cpp

Issue 2751433002: [SPv2] Flatten property trees in PaintRecordBuilder into a single display list. (Closed)
Patch Set: none Created 3 years, 9 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
Index: third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.cpp b/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.cpp
index cac9fe0686b8d2af4c8d2cf1011104841b4fa044..784fc2d415a43a823cbf635bc79144ec2e6c9e72 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.cpp
@@ -8,6 +8,15 @@
namespace blink {
+const PropertyTreeState& PropertyTreeState::root() {
+ DEFINE_STATIC_LOCAL(
+ std::unique_ptr<PropertyTreeState>, root,
+ (WTF::wrapUnique(new PropertyTreeState(
+ TransformPaintPropertyNode::root(), ClipPaintPropertyNode::root(),
+ EffectPaintPropertyNode::root()))));
+ return *root;
+}
+
bool PropertyTreeState::hasDirectCompositingReasons() const {
switch (innermostNode()) {
case Transform:

Powered by Google App Engine
This is Rietveld 408576698