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

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: Rebase from space 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..95a5baef84e315ddf1cd69c919089cd9df10f7f9
--- /dev/null
+++ b/Source/core/compositing/DisplayListCompositingBuilder.cpp
@@ -0,0 +1,23 @@
+// 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(CompositedDisplayList& compositedDisplayList)
+{
+ // TODO(pdr): Properly implement simple layer compositing here.
+ // See: https://docs.google.com/document/d/1qF7wpO_lhuxUO6YXKZ3CJuXi0grcb5gKZJBBgnoTd0k/view
+
+ DisplayItemTransformTreeBuilder transformTreeBuilder;
+ for (const auto& displayItem : m_displayItemList.displayItems())
+ transformTreeBuilder.processDisplayItem(displayItem);
+ compositedDisplayList.transformTree = transformTreeBuilder.releaseTransformTree();
+}
+
+} // namespace blink
« no previous file with comments | « Source/core/compositing/DisplayListCompositingBuilder.h ('k') | Source/core/compositing/DisplayListCompositingBuilderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698