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

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

Issue 556073003: [Ozone-DRI] Do proper bounds checks when moving the cursor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@restore-cursor
Patch Set: . 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"
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
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
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/gpu_platform_support_gbm.h ('k') | ui/ozone/platform/dri/ozone_platform_dri.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698