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

Side by Side Diff: Source/core/paint/SVGFilterPainter.cpp

Issue 1056353003: Derive the SourceAlpha filter input from SourceGraphic (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix variable name. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/paint/SVGFilterPainter.h" 6 #include "core/paint/SVGFilterPainter.h"
7 7
8 #include "core/layout/PaintInfo.h" 8 #include "core/layout/PaintInfo.h"
9 #include "core/layout/svg/LayoutSVGResourceFilter.h" 9 #include "core/layout/svg/LayoutSVGResourceFilter.h"
10 #include "core/paint/CompositingRecorder.h" 10 #include "core/paint/CompositingRecorder.h"
11 #include "core/paint/LayoutObjectDrawingRecorder.h" 11 #include "core/paint/LayoutObjectDrawingRecorder.h"
12 #include "core/paint/TransformRecorder.h" 12 #include "core/paint/TransformRecorder.h"
13 #include "platform/graphics/filters/SkiaImageFilterBuilder.h" 13 #include "platform/graphics/filters/SkiaImageFilterBuilder.h"
14 #include "platform/graphics/filters/SourceAlpha.h"
15 #include "platform/graphics/filters/SourceGraphic.h" 14 #include "platform/graphics/filters/SourceGraphic.h"
16 #include "platform/graphics/paint/CompositingDisplayItem.h" 15 #include "platform/graphics/paint/CompositingDisplayItem.h"
17 #include "platform/graphics/paint/DisplayItemList.h" 16 #include "platform/graphics/paint/DisplayItemList.h"
18 #include "platform/graphics/paint/DrawingDisplayItem.h" 17 #include "platform/graphics/paint/DrawingDisplayItem.h"
19 18
20 namespace blink { 19 namespace blink {
21 20
22 static GraphicsContext* beginRecordingContent(GraphicsContext* context, FilterDa ta* filterData) 21 static GraphicsContext* beginRecordingContent(GraphicsContext* context, FilterDa ta* filterData)
23 { 22 {
24 ASSERT(filterData->m_state == FilterData::Initial); 23 ASSERT(filterData->m_state == FilterData::Initial);
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 190
192 LayoutObjectDrawingRecorder recorder(*context, object, DisplayItem::SVGFilte r, LayoutRect::infiniteIntRect()); 191 LayoutObjectDrawingRecorder recorder(*context, object, DisplayItem::SVGFilte r, LayoutRect::infiniteIntRect());
193 if (recorder.canUseCachedDrawing()) 192 if (recorder.canUseCachedDrawing())
194 return; 193 return;
195 194
196 if (filterData && filterData->m_state == FilterData::ReadyToPaint) 195 if (filterData && filterData->m_state == FilterData::ReadyToPaint)
197 paintFilteredContent(context, filterData, toSVGFilterElement(m_filter.el ement())); 196 paintFilteredContent(context, filterData, toSVGFilterElement(m_filter.el ement()));
198 } 197 }
199 198
200 } 199 }
OLDNEW
« no previous file with comments | « Source/core/layout/svg/ReferenceFilterBuilder.cpp ('k') | Source/core/svg/graphics/filters/SVGFilterBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698