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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.h

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/gpu/SharedContextRateLimiter.h
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.h b/third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.h
index 96805c1ec6c23e3e0c3aacb847565525550842ec..4a276b7f03afedc344f2099ac642ca44d0a6a6d3 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.h
+++ b/third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.h
@@ -9,8 +9,7 @@
#include "wtf/Allocator.h"
#include "wtf/Deque.h"
#include "wtf/Noncopyable.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
+#include <memory>
namespace blink {
@@ -40,13 +39,13 @@ class SharedContextRateLimiter final {
USING_FAST_MALLOC(SharedContextRateLimiter);
WTF_MAKE_NONCOPYABLE(SharedContextRateLimiter);
public:
- static PassOwnPtr<SharedContextRateLimiter> create(unsigned maxPendingTicks);
+ static std::unique_ptr<SharedContextRateLimiter> create(unsigned maxPendingTicks);
void tick();
void reset();
private:
SharedContextRateLimiter(unsigned maxPendingTicks);
- OwnPtr<WebGraphicsContext3DProvider> m_contextProvider;
+ std::unique_ptr<WebGraphicsContext3DProvider> m_contextProvider;
Deque<GLuint> m_queries;
unsigned m_maxPendingTicks;
bool m_canUseSyncQueries;

Powered by Google App Engine
This is Rietveld 408576698