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

Unified Diff: Source/platform/graphics/paint/DisplayItemTransformTreeBuilder.cpp

Issue 1238123004: Slimming Paint phase 2 compositing algorithm plumbing & skeleton display list API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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/platform/graphics/paint/DisplayItemTransformTreeBuilder.cpp
diff --git a/Source/platform/graphics/paint/DisplayItemTransformTreeBuilder.cpp b/Source/platform/graphics/paint/DisplayItemTransformTreeBuilder.cpp
index f23c5182a0dfe7fbd6eba2d20b2bf819f4c7fd43..f2d70126b8c40a93303235d0eec52d0eac7443d4 100644
--- a/Source/platform/graphics/paint/DisplayItemTransformTreeBuilder.cpp
+++ b/Source/platform/graphics/paint/DisplayItemTransformTreeBuilder.cpp
@@ -6,8 +6,10 @@
#include "platform/graphics/paint/DisplayItemTransformTreeBuilder.h"
#include "platform/graphics/paint/DisplayItem.h"
+#include "platform/graphics/paint/DisplayItemList.h"
#include "platform/graphics/paint/DisplayItemTransformTree.h"
#include "platform/graphics/paint/Transform3DDisplayItem.h"
+#include "public/platform/WebDisplayList.h"
namespace blink {
@@ -56,6 +58,14 @@ static BeginDisplayItemClassification classifyBeginItem(const DisplayItem& begin
} // namespace
+void DisplayItemTransformTreeBuilder::build(const DisplayItemList& displayList, const DisplayListDiff& displayListDiff)
+{
+ // TODO(chrishtr): use |displayListDiff| to optimize.
pdr. 2015/07/24 05:37:51 Can you expand a little about how the diff would h
chrishtr 2015/07/24 14:53:45 Transform-related display items might occur in the
+ for (const auto& displayItem : displayList.displayItems()) {
+ processDisplayItem(*displayItem);
+ }
+}
+
void DisplayItemTransformTreeBuilder::processDisplayItem(const DisplayItem& displayItem)
{
if (displayItem.isBegin()) {

Powered by Google App Engine
This is Rietveld 408576698