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

Unified Diff: Source/core/compositing/DisplayListCompositingBuilder.cpp

Issue 1287093004: Slimming Paint phase 2 compositing algorithm plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address reviewer comments Created 5 years, 4 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: Source/core/compositing/DisplayListCompositingBuilder.cpp
diff --git a/Source/core/compositing/DisplayListCompositingBuilder.cpp b/Source/core/compositing/DisplayListCompositingBuilder.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..0a7e09a488d5a0a4e9098627a6b5e70502980118
--- /dev/null
+++ b/Source/core/compositing/DisplayListCompositingBuilder.cpp
@@ -0,0 +1,22 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "core/compositing/DisplayListCompositingBuilder.h"
+
+#include "platform/graphics/paint/DisplayItemTransformTreeBuilder.h"
+
+namespace blink {
+
+void DisplayListCompositingBuilder::build()
+{
+ // TODO: Properly implement simple layer compositing.
+ // See: https://docs.google.com/document/d/1qF7wpO_lhuxUO6YXKZ3CJuXi0grcb5gKZJBBgnoTd0k/view
+ DisplayItemTransformTreeBuilder transformTreeBuilder;
+ for (const auto& displayItem : m_compositedDisplayList.m_displayItemList.displayItems())
+ transformTreeBuilder.processDisplayItem(displayItem);
+ m_compositedDisplayList.m_rootGraphicsLayer.setTransformTree(transformTreeBuilder.releaseTransformTree());
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698