Index: third_party/WebKit/Source/platform/graphics/GraphicsContext.h |
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.h b/third_party/WebKit/Source/platform/graphics/GraphicsContext.h |
index 71fde7edaa75c97d6418e8c14a66dfe454fdba5a..ff0ba7ada9ee51ea80f33d4715dbd39b561d351e 100644 |
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.h |
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.h |
@@ -41,7 +41,7 @@ |
#include "wtf/Allocator.h" |
#include "wtf/Forward.h" |
#include "wtf/Noncopyable.h" |
-#include <memory> |
+#include "wtf/PassOwnPtr.h" |
class SkBitmap; |
class SkImage; |
@@ -215,7 +215,7 @@ public: |
// It is assumed that this draw looper is used only for shadows |
// (i.e. a draw looper is set if and only if there is a shadow). |
// The builder passed into this method will be destroyed. |
- void setDrawLooper(std::unique_ptr<DrawLooperBuilder>); |
+ void setDrawLooper(PassOwnPtr<DrawLooperBuilder>); |
void drawFocusRing(const Vector<IntRect>&, int width, int offset, const Color&); |
void drawFocusRing(const Path&, int width, int offset, const Color&); |
@@ -343,7 +343,7 @@ private: |
// Paint states stack. Enables local drawing state change with save()/restore() calls. |
// This state controls the appearance of drawn content. |
// We do not delete from this stack to avoid memory churn. |
- Vector<std::unique_ptr<GraphicsContextState>> m_paintStateStack; |
+ Vector<OwnPtr<GraphicsContextState>> m_paintStateStack; |
// Current index on the stack. May not be the last thing on the stack. |
unsigned m_paintStateIndex; |
// Raw pointer to the current state. |