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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp

Issue 1981823002: Remove OwnPtr::release() calls in platform/ (part 1). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/GraphicsContext.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
index e8c05b67524925a070f34c2eb7a9031630efed9c..1d30391b3b0e3387e42aa38e8a3fd3f04157c6fb 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
@@ -209,7 +209,7 @@ void GraphicsContext::setShadow(const FloatSize& offset, float blur, const Color
if (shadowMode != DrawShadowOnly)
drawLooperBuilder.clear();
- setDrawLooper(drawLooperBuilder.release());
+ setDrawLooper(std::move(drawLooperBuilder));
return;
}
@@ -217,7 +217,7 @@ void GraphicsContext::setShadow(const FloatSize& offset, float blur, const Color
if (shadowMode == DrawShadowAndForeground) {
drawLooperBuilder->addUnmodifiedContent();
}
- setDrawLooper(drawLooperBuilder.release());
+ setDrawLooper(std::move(drawLooperBuilder));
}
void GraphicsContext::setDrawLooper(PassOwnPtr<DrawLooperBuilder> drawLooperBuilder)
@@ -480,7 +480,7 @@ void GraphicsContext::drawInnerShadow(const FloatRoundedRect& rect, const Color&
OwnPtr<DrawLooperBuilder> drawLooperBuilder = DrawLooperBuilder::create();
drawLooperBuilder->addShadow(FloatSize(shadowOffset), shadowBlur, shadowColor,
DrawLooperBuilder::ShadowRespectsTransforms, DrawLooperBuilder::ShadowIgnoresAlpha);
- setDrawLooper(drawLooperBuilder.release());
+ setDrawLooper(std::move(drawLooperBuilder));
fillRectWithRoundedHole(outerRect, roundedHole, fillColor);
}

Powered by Google App Engine
This is Rietveld 408576698