| 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_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ |
| 6 #define UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ | 6 #define UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ |
| 7 | 7 |
| 8 #include "base/containers/scoped_ptr_hash_map.h" | 8 #include "base/containers/scoped_ptr_hash_map.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| 11 #include "ipc/message_filter.h" | 11 #include "ipc/message_filter.h" |
| 12 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
| 13 #include "ui/ozone/public/gpu_platform_support.h" | 13 #include "ui/ozone/public/gpu_platform_support.h" |
| 14 | 14 |
| 15 class SkBitmap; | 15 class SkBitmap; |
| 16 | 16 |
| 17 namespace base { | 17 namespace base { |
| 18 class FileDescriptor; |
| 18 class FilePath; | 19 class FilePath; |
| 19 class SingleThreadTaskRunner; | 20 class SingleThreadTaskRunner; |
| 20 } | 21 } |
| 21 | 22 |
| 22 namespace gfx { | 23 namespace gfx { |
| 23 class Point; | 24 class Point; |
| 24 class Rect; | 25 class Rect; |
| 25 } | 26 } |
| 26 | 27 |
| 27 namespace ui { | 28 namespace ui { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 68 |
| 68 // Display related IPC handlers. | 69 // Display related IPC handlers. |
| 69 void OnForceDPMSOn(); | 70 void OnForceDPMSOn(); |
| 70 void OnRefreshNativeDisplays(); | 71 void OnRefreshNativeDisplays(); |
| 71 void OnConfigureNativeDisplay(int64_t id, | 72 void OnConfigureNativeDisplay(int64_t id, |
| 72 const DisplayMode_Params& mode, | 73 const DisplayMode_Params& mode, |
| 73 const gfx::Point& origin); | 74 const gfx::Point& origin); |
| 74 void OnDisableNativeDisplay(int64_t id); | 75 void OnDisableNativeDisplay(int64_t id); |
| 75 void OnTakeDisplayControl(); | 76 void OnTakeDisplayControl(); |
| 76 void OnRelinquishDisplayControl(); | 77 void OnRelinquishDisplayControl(); |
| 77 void OnAddGraphicsDevice(const base::FilePath& path); | 78 void OnAddGraphicsDevice(const base::FilePath& path, |
| 79 const base::FileDescriptor& fd); |
| 78 void OnRemoveGraphicsDevice(const base::FilePath& path); | 80 void OnRemoveGraphicsDevice(const base::FilePath& path); |
| 79 | 81 |
| 80 void SetIOTaskRunner( | 82 void SetIOTaskRunner( |
| 81 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); | 83 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); |
| 82 | 84 |
| 83 IPC::Sender* sender_; // Not owned. | 85 IPC::Sender* sender_; // Not owned. |
| 84 DrmDeviceManager* drm_device_manager_; // Not owned. | 86 DrmDeviceManager* drm_device_manager_; // Not owned. |
| 85 DriWindowDelegateManager* window_manager_; // Not owned. | 87 DriWindowDelegateManager* window_manager_; // Not owned. |
| 86 ScreenManager* screen_manager_; // Not owned. | 88 ScreenManager* screen_manager_; // Not owned. |
| 87 | 89 |
| 88 scoped_ptr<NativeDisplayDelegateDri> ndd_; | 90 scoped_ptr<NativeDisplayDelegateDri> ndd_; |
| 89 ScopedVector<GpuPlatformSupport> handlers_; | 91 ScopedVector<GpuPlatformSupport> handlers_; |
| 90 scoped_refptr<IPC::MessageFilter> filter_; | 92 scoped_refptr<IPC::MessageFilter> filter_; |
| 91 }; | 93 }; |
| 92 | 94 |
| 93 } // namespace ui | 95 } // namespace ui |
| 94 | 96 |
| 95 #endif // UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ | 97 #endif // UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ |
| OLD | NEW |