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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_device.h

Issue 1147553003: ozone: Add atomic initialization path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove flag for now Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class OZONE_EXPORT DrmDevice : public base::RefCountedThreadSafe<DrmDevice> { 42 class OZONE_EXPORT DrmDevice : public base::RefCountedThreadSafe<DrmDevice> {
43 public: 43 public:
44 typedef base::Callback<void(unsigned int /* frame */, 44 typedef base::Callback<void(unsigned int /* frame */,
45 unsigned int /* seconds */, 45 unsigned int /* seconds */,
46 unsigned int /* useconds */)> PageFlipCallback; 46 unsigned int /* useconds */)> PageFlipCallback;
47 47
48 DrmDevice(const base::FilePath& device_path); 48 DrmDevice(const base::FilePath& device_path);
49 DrmDevice(const base::FilePath& device_path, base::File file); 49 DrmDevice(const base::FilePath& device_path, base::File file);
50 50
51 // Open device. 51 // Open device.
52 virtual bool Initialize(); 52 virtual bool Initialize(bool use_atomic);
53 53
54 // |task_runner| will be used to asynchronously page flip. 54 // |task_runner| will be used to asynchronously page flip.
55 virtual void InitializeTaskRunner( 55 virtual void InitializeTaskRunner(
56 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner); 56 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
57 57
58 // Get the CRTC state. This is generally used to save state before using the 58 // Get the CRTC state. This is generally used to save state before using the
59 // CRTC. When the user finishes using the CRTC, the user should restore the 59 // CRTC. When the user finishes using the CRTC, the user should restore the
60 // CRTC to it's initial state. Use |SetCrtc| to restore the state. 60 // CRTC to it's initial state. Use |SetCrtc| to restore the state.
61 virtual ScopedDrmCrtcPtr GetCrtc(uint32_t crtc_id); 61 virtual ScopedDrmCrtcPtr GetCrtc(uint32_t crtc_id);
62 62
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 scoped_refptr<IOWatcher> watcher_; 202 scoped_refptr<IOWatcher> watcher_;
203 203
204 scoped_refptr<PageFlipManager> page_flip_manager_; 204 scoped_refptr<PageFlipManager> page_flip_manager_;
205 205
206 DISALLOW_COPY_AND_ASSIGN(DrmDevice); 206 DISALLOW_COPY_AND_ASSIGN(DrmDevice);
207 }; 207 };
208 208
209 } // namespace ui 209 } // namespace ui
210 210
211 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ 211 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/drm_device.cc » ('j') | ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698