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

Side by Side Diff: Source/platform/graphics/filters/SourceAlpha.cpp

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 14 matching lines...) Expand all
25 #include "platform/graphics/filters/Filter.h" 25 #include "platform/graphics/filters/Filter.h"
26 #include "platform/graphics/filters/SkiaImageFilterBuilder.h" 26 #include "platform/graphics/filters/SkiaImageFilterBuilder.h"
27 #include "platform/graphics/filters/SourceGraphic.h" 27 #include "platform/graphics/filters/SourceGraphic.h"
28 #include "platform/text/TextStream.h" 28 #include "platform/text/TextStream.h"
29 #include "third_party/skia/include/effects/SkColorFilterImageFilter.h" 29 #include "third_party/skia/include/effects/SkColorFilterImageFilter.h"
30 #include "third_party/skia/include/effects/SkColorMatrixFilter.h" 30 #include "third_party/skia/include/effects/SkColorMatrixFilter.h"
31 #include "wtf/text/WTFString.h" 31 #include "wtf/text/WTFString.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 PassRefPtr<SourceAlpha> SourceAlpha::create(Filter* filter) 35 PassRefPtrWillBeRawPtr<SourceAlpha> SourceAlpha::create(Filter* filter)
36 { 36 {
37 return adoptRef(new SourceAlpha(filter)); 37 return adoptRefWillBeNoop(new SourceAlpha(filter));
38 } 38 }
39 39
40 const AtomicString& SourceAlpha::effectName() 40 const AtomicString& SourceAlpha::effectName()
41 { 41 {
42 DEFINE_STATIC_LOCAL(const AtomicString, s_effectName, ("SourceAlpha", Atomic String::ConstructFromLiteral)); 42 DEFINE_STATIC_LOCAL(const AtomicString, s_effectName, ("SourceAlpha", Atomic String::ConstructFromLiteral));
43 return s_effectName; 43 return s_effectName;
44 } 44 }
45 45
46 FloatRect SourceAlpha::determineAbsolutePaintRect(const FloatRect& requestedRect ) 46 FloatRect SourceAlpha::determineAbsolutePaintRect(const FloatRect& requestedRect )
47 { 47 {
(...skipping 17 matching lines...) Expand all
65 } 65 }
66 66
67 TextStream& SourceAlpha::externalRepresentation(TextStream& ts, int indent) cons t 67 TextStream& SourceAlpha::externalRepresentation(TextStream& ts, int indent) cons t
68 { 68 {
69 writeIndent(ts, indent); 69 writeIndent(ts, indent);
70 ts << "[SourceAlpha]\n"; 70 ts << "[SourceAlpha]\n";
71 return ts; 71 return ts;
72 } 72 }
73 73
74 } // namespace blink 74 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/SourceAlpha.h ('k') | Source/platform/graphics/filters/SourceGraphic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698