| 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 14 matching lines...) Expand all Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |