Chromium Code Reviews| 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()) { |