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

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

Issue 1387573003: Pass SkiaImageFilterBuilder& to FilterEffect::createImageFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/filters/SourceGraphic.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/filters/SourceGraphic.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698