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

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

Issue 1108823002: Remove SourceGraphic reference from SkiaImageFilterBuilder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | Source/platform/graphics/filters/SkiaImageFilterBuilder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGFilterPainter.cpp
diff --git a/Source/core/paint/SVGFilterPainter.cpp b/Source/core/paint/SVGFilterPainter.cpp
index b5a327e0803cde27c15c4f2493300954f68e08fc..a7c32b3ab7e219061701b0ec4e08e4c4402f9254 100644
--- a/Source/core/paint/SVGFilterPainter.cpp
+++ b/Source/core/paint/SVGFilterPainter.cpp
@@ -68,12 +68,11 @@ static void endRecordingContent(GraphicsContext* context, FilterData* filterData
static void paintFilteredContent(GraphicsContext* context, FilterData* filterData, SVGFilterElement* filterElement)
{
ASSERT(filterData->m_state == FilterData::ReadyToPaint);
+ ASSERT(filterData->builder->getEffectById(SourceGraphic::effectName()));
+
filterData->m_state = FilterData::PaintingFilter;
SkiaImageFilterBuilder builder(context);
- SourceGraphic* sourceGraphic = static_cast<SourceGraphic*>(filterData->builder->getEffectById(SourceGraphic::effectName()));
- ASSERT(sourceGraphic);
- builder.setSourceGraphic(sourceGraphic);
RefPtr<SkImageFilter> imageFilter = builder.build(filterData->builder->lastEffect(), ColorSpaceDeviceRGB);
FloatRect boundaries = filterData->boundaries;
context->save();
« no previous file with comments | « no previous file | Source/platform/graphics/filters/SkiaImageFilterBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698