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

Side by Side Diff: Source/platform/graphics/filters/FEComposite.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 FEComposite::FEComposite(Filter* filter, const CompositeOperationType& type, flo at k1, float k2, float k3, float k4) 37 FEComposite::FEComposite(Filter* filter, const CompositeOperationType& type, flo at k1, float k2, float k3, float k4)
38 : FilterEffect(filter) 38 : FilterEffect(filter)
39 , m_type(type) 39 , m_type(type)
40 , m_k1(k1) 40 , m_k1(k1)
41 , m_k2(k2) 41 , m_k2(k2)
42 , m_k3(k3) 42 , m_k3(k3)
43 , m_k4(k4) 43 , m_k4(k4)
44 { 44 {
45 } 45 }
46 46
47 PassRefPtr<FEComposite> FEComposite::create(Filter* filter, const CompositeOpera tionType& type, float k1, float k2, float k3, float k4) 47 PassRefPtrWillBeRawPtr<FEComposite> FEComposite::create(Filter* filter, const Co mpositeOperationType& type, float k1, float k2, float k3, float k4)
48 { 48 {
49 return adoptRef(new FEComposite(filter, type, k1, k2, k3, k4)); 49 return adoptRefWillBeNoop(new FEComposite(filter, type, k1, k2, k3, k4));
50 } 50 }
51 51
52 CompositeOperationType FEComposite::operation() const 52 CompositeOperationType FEComposite::operation() const
53 { 53 {
54 return m_type; 54 return m_type;
55 } 55 }
56 56
57 bool FEComposite::setOperation(CompositeOperationType type) 57 bool FEComposite::setOperation(CompositeOperationType type)
58 { 58 {
59 if (m_type == type) 59 if (m_type == type)
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 ts << " operation=\"" << m_type << "\""; 249 ts << " operation=\"" << m_type << "\"";
250 if (m_type == FECOMPOSITE_OPERATOR_ARITHMETIC) 250 if (m_type == FECOMPOSITE_OPERATOR_ARITHMETIC)
251 ts << " k1=\"" << m_k1 << "\" k2=\"" << m_k2 << "\" k3=\"" << m_k3 << "\ " k4=\"" << m_k4 << "\""; 251 ts << " k1=\"" << m_k1 << "\" k2=\"" << m_k2 << "\" k3=\"" << m_k3 << "\ " k4=\"" << m_k4 << "\"";
252 ts << "]\n"; 252 ts << "]\n";
253 inputEffect(0)->externalRepresentation(ts, indent + 1); 253 inputEffect(0)->externalRepresentation(ts, indent + 1);
254 inputEffect(1)->externalRepresentation(ts, indent + 1); 254 inputEffect(1)->externalRepresentation(ts, indent + 1);
255 return ts; 255 return ts;
256 } 256 }
257 257
258 } // namespace blink 258 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/FEComposite.h ('k') | Source/platform/graphics/filters/FEConvolveMatrix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698