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

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

Issue 1056493002: gbm: make NativePixmap RefCountedThreadSafe (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/public/native_pixmap.h
diff --git a/ui/ozone/public/native_pixmap.h b/ui/ozone/public/native_pixmap.h
index 8342ca2d867a8bbda039cabeb260115ba92a1b9e..d3369c0b3a9f0f4049d0760c8abdd0bce73153de 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::RefCounted<NativePixmap> {
+class NativePixmap : public base::RefCountedThreadSafe<NativePixmap> {
public:
NativePixmap() {}
@@ -22,7 +22,8 @@ class NativePixmap : public base::RefCounted<NativePixmap> {
protected:
virtual ~NativePixmap() {}
- friend class base::RefCounted<NativePixmap>;
+ private:
+ friend class base::RefCountedThreadSafe<NativePixmap>;
DISALLOW_COPY_AND_ASSIGN(NativePixmap);
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698