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 #include "ui/ozone/platform/dri/gpu_platform_support_gbm.h" | 5 #include "ui/ozone/platform/dri/gpu_platform_support_gbm.h" |
6 | 6 |
7 #include "ipc/ipc_message_macros.h" | 7 #include "ipc/ipc_message_macros.h" |
8 #include "ui/ozone/common/gpu/ozone_gpu_messages.h" | 8 #include "ui/ozone/common/gpu/ozone_gpu_messages.h" |
9 #include "ui/ozone/platform/dri/dri_surface_factory.h" | 9 #include "ui/ozone/platform/dri/dri_surface_factory.h" |
10 #include "ui/ozone/platform/dri/dri_window_delegate_impl.h" | 10 #include "ui/ozone/platform/dri/dri_window_delegate_impl.h" |
11 #include "ui/ozone/platform/dri/dri_window_manager.h" | 11 #include "ui/ozone/platform/dri/dri_window_delegate_manager.h" |
12 | 12 |
13 namespace ui { | 13 namespace ui { |
14 | 14 |
15 GpuPlatformSupportGbm::GpuPlatformSupportGbm(DriSurfaceFactory* dri, | 15 GpuPlatformSupportGbm::GpuPlatformSupportGbm( |
16 DriWindowManager* window_manager, | 16 DriSurfaceFactory* dri, |
17 ScreenManager* screen_manager) | 17 DriWindowDelegateManager* window_manager, |
| 18 ScreenManager* screen_manager) |
18 : sender_(NULL), | 19 : sender_(NULL), |
19 dri_(dri), | 20 dri_(dri), |
20 window_manager_(window_manager), | 21 window_manager_(window_manager), |
21 screen_manager_(screen_manager) { | 22 screen_manager_(screen_manager) { |
22 } | 23 } |
23 | 24 |
24 GpuPlatformSupportGbm::~GpuPlatformSupportGbm() {} | 25 GpuPlatformSupportGbm::~GpuPlatformSupportGbm() {} |
25 | 26 |
26 void GpuPlatformSupportGbm::AddHandler(scoped_ptr<GpuPlatformSupport> handler) { | 27 void GpuPlatformSupportGbm::AddHandler(scoped_ptr<GpuPlatformSupport> handler) { |
27 handlers_.push_back(handler.release()); | 28 handlers_.push_back(handler.release()); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 int frame_delay_ms) { | 89 int frame_delay_ms) { |
89 dri_->SetHardwareCursor(widget, bitmaps, location, frame_delay_ms); | 90 dri_->SetHardwareCursor(widget, bitmaps, location, frame_delay_ms); |
90 } | 91 } |
91 | 92 |
92 void GpuPlatformSupportGbm::OnCursorMove(gfx::AcceleratedWidget widget, | 93 void GpuPlatformSupportGbm::OnCursorMove(gfx::AcceleratedWidget widget, |
93 const gfx::Point& location) { | 94 const gfx::Point& location) { |
94 dri_->MoveHardwareCursor(widget, location); | 95 dri_->MoveHardwareCursor(widget, location); |
95 } | 96 } |
96 | 97 |
97 } // namespace ui | 98 } // namespace ui |
OLD | NEW |