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

Unified Diff: ui/ozone/public/native_pixmap.h

Issue 1050923003: zero-copy: Clarify to allocate/destroy GpuMemoryBuffer on any thread and use it on the main thread o (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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: ui/ozone/public/native_pixmap.h
diff --git a/ui/ozone/public/native_pixmap.h b/ui/ozone/public/native_pixmap.h
index d3369c0b3a9f0f4049d0760c8abdd0bce73153de..8342ca2d867a8bbda039cabeb260115ba92a1b9e 100644
--- a/ui/ozone/public/native_pixmap.h
+++ b/ui/ozone/public/native_pixmap.h
@@ -11,7 +11,7 @@ namespace ui {
// This represents a buffer that can be directly imported via GL for
// rendering, or exported via dma-buf fds.
-class NativePixmap : public base::RefCountedThreadSafe<NativePixmap> {
+class NativePixmap : public base::RefCounted<NativePixmap> {
public:
NativePixmap() {}
@@ -22,8 +22,7 @@ class NativePixmap : public base::RefCountedThreadSafe<NativePixmap> {
protected:
virtual ~NativePixmap() {}
- private:
- friend class base::RefCountedThreadSafe<NativePixmap>;
+ friend class base::RefCounted<NativePixmap>;
DISALLOW_COPY_AND_ASSIGN(NativePixmap);
};

Powered by Google App Engine
This is Rietveld 408576698