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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/filters/FEDiffuseLighting.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) 2013 Google Inc. All rights reserved. 5 * Copyright (C) 2013 Google Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 15 matching lines...) Expand all
26 #include "platform/text/TextStream.h" 26 #include "platform/text/TextStream.h"
27 27
28 namespace blink { 28 namespace blink {
29 29
30 FEDiffuseLighting::FEDiffuseLighting(Filter* filter, const Color& lightingColor, float surfaceScale, 30 FEDiffuseLighting::FEDiffuseLighting(Filter* filter, const Color& lightingColor, float surfaceScale,
31 float diffuseConstant, PassRefPtr<LightSource> lightSource) 31 float diffuseConstant, PassRefPtr<LightSource> lightSource)
32 : FELighting(filter, DiffuseLighting, lightingColor, surfaceScale, diffuseCo nstant, 0, 0, lightSource) 32 : FELighting(filter, DiffuseLighting, lightingColor, surfaceScale, diffuseCo nstant, 0, 0, lightSource)
33 { 33 {
34 } 34 }
35 35
36 RawPtr<FEDiffuseLighting> FEDiffuseLighting::create(Filter* filter, const Color& lightingColor, 36 FEDiffuseLighting* FEDiffuseLighting::create(Filter* filter, const Color& lighti ngColor,
37 float surfaceScale, float diffuseConstant, PassRefPtr<LightSource> lightSour ce) 37 float surfaceScale, float diffuseConstant, PassRefPtr<LightSource> lightSour ce)
38 { 38 {
39 return new FEDiffuseLighting(filter, lightingColor, surfaceScale, diffuseCon stant, lightSource); 39 return new FEDiffuseLighting(filter, lightingColor, surfaceScale, diffuseCon stant, lightSource);
40 } 40 }
41 41
42 FEDiffuseLighting::~FEDiffuseLighting() 42 FEDiffuseLighting::~FEDiffuseLighting()
43 { 43 {
44 } 44 }
45 45
46 Color FEDiffuseLighting::lightingColor() const 46 Color FEDiffuseLighting::lightingColor() const
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 { 97 {
98 writeIndent(ts, indent); 98 writeIndent(ts, indent);
99 ts << "[feDiffuseLighting"; 99 ts << "[feDiffuseLighting";
100 FilterEffect::externalRepresentation(ts); 100 FilterEffect::externalRepresentation(ts);
101 ts << " surfaceScale=\"" << m_surfaceScale << "\" " << "diffuseConstant=\"" << m_diffuseConstant << "\"]\n"; 101 ts << " surfaceScale=\"" << m_surfaceScale << "\" " << "diffuseConstant=\"" << m_diffuseConstant << "\"]\n";
102 inputEffect(0)->externalRepresentation(ts, indent + 1); 102 inputEffect(0)->externalRepresentation(ts, indent + 1);
103 return ts; 103 return ts;
104 } 104 }
105 105
106 } // namespace blink 106 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698