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

Unified Diff: ui/ozone/platform/test/test_window_manager.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: just add thread check Created 5 years, 8 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/platform/test/test_window_manager.h
diff --git a/ui/ozone/platform/test/test_window_manager.h b/ui/ozone/platform/test/test_window_manager.h
index 69be81d91e33e44319c3da9dcf2367b7a9e5ad09..b651207e163cd5cc1b02db08e04ed7b6cc08045e 100644
--- a/ui/ozone/platform/test/test_window_manager.h
+++ b/ui/ozone/platform/test/test_window_manager.h
@@ -8,6 +8,7 @@
#include "base/files/file_path.h"
#include "base/id_map.h"
#include "base/memory/scoped_ptr.h"
+#include "base/threading/thread_checker.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/ozone/platform/test/test_window.h"
#include "ui/ozone/public/surface_factory_ozone.h"
@@ -42,6 +43,7 @@ class TestWindowManager : public SurfaceFactoryOzone {
base::FilePath location_;
IDMap<TestWindow> windows_;
+ base::ThreadChecker thread_checker_;
DISALLOW_COPY_AND_ASSIGN(TestWindowManager);
};

Powered by Google App Engine
This is Rietveld 408576698