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

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

Powered by Google App Engine
This is Rietveld 408576698