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

Unified Diff: ui/ozone/public/surface_factory_ozone.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
« no previous file with comments | « ui/ozone/public/native_pixmap.h ('k') | ui/ozone/public/surface_factory_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/public/surface_factory_ozone.h
diff --git a/ui/ozone/public/surface_factory_ozone.h b/ui/ozone/public/surface_factory_ozone.h
index 4e223bf1fc8b8abc9252978c29a53e7aaf5179ff..9eb10fffb27b98c6ad53fbc146c6ece3bc957cfd 100644
--- a/ui/ozone/public/surface_factory_ozone.h
+++ b/ui/ozone/public/surface_factory_ozone.h
@@ -8,6 +8,7 @@
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "base/native_library.h"
+#include "base/threading/thread_checker.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect.h"
@@ -167,6 +168,7 @@ class OZONE_BASE_EXPORT SurfaceFactoryOzone {
virtual bool CanCreateNativePixmap(BufferUsage usage);
private:
+ base::ThreadChecker thread_checker_;
reveman 2015/04/01 19:22:20 A thread checker is good but please move it to the
dshwang 2015/04/02 07:56:05 This thread check is added to check SurfaceFactory
reveman 2015/04/02 12:35:39 GetInstance() is static. The thread usage restrict
dshwang 2015/04/02 14:26:27 Alright, I move thread check to each implementatio
static SurfaceFactoryOzone* impl_; // not owned
};
« no previous file with comments | « ui/ozone/public/native_pixmap.h ('k') | ui/ozone/public/surface_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698