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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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/paint/SkPictureBuilder.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.cpp b/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.cpp
index 6c5a50d4d73dbe27da5fc1d19c358d5637d79451..2d8215d5774b9da21fbdf7c724edcc20d57da57c 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.cpp
@@ -7,6 +7,7 @@
#include "platform/geometry/FloatRect.h"
#include "platform/graphics/GraphicsContext.h"
#include "platform/graphics/paint/PaintController.h"
+#include "wtf/PtrUtil.h"
namespace blink {
@@ -19,7 +20,7 @@ SkPictureBuilder::SkPictureBuilder(const FloatRect& bounds, SkMetaData* metaData
m_paintController = PaintController::create();
m_paintController->beginSkippingCache();
- m_context = adoptPtr(new GraphicsContext(*m_paintController, disabledMode, metaData));
+ m_context = wrapUnique(new GraphicsContext(*m_paintController, disabledMode, metaData));
if (containingContext) {
m_context->setDeviceScaleFactor(containingContext->deviceScaleFactor());

Powered by Google App Engine
This is Rietveld 408576698