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

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: . Created 5 years, 3 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/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 7a1a98f50d2dbabbe6a30500d27cc6ef10ce31da..0e72c992ece48e178c7b6d94221e5684a988179a 100644
--- a/ui/ozone/platform/drm/gpu/drm_device.h
+++ b/ui/ozone/platform/drm/gpu/drm_device.h
@@ -49,10 +49,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.
@@ -192,13 +188,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_;
DISALLOW_COPY_AND_ASSIGN(DrmDevice);
};

Powered by Google App Engine
This is Rietveld 408576698