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

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

Issue 1124063003: drm: GPU process manages VGEM fd. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use LazyInstance 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_GPU_PLATFORM_SUPPORT_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_PLATFORM_SUPPORT_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_PLATFORM_SUPPORT_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_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"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // Display related IPC handlers. 69 // Display related IPC handlers.
70 void OnRefreshNativeDisplays(); 70 void OnRefreshNativeDisplays();
71 void OnConfigureNativeDisplay(int64_t id, 71 void OnConfigureNativeDisplay(int64_t id,
72 const DisplayMode_Params& mode, 72 const DisplayMode_Params& mode,
73 const gfx::Point& origin); 73 const gfx::Point& origin);
74 void OnDisableNativeDisplay(int64_t id); 74 void OnDisableNativeDisplay(int64_t id);
75 void OnTakeDisplayControl(); 75 void OnTakeDisplayControl();
76 void OnRelinquishDisplayControl(); 76 void OnRelinquishDisplayControl();
77 void OnAddGraphicsDevice(const base::FilePath& path, 77 void OnAddGraphicsDevice(const base::FilePath& path,
78 const base::FileDescriptor& fd); 78 const base::FileDescriptor& fd,
79 bool is_vgem);
79 void OnRemoveGraphicsDevice(const base::FilePath& path); 80 void OnRemoveGraphicsDevice(const base::FilePath& path);
80 void OnGetHDCPState(int64_t display_id); 81 void OnGetHDCPState(int64_t display_id);
81 void OnSetHDCPState(int64_t display_id, HDCPState state); 82 void OnSetHDCPState(int64_t display_id, HDCPState state);
82 void OnSetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut); 83 void OnSetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut);
83 84
84 void SetIOTaskRunner( 85 void SetIOTaskRunner(
85 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); 86 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner);
86 87
87 IPC::Sender* sender_; // Not owned. 88 IPC::Sender* sender_; // Not owned.
88 DrmDeviceManager* drm_device_manager_; // Not owned. 89 DrmDeviceManager* drm_device_manager_; // Not owned.
89 ScreenManager* screen_manager_; // Not owned. 90 ScreenManager* screen_manager_; // Not owned.
90 91
91 scoped_ptr<DrmGpuDisplayManager> ndd_; 92 scoped_ptr<DrmGpuDisplayManager> ndd_;
92 ScopedVector<GpuPlatformSupport> handlers_; 93 ScopedVector<GpuPlatformSupport> handlers_;
93 scoped_refptr<IPC::MessageFilter> filter_; 94 scoped_refptr<IPC::MessageFilter> filter_;
94 }; 95 };
95 96
96 } // namespace ui 97 } // namespace ui
97 98
98 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_PLATFORM_SUPPORT_H_ 99 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_PLATFORM_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698