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

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

Issue 1860903002: Update Source/platform/ to assume Oilpan only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: back out ScrollAnimatorMac() accidental change Created 4 years, 8 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
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 27 matching lines...) Expand all
38 FEComponentTransfer::FEComponentTransfer(Filter* filter, const ComponentTransfer Function& redFunc, const ComponentTransferFunction& greenFunc, 38 FEComponentTransfer::FEComponentTransfer(Filter* filter, const ComponentTransfer Function& redFunc, const ComponentTransferFunction& greenFunc,
39 const ComponentTransferFunction& blueFunc, const ComponentTransferFunction& alphaFunc) 39 const ComponentTransferFunction& blueFunc, const ComponentTransferFunction& alphaFunc)
40 : FilterEffect(filter) 40 : FilterEffect(filter)
41 , m_redFunc(redFunc) 41 , m_redFunc(redFunc)
42 , m_greenFunc(greenFunc) 42 , m_greenFunc(greenFunc)
43 , m_blueFunc(blueFunc) 43 , m_blueFunc(blueFunc)
44 , m_alphaFunc(alphaFunc) 44 , m_alphaFunc(alphaFunc)
45 { 45 {
46 } 46 }
47 47
48 RawPtr<FEComponentTransfer> FEComponentTransfer::create(Filter* filter, const Co mponentTransferFunction& redFunc, 48 FEComponentTransfer* FEComponentTransfer::create(Filter* filter, const Component TransferFunction& redFunc,
49 const ComponentTransferFunction& greenFunc, const ComponentTransferFunction& blueFunc, const ComponentTransferFunction& alphaFunc) 49 const ComponentTransferFunction& greenFunc, const ComponentTransferFunction& blueFunc, const ComponentTransferFunction& alphaFunc)
50 { 50 {
51 return new FEComponentTransfer(filter, redFunc, greenFunc, blueFunc, alphaFu nc); 51 return new FEComponentTransfer(filter, redFunc, greenFunc, blueFunc, alphaFu nc);
52 } 52 }
53 53
54 static void identity(unsigned char*, const ComponentTransferFunction&) 54 static void identity(unsigned char*, const ComponentTransferFunction&)
55 { 55 {
56 } 56 }
57 57
58 static void table(unsigned char* values, const ComponentTransferFunction& transf erFunction) 58 static void table(unsigned char* values, const ComponentTransferFunction& transf erFunction)
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 ts << "{green: " << m_greenFunc << "}\n"; 202 ts << "{green: " << m_greenFunc << "}\n";
203 writeIndent(ts, indent + 2); 203 writeIndent(ts, indent + 2);
204 ts << "{blue: " << m_blueFunc << "}\n"; 204 ts << "{blue: " << m_blueFunc << "}\n";
205 writeIndent(ts, indent + 2); 205 writeIndent(ts, indent + 2);
206 ts << "{alpha: " << m_alphaFunc << "}]\n"; 206 ts << "{alpha: " << m_alphaFunc << "}]\n";
207 inputEffect(0)->externalRepresentation(ts, indent + 1); 207 inputEffect(0)->externalRepresentation(ts, indent + 1);
208 return ts; 208 return ts;
209 } 209 }
210 210
211 } // namespace blink 211 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698