Chromium Code Reviews| 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 #include "ui/ozone/platform/drm/gpu/drm_thread.h" | 5 #include "ui/ozone/platform/drm/gpu/drm_thread.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 168 } | 168 } |
| 169 | 169 |
| 170 void DrmThread::SetCursor(gfx::AcceleratedWidget widget, | 170 void DrmThread::SetCursor(gfx::AcceleratedWidget widget, |
| 171 const std::vector<SkBitmap>& bitmaps, | 171 const std::vector<SkBitmap>& bitmaps, |
| 172 const gfx::Point& location, | 172 const gfx::Point& location, |
| 173 int frame_delay_ms) { | 173 int frame_delay_ms) { |
| 174 screen_manager_->GetWindow(widget) | 174 screen_manager_->GetWindow(widget) |
| 175 ->SetCursor(bitmaps, location, frame_delay_ms); | 175 ->SetCursor(bitmaps, location, frame_delay_ms); |
| 176 } | 176 } |
| 177 | 177 |
| 178 void DrmThread::MoveCursor(gfx::AcceleratedWidget widget, | 178 void DrmThread::MoveCursor(const gfx::AcceleratedWidget& widget, |
|
dnicoara
2016/06/21 14:14:16
Same here.
rjkroege
2016/06/21 17:20:52
same comment.
| |
| 179 const gfx::Point& location) { | 179 const gfx::Point& location) { |
| 180 screen_manager_->GetWindow(widget)->MoveCursor(location); | 180 screen_manager_->GetWindow(widget)->MoveCursor(location); |
| 181 } | 181 } |
| 182 | 182 |
| 183 void DrmThread::CheckOverlayCapabilities( | 183 void DrmThread::CheckOverlayCapabilities( |
| 184 gfx::AcceleratedWidget widget, | 184 gfx::AcceleratedWidget widget, |
| 185 const std::vector<OverlayCheck_Params>& overlays, | 185 const std::vector<OverlayCheck_Params>& overlays, |
| 186 const base::Callback<void(gfx::AcceleratedWidget, | 186 const base::Callback<void(gfx::AcceleratedWidget, |
| 187 const std::vector<OverlayCheck_Params>&)>& | 187 const std::vector<OverlayCheck_Params>&)>& |
| 188 callback) { | 188 callback) { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 247 void DrmThread::SetColorCorrection( | 247 void DrmThread::SetColorCorrection( |
| 248 int64_t display_id, | 248 int64_t display_id, |
| 249 const std::vector<GammaRampRGBEntry>& degamma_lut, | 249 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 250 const std::vector<GammaRampRGBEntry>& gamma_lut, | 250 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 251 const std::vector<float>& correction_matrix) { | 251 const std::vector<float>& correction_matrix) { |
| 252 display_manager_->SetColorCorrection(display_id, degamma_lut, gamma_lut, | 252 display_manager_->SetColorCorrection(display_id, degamma_lut, gamma_lut, |
| 253 correction_matrix); | 253 correction_matrix); |
| 254 } | 254 } |
| 255 | 255 |
| 256 } // namespace ui | 256 } // namespace ui |
| OLD | NEW |