OLD | NEW |
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 10 matching lines...) Expand all Loading... |
21 #include "config.h" | 21 #include "config.h" |
22 | 22 |
23 #include "platform/graphics/filters/SourceGraphic.h" | 23 #include "platform/graphics/filters/SourceGraphic.h" |
24 | 24 |
25 #include "platform/graphics/filters/Filter.h" | 25 #include "platform/graphics/filters/Filter.h" |
26 #include "platform/text/TextStream.h" | 26 #include "platform/text/TextStream.h" |
27 #include "third_party/skia/include/effects/SkPictureImageFilter.h" | 27 #include "third_party/skia/include/effects/SkPictureImageFilter.h" |
28 | 28 |
29 namespace blink { | 29 namespace blink { |
30 | 30 |
31 PassRefPtr<SourceGraphic> SourceGraphic::create(Filter* filter) | 31 PassRefPtrWillBeRawPtr<SourceGraphic> SourceGraphic::create(Filter* filter) |
32 { | 32 { |
33 return adoptRef(new SourceGraphic(filter)); | 33 return adoptRefWillBeNoop(new SourceGraphic(filter)); |
34 } | 34 } |
35 | 35 |
36 const AtomicString& SourceGraphic::effectName() | 36 const AtomicString& SourceGraphic::effectName() |
37 { | 37 { |
38 DEFINE_STATIC_LOCAL(const AtomicString, s_effectName, ("SourceGraphic", Atom
icString::ConstructFromLiteral)); | 38 DEFINE_STATIC_LOCAL(const AtomicString, s_effectName, ("SourceGraphic", Atom
icString::ConstructFromLiteral)); |
39 return s_effectName; | 39 return s_effectName; |
40 } | 40 } |
41 | 41 |
42 FloatRect SourceGraphic::determineAbsolutePaintRect(const FloatRect& requestedRe
ct) | 42 FloatRect SourceGraphic::determineAbsolutePaintRect(const FloatRect& requestedRe
ct) |
43 { | 43 { |
(...skipping 17 matching lines...) Expand all Loading... |
61 } | 61 } |
62 | 62 |
63 TextStream& SourceGraphic::externalRepresentation(TextStream& ts, int indent) co
nst | 63 TextStream& SourceGraphic::externalRepresentation(TextStream& ts, int indent) co
nst |
64 { | 64 { |
65 writeIndent(ts, indent); | 65 writeIndent(ts, indent); |
66 ts << "[SourceGraphic]\n"; | 66 ts << "[SourceGraphic]\n"; |
67 return ts; | 67 return ts; |
68 } | 68 } |
69 | 69 |
70 } // namespace blink | 70 } // namespace blink |
OLD | NEW |