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

Unified Diff: ui/ozone/platform/drm/gpu/drm_device.h

Issue 1311043016: Switch DRM platform to using a separate thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mv-drm-calls-on-thread2
Patch Set: update & fix clang Created 5 years, 2 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/platform/drm/gbm.gypi ('k') | ui/ozone/platform/drm/gpu/drm_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_device.h
diff --git a/ui/ozone/platform/drm/gpu/drm_device.h b/ui/ozone/platform/drm/gpu/drm_device.h
index 8130f549761642a8d7a0ed60cdbcfad2da122fcc..cadc429e4fa30540aae8e7ec32f2a0a1f3733195 100644
--- a/ui/ozone/platform/drm/gpu/drm_device.h
+++ b/ui/ozone/platform/drm/gpu/drm_device.h
@@ -53,10 +53,6 @@ class OZONE_EXPORT DrmDevice : public base::RefCountedThreadSafe<DrmDevice> {
// Open device.
virtual bool Initialize(bool use_atomic);
- // |task_runner| will be used to asynchronously page flip.
- virtual void InitializeTaskRunner(
- const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
-
// Get the CRTC state. This is generally used to save state before using the
// CRTC. When the user finishes using the CRTC, the user should restore the
// CRTC to it's initial state. Use |SetCrtc| to restore the state.
@@ -196,13 +192,10 @@ class OZONE_EXPORT DrmDevice : public base::RefCountedThreadSafe<DrmDevice> {
// DRM device.
base::File file_;
- // Helper thread to perform IO listener operations.
- scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
+ scoped_ptr<PageFlipManager> page_flip_manager_;
// Watcher for |fd_| listening for page flip events.
- scoped_refptr<IOWatcher> watcher_;
-
- scoped_refptr<PageFlipManager> page_flip_manager_;
+ scoped_ptr<IOWatcher> watcher_;
bool is_primary_device_;
« no previous file with comments | « ui/ozone/platform/drm/gbm.gypi ('k') | ui/ozone/platform/drm/gpu/drm_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698