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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.cpp

Issue 1860903002: Update Source/platform/ to assume Oilpan only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: back out ScrollAnimatorMac() accidental change Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "platform/graphics/filters/PaintFilterEffect.h" 5 #include "platform/graphics/filters/PaintFilterEffect.h"
6 6
7 #include "platform/graphics/filters/Filter.h" 7 #include "platform/graphics/filters/Filter.h"
8 #include "platform/text/TextStream.h" 8 #include "platform/text/TextStream.h"
9 #include "third_party/skia/include/effects/SkPaintImageFilter.h" 9 #include "third_party/skia/include/effects/SkPaintImageFilter.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 PaintFilterEffect::PaintFilterEffect(Filter* filter, const SkPaint& paint) 13 PaintFilterEffect::PaintFilterEffect(Filter* filter, const SkPaint& paint)
14 : FilterEffect(filter) 14 : FilterEffect(filter)
15 , m_paint(paint) 15 , m_paint(paint)
16 { 16 {
17 setOperatingColorSpace(ColorSpaceDeviceRGB); 17 setOperatingColorSpace(ColorSpaceDeviceRGB);
18 } 18 }
19 19
20 PaintFilterEffect::~PaintFilterEffect() 20 PaintFilterEffect::~PaintFilterEffect()
21 { 21 {
22 } 22 }
23 23
24 RawPtr<PaintFilterEffect> PaintFilterEffect::create(Filter* filter, const SkPain t& paint) 24 PaintFilterEffect* PaintFilterEffect::create(Filter* filter, const SkPaint& pain t)
25 { 25 {
26 return new PaintFilterEffect(filter, paint); 26 return new PaintFilterEffect(filter, paint);
27 } 27 }
28 28
29 PassRefPtr<SkImageFilter> PaintFilterEffect::createImageFilter(SkiaImageFilterBu ilder&) 29 PassRefPtr<SkImageFilter> PaintFilterEffect::createImageFilter(SkiaImageFilterBu ilder&)
30 { 30 {
31 return adoptRef(SkPaintImageFilter::Create(m_paint, nullptr)); 31 return adoptRef(SkPaintImageFilter::Create(m_paint, nullptr));
32 } 32 }
33 33
34 TextStream& PaintFilterEffect::externalRepresentation(TextStream& ts, int indent ) const 34 TextStream& PaintFilterEffect::externalRepresentation(TextStream& ts, int indent ) const
35 { 35 {
36 writeIndent(ts, indent); 36 writeIndent(ts, indent);
37 ts << "[PaintFilterEffect]\n"; 37 ts << "[PaintFilterEffect]\n";
38 return ts; 38 return ts;
39 } 39 }
40 40
41 } // namespace blink 41 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698