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

Unified Diff: third_party/WebKit/Source/core/paint/SVGFilterPainter.cpp

Issue 1401363003: Rename DisplayItemList to PaintController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/core/paint/SVGFilterPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/SVGFilterPainter.cpp b/third_party/WebKit/Source/core/paint/SVGFilterPainter.cpp
index 80164db17e0788723ce44afe86c2e5c8affc405f..5cc82e8b388260cf5a15ef81b5fb2996ff623741 100644
--- a/third_party/WebKit/Source/core/paint/SVGFilterPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/SVGFilterPainter.cpp
@@ -13,8 +13,8 @@
#include "platform/graphics/filters/SkiaImageFilterBuilder.h"
#include "platform/graphics/filters/SourceGraphic.h"
#include "platform/graphics/paint/CompositingDisplayItem.h"
-#include "platform/graphics/paint/DisplayItemList.h"
#include "platform/graphics/paint/DrawingDisplayItem.h"
+#include "platform/graphics/paint/PaintController.h"
#define CHECK_CTM_FOR_TRANSFORMED_IMAGEFILTER
@@ -27,8 +27,8 @@ GraphicsContext* SVGFilterRecordingContext::beginContent(FilterData* filterData)
GraphicsContext* context = paintingContext();
// Create a new context so the contents of the filter can be drawn and cached.
- m_displayItemList = DisplayItemList::create();
- m_context = adoptPtr(new GraphicsContext(m_displayItemList.get()));
+ m_paintController = PaintController::create();
+ m_context = adoptPtr(new GraphicsContext(m_paintController.get()));
context = m_context.get();
filterData->m_state = FilterData::RecordingContent;
@@ -45,17 +45,17 @@ void SVGFilterRecordingContext::endContent(FilterData* filterData)
GraphicsContext* context = paintingContext();
// Use the context that contains the filtered content.
- ASSERT(m_displayItemList);
+ ASSERT(m_paintController);
ASSERT(m_context);
context = m_context.get();
context->beginRecording(filterData->filter->filterRegion());
- m_displayItemList->commitNewDisplayItems();
- m_displayItemList->paintArtifact().replay(*context);
+ m_paintController->commitNewDisplayItems();
+ m_paintController->paintArtifact().replay(*context);
sourceGraphic->setPicture(context->endRecording());
// Content is cached by the source graphic so temporaries can be freed.
- m_displayItemList = nullptr;
+ m_paintController = nullptr;
m_context = nullptr;
filterData->m_state = FilterData::ReadyToPaint;
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGFilterPainter.h ('k') | third_party/WebKit/Source/core/paint/SVGMaskPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698