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

Side by Side Diff: ui/ozone/platform/dri/gpu_platform_support_gbm.cc

Issue 543643003: ozone: Plumb animated cursors from BitmapCursorFactoryOzone to DriSurfaceFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix dri_surface_factory_unittest Created 6 years, 3 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 #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
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
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/gpu_platform_support_gbm.h ('k') | ui/ozone/platform/dri/gpu_platform_support_host_gbm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698