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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContextTest.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/GraphicsContextTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp
index 46da10f5371ba3262d902bb6f6f9f45986a40430..5b5886e53fbab9f10c28584a257ae23f4d209edf 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp
@@ -32,6 +32,7 @@
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkPicture.h"
#include "third_party/skia/include/core/SkShader.h"
+#include <memory>
namespace blink {
@@ -69,7 +70,7 @@ TEST(GraphicsContextTest, pictureRecording)
bitmap.eraseColor(0);
SkCanvas canvas(bitmap);
- OwnPtr<PaintController> paintController = PaintController::create();
+ std::unique_ptr<PaintController> paintController = PaintController::create();
GraphicsContext context(*paintController);
Color opaque(1.0f, 0.0f, 0.0f, 1.0f);
@@ -102,7 +103,7 @@ TEST(GraphicsContextTest, UnboundedDrawsAreClipped)
Color alpha(0.0f, 0.0f, 0.0f, 0.0f);
FloatRect bounds(0, 0, 100, 100);
- OwnPtr<PaintController> paintController = PaintController::create();
+ std::unique_ptr<PaintController> paintController = PaintController::create();
GraphicsContext context(*paintController);
context.beginRecording(bounds);

Powered by Google App Engine
This is Rietveld 408576698