| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 void SourceGraphic::setPicture(PassRefPtr<const SkPicture> picture) | 60 void SourceGraphic::setPicture(PassRefPtr<const SkPicture> picture) |
| 61 { | 61 { |
| 62 m_picture = picture; | 62 m_picture = picture; |
| 63 } | 63 } |
| 64 | 64 |
| 65 void SourceGraphic::setSourceRect(const IntRect& sourceRect) | 65 void SourceGraphic::setSourceRect(const IntRect& sourceRect) |
| 66 { | 66 { |
| 67 m_sourceRect = sourceRect; | 67 m_sourceRect = sourceRect; |
| 68 } | 68 } |
| 69 | 69 |
| 70 PassRefPtr<SkImageFilter> SourceGraphic::createImageFilter(SkiaImageFilterBuilde
r*) | 70 PassRefPtr<SkImageFilter> SourceGraphic::createImageFilter(SkiaImageFilterBuilde
r&) |
| 71 { | 71 { |
| 72 if (!m_picture) | 72 if (!m_picture) |
| 73 return nullptr; | 73 return nullptr; |
| 74 | 74 |
| 75 return adoptRef(SkPictureImageFilter::Create(m_picture.get(), m_picture->cul
lRect())); | 75 return adoptRef(SkPictureImageFilter::Create(m_picture.get(), m_picture->cul
lRect())); |
| 76 } | 76 } |
| 77 | 77 |
| 78 TextStream& SourceGraphic::externalRepresentation(TextStream& ts, int indent) co
nst | 78 TextStream& SourceGraphic::externalRepresentation(TextStream& ts, int indent) co
nst |
| 79 { | 79 { |
| 80 writeIndent(ts, indent); | 80 writeIndent(ts, indent); |
| 81 ts << "[SourceGraphic]\n"; | 81 ts << "[SourceGraphic]\n"; |
| 82 return ts; | 82 return ts; |
| 83 } | 83 } |
| 84 | 84 |
| 85 } // namespace blink | 85 } // namespace blink |
| OLD | NEW |