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

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/FESpecularLighting.cpp

Issue 2306293002: Replaced PassRefPtr copies with moves in Source/platform. (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/filters/FESpecularLighting.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FESpecularLighting.cpp b/third_party/WebKit/Source/platform/graphics/filters/FESpecularLighting.cpp
index 5940eb167ebbe3c58fcc68987b0b8ac7a88c7261..33220586290f84513216e184d2033f2c0fa4ab59 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FESpecularLighting.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FESpecularLighting.cpp
@@ -31,7 +31,7 @@ namespace blink {
FESpecularLighting::FESpecularLighting(Filter* filter, const Color& lightingColor, float surfaceScale,
float specularConstant, float specularExponent, PassRefPtr<LightSource> lightSource)
- : FELighting(filter, SpecularLighting, lightingColor, surfaceScale, 0, specularConstant, specularExponent, lightSource)
+ : FELighting(filter, SpecularLighting, lightingColor, surfaceScale, 0, specularConstant, specularExponent, std::move(lightSource))
{
}
@@ -39,7 +39,7 @@ FESpecularLighting* FESpecularLighting::create(Filter* filter, const Color& ligh
float surfaceScale, float specularConstant, float specularExponent, PassRefPtr<LightSource> lightSource)
{
return new FESpecularLighting(filter, lightingColor, surfaceScale, specularConstant, specularExponent,
- lightSource);
+ std::move(lightSource));
}
FESpecularLighting::~FESpecularLighting()

Powered by Google App Engine
This is Rietveld 408576698