OLD | NEW |
---|---|
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
147 virtual bool CreateDumbBuffer(const SkImageInfo& info, | 147 virtual bool CreateDumbBuffer(const SkImageInfo& info, |
148 uint32_t* handle, | 148 uint32_t* handle, |
149 uint32_t* stride, | 149 uint32_t* stride, |
150 void** pixels); | 150 void** pixels); |
151 | 151 |
152 virtual void DestroyDumbBuffer(const SkImageInfo& info, | 152 virtual void DestroyDumbBuffer(const SkImageInfo& info, |
153 uint32_t handle, | 153 uint32_t handle, |
154 uint32_t stride, | 154 uint32_t stride, |
155 void* pixels); | 155 void* pixels); |
156 | 156 |
157 virtual bool CommitProperties(drmModePropertySet* properties, | |
dnicoara
2015/03/09 20:10:40
This will need to be mocked in test/mock_drm_devic
achaulk
2015/03/09 20:23:48
Done.
| |
158 uint32_t flags, | |
dnicoara
2015/03/09 20:10:40
|flags| and |user_ptr| are never set to different
achaulk
2015/03/09 20:23:48
They will likely be set to handle some sort of cal
dnicoara
2015/03/09 20:42:58
Are you planing on adding more functionality part
achaulk
2015/03/09 20:55:18
Not yet, since we don't even have a complete defin
dnicoara
2015/03/09 20:57:26
For the callback, we can do the same as SchedulePa
achaulk
2015/03/09 21:41:00
Sure, I'll just reuse the same one until we know m
| |
159 void* user_ptr); | |
160 | |
157 // Drm master related | 161 // Drm master related |
158 virtual bool SetMaster(); | 162 virtual bool SetMaster(); |
159 virtual bool DropMaster(); | 163 virtual bool DropMaster(); |
160 | 164 |
161 int get_fd() const { return file_.GetPlatformFile(); } | 165 int get_fd() const { return file_.GetPlatformFile(); } |
162 | 166 |
163 base::FilePath device_path() const { return device_path_; } | 167 base::FilePath device_path() const { return device_path_; } |
164 | 168 |
165 HardwareDisplayPlaneManager* plane_manager() { return plane_manager_.get(); } | 169 HardwareDisplayPlaneManager* plane_manager() { return plane_manager_.get(); } |
166 | 170 |
(...skipping 18 matching lines...) Expand all Loading... | |
185 | 189 |
186 // Watcher for |fd_| listening for page flip events. | 190 // Watcher for |fd_| listening for page flip events. |
187 scoped_refptr<IOWatcher> watcher_; | 191 scoped_refptr<IOWatcher> watcher_; |
188 | 192 |
189 DISALLOW_COPY_AND_ASSIGN(DrmDevice); | 193 DISALLOW_COPY_AND_ASSIGN(DrmDevice); |
190 }; | 194 }; |
191 | 195 |
192 } // namespace ui | 196 } // namespace ui |
193 | 197 |
194 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ | 198 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ |
OLD | NEW |