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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/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.

Powered by Google App Engine
This is Rietveld 408576698