| 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" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 window_manager_->RemoveWindowDelegate(widget); | 76 window_manager_->RemoveWindowDelegate(widget); |
| 77 delegate->Shutdown(); | 77 delegate->Shutdown(); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void GpuPlatformSupportGbm::OnWindowBoundsChanged(gfx::AcceleratedWidget widget, | 80 void GpuPlatformSupportGbm::OnWindowBoundsChanged(gfx::AcceleratedWidget widget, |
| 81 const gfx::Rect& bounds) { | 81 const gfx::Rect& bounds) { |
| 82 window_manager_->GetWindowDelegate(widget)->OnBoundsChanged(bounds); | 82 window_manager_->GetWindowDelegate(widget)->OnBoundsChanged(bounds); |
| 83 } | 83 } |
| 84 | 84 |
| 85 void GpuPlatformSupportGbm::OnCursorSet(gfx::AcceleratedWidget widget, | 85 void GpuPlatformSupportGbm::OnCursorSet(gfx::AcceleratedWidget widget, |
| 86 const SkBitmap& bitmap, | 86 const std::vector<SkBitmap>& bitmaps, |
| 87 const gfx::Point& location) { | 87 const gfx::Point& location, |
| 88 dri_->SetHardwareCursor(widget, bitmap, location); | 88 int frame_delay_ms) { |
| 89 dri_->SetHardwareCursor(widget, bitmaps, location, frame_delay_ms); |
| 89 } | 90 } |
| 90 | 91 |
| 91 void GpuPlatformSupportGbm::OnCursorMove(gfx::AcceleratedWidget widget, | 92 void GpuPlatformSupportGbm::OnCursorMove(gfx::AcceleratedWidget widget, |
| 92 const gfx::Point& location) { | 93 const gfx::Point& location) { |
| 93 dri_->MoveHardwareCursor(widget, location); | 94 dri_->MoveHardwareCursor(widget, location); |
| 94 } | 95 } |
| 95 | 96 |
| 96 } // namespace ui | 97 } // namespace ui |
| OLD | NEW |