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

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

Issue 2494333002: Replace wrapUnique(new T(args)) by makeUnique<T>(args) in Blink (Closed)
Patch Set: Drop redundant WTF:: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp b/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
index 608af47190b02fb7651c62d6e98ccdf9cbb1fd77..085b12cf1e37b588fcf1bd96c7517e47f5e2fb57 100644
--- a/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
+++ b/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
@@ -142,7 +142,7 @@ std::unique_ptr<Vector<char>> PictureSnapshot::replay(unsigned fromStep,
canvas.resetStepCount();
m_picture->playback(&canvas, &canvas);
}
- std::unique_ptr<Vector<char>> base64Data = wrapUnique(new Vector<char>());
+ std::unique_ptr<Vector<char>> base64Data = makeUnique<Vector<char>>();
Vector<char> encodedImage;
sk_sp<SkImage> image = SkImage::MakeFromBitmap(bitmap);
@@ -167,7 +167,7 @@ std::unique_ptr<PictureSnapshot::Timings> PictureSnapshot::profile(
double minDuration,
const FloatRect* clipRect) const {
std::unique_ptr<PictureSnapshot::Timings> timings =
- wrapUnique(new PictureSnapshot::Timings());
+ makeUnique<PictureSnapshot::Timings>();
timings->reserveCapacity(minRepeatCount);
const SkIRect bounds = m_picture->cullRect().roundOut();
SkBitmap bitmap;

Powered by Google App Engine
This is Rietveld 408576698