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

Side by Side Diff: Source/platform/graphics/filters/FEComponentTransfer.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) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * Copyright (C) 2013 Google Inc. All rights reserved. 7 * Copyright (C) 2013 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 26 matching lines...) Expand all
37 FEComponentTransfer::FEComponentTransfer(Filter* filter, const ComponentTransfer Function& redFunc, const ComponentTransferFunction& greenFunc, 37 FEComponentTransfer::FEComponentTransfer(Filter* filter, const ComponentTransfer Function& redFunc, const ComponentTransferFunction& greenFunc,
38 const ComponentTransferFunction& blueFunc, const ComponentTransferFunction& alphaFunc) 38 const ComponentTransferFunction& blueFunc, const ComponentTransferFunction& alphaFunc)
39 : FilterEffect(filter) 39 : FilterEffect(filter)
40 , m_redFunc(redFunc) 40 , m_redFunc(redFunc)
41 , m_greenFunc(greenFunc) 41 , m_greenFunc(greenFunc)
42 , m_blueFunc(blueFunc) 42 , m_blueFunc(blueFunc)
43 , m_alphaFunc(alphaFunc) 43 , m_alphaFunc(alphaFunc)
44 { 44 {
45 } 45 }
46 46
47 PassRefPtr<FEComponentTransfer> FEComponentTransfer::create(Filter* filter, cons t ComponentTransferFunction& redFunc, 47 PassRefPtrWillBeRawPtr<FEComponentTransfer> FEComponentTransfer::create(Filter* filter, const ComponentTransferFunction& redFunc,
48 const ComponentTransferFunction& greenFunc, const ComponentTransferFunction& blueFunc, const ComponentTransferFunction& alphaFunc) 48 const ComponentTransferFunction& greenFunc, const ComponentTransferFunction& blueFunc, const ComponentTransferFunction& alphaFunc)
49 { 49 {
50 return adoptRef(new FEComponentTransfer(filter, redFunc, greenFunc, blueFunc , alphaFunc)); 50 return adoptRefWillBeNoop(new FEComponentTransfer(filter, redFunc, greenFunc , blueFunc, alphaFunc));
51 } 51 }
52 52
53 ComponentTransferFunction FEComponentTransfer::redFunction() const 53 ComponentTransferFunction FEComponentTransfer::redFunction() const
54 { 54 {
55 return m_redFunc; 55 return m_redFunc;
56 } 56 }
57 57
58 void FEComponentTransfer::setRedFunction(const ComponentTransferFunction& func) 58 void FEComponentTransfer::setRedFunction(const ComponentTransferFunction& func)
59 { 59 {
60 m_redFunc = func; 60 m_redFunc = func;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 ts << "{green: " << m_greenFunc << "}\n"; 242 ts << "{green: " << m_greenFunc << "}\n";
243 writeIndent(ts, indent + 2); 243 writeIndent(ts, indent + 2);
244 ts << "{blue: " << m_blueFunc << "}\n"; 244 ts << "{blue: " << m_blueFunc << "}\n";
245 writeIndent(ts, indent + 2); 245 writeIndent(ts, indent + 2);
246 ts << "{alpha: " << m_alphaFunc << "}]\n"; 246 ts << "{alpha: " << m_alphaFunc << "}]\n";
247 inputEffect(0)->externalRepresentation(ts, indent + 1); 247 inputEffect(0)->externalRepresentation(ts, indent + 1);
248 return ts; 248 return ts;
249 } 249 }
250 250
251 } // namespace blink 251 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/FEComponentTransfer.h ('k') | Source/platform/graphics/filters/FEComposite.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698