OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_THREAD_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ |
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
| 10 #include <memory> |
| 11 |
10 #include "base/macros.h" | 12 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
13 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
14 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
15 #include "ui/gfx/vsync_provider.h" | 16 #include "ui/gfx/vsync_provider.h" |
16 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" | 17 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" |
17 #include "ui/ozone/public/surface_ozone_egl.h" | 18 #include "ui/ozone/public/surface_ozone_egl.h" |
18 | 19 |
19 namespace base { | 20 namespace base { |
20 struct FileDescriptor; | 21 struct FileDescriptor; |
21 } | 22 } |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 const base::Callback<void(int64_t, bool)>& callback); | 112 const base::Callback<void(int64_t, bool)>& callback); |
112 void SetColorCorrection(int64_t display_id, | 113 void SetColorCorrection(int64_t display_id, |
113 const std::vector<GammaRampRGBEntry>& degamma_lut, | 114 const std::vector<GammaRampRGBEntry>& degamma_lut, |
114 const std::vector<GammaRampRGBEntry>& gamma_lut, | 115 const std::vector<GammaRampRGBEntry>& gamma_lut, |
115 const std::vector<float>& correction_matrix); | 116 const std::vector<float>& correction_matrix); |
116 | 117 |
117 // base::Thread: | 118 // base::Thread: |
118 void Init() override; | 119 void Init() override; |
119 | 120 |
120 private: | 121 private: |
121 scoped_ptr<DrmDeviceManager> device_manager_; | 122 std::unique_ptr<DrmDeviceManager> device_manager_; |
122 scoped_ptr<ScanoutBufferGenerator> buffer_generator_; | 123 std::unique_ptr<ScanoutBufferGenerator> buffer_generator_; |
123 scoped_ptr<ScreenManager> screen_manager_; | 124 std::unique_ptr<ScreenManager> screen_manager_; |
124 scoped_ptr<DrmGpuDisplayManager> display_manager_; | 125 std::unique_ptr<DrmGpuDisplayManager> display_manager_; |
125 | 126 |
126 DISALLOW_COPY_AND_ASSIGN(DrmThread); | 127 DISALLOW_COPY_AND_ASSIGN(DrmThread); |
127 }; | 128 }; |
128 | 129 |
129 } // namespace ui | 130 } // namespace ui |
130 | 131 |
131 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ | 132 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ |
OLD | NEW |