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; |