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

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

Issue 1028563003: Load and apply a vcgt table from an ICC file to the internal display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix oshima@ feedback Created 5 years, 8 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_DISPLAY_MANAGER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // Takes/releases the control of the DRM devices. 48 // Takes/releases the control of the DRM devices.
49 bool TakeDisplayControl(); 49 bool TakeDisplayControl();
50 bool RelinquishDisplayControl(); 50 bool RelinquishDisplayControl();
51 51
52 // Called on DRM hotplug events to add/remove a DRM device. 52 // Called on DRM hotplug events to add/remove a DRM device.
53 void AddGraphicsDevice(const base::FilePath& path, 53 void AddGraphicsDevice(const base::FilePath& path,
54 const base::FileDescriptor& fd); 54 const base::FileDescriptor& fd);
55 void RemoveGraphicsDevice(const base::FilePath& path); 55 void RemoveGraphicsDevice(const base::FilePath& path);
56 56
57 // Set the gamma ramp for a particular display id.
58 void SetGammaRamp(int64_t id,
59 const std::vector<uint16_t>& r,
60 const std::vector<uint16_t>& g,
61 const std::vector<uint16_t>& b);
62
57 private: 63 private:
58 DrmDisplaySnapshot* FindDisplaySnapshot(int64_t id); 64 DrmDisplaySnapshot* FindDisplaySnapshot(int64_t id);
59 const DrmDisplayMode* FindDisplayMode(const gfx::Size& size, 65 const DrmDisplayMode* FindDisplayMode(const gfx::Size& size,
60 bool is_interlaced, 66 bool is_interlaced,
61 float refresh_rate); 67 float refresh_rate);
62 68
63 void RefreshDisplayList(); 69 void RefreshDisplayList();
64 bool Configure(const DrmDisplaySnapshot& output, 70 bool Configure(const DrmDisplaySnapshot& output,
65 const DrmDisplayMode* mode, 71 const DrmDisplayMode* mode,
66 const gfx::Point& origin); 72 const gfx::Point& origin);
(...skipping 15 matching lines...) Expand all
82 // of them independently for cleanup. 88 // of them independently for cleanup.
83 ScopedVector<const DisplayMode> cached_modes_; 89 ScopedVector<const DisplayMode> cached_modes_;
84 ScopedVector<DrmDisplaySnapshot> cached_displays_; 90 ScopedVector<DrmDisplaySnapshot> cached_displays_;
85 91
86 DISALLOW_COPY_AND_ASSIGN(DrmGpuDisplayManager); 92 DISALLOW_COPY_AND_ASSIGN(DrmGpuDisplayManager);
87 }; 93 };
88 94
89 } // namespace ui 95 } // namespace ui
90 96
91 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_ 97 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698