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

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

Issue 1484853003: Ganesh: images upload to GPU performance fix (skip copying encoded data) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: process comment #101 and rebase to latest Created 5 years 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/ThreadSafeDataTransport.h
diff --git a/third_party/WebKit/Source/platform/graphics/ThreadSafeDataTransport.h b/third_party/WebKit/Source/platform/graphics/ThreadSafeDataTransport.h
index 7c3ab37cc2721733c648587e6565fa6e6e73916b..3aae9477b99af41fe65a01a3fb3f524f5cb824ba 100644
--- a/third_party/WebKit/Source/platform/graphics/ThreadSafeDataTransport.h
+++ b/third_party/WebKit/Source/platform/graphics/ThreadSafeDataTransport.h
@@ -32,6 +32,7 @@
#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/RefPtr.h"
+#include "wtf/ThreadSafeRefCounted.h"
#include "wtf/ThreadingPrimitives.h"
#include "wtf/Vector.h"
@@ -45,8 +46,8 @@ class SharedBuffer;
//
// This class is designed such that there is only one producer and
// one consumer.
-class PLATFORM_EXPORT ThreadSafeDataTransport final {
- DISALLOW_NEW();
+
+class PLATFORM_EXPORT ThreadSafeDataTransport final : public ThreadSafeRefCounted<ThreadSafeDataTransport> {
WTF_MAKE_NONCOPYABLE(ThreadSafeDataTransport);
public:
ThreadSafeDataTransport();

Powered by Google App Engine
This is Rietveld 408576698