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

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

Issue 937793002: [Ozone-Dri] Remove unneeded param to DriWindowDelegateImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/dri_window_delegate_impl.h" 5 #include "ui/ozone/platform/dri/dri_window_delegate_impl.h"
6 6
7 #include "base/trace_event/trace_event.h" 7 #include "base/trace_event/trace_event.h"
8 #include "third_party/skia/include/core/SkBitmap.h" 8 #include "third_party/skia/include/core/SkBitmap.h"
9 #include "third_party/skia/include/core/SkDevice.h" 9 #include "third_party/skia/include/core/SkDevice.h"
10 #include "third_party/skia/include/core/SkSurface.h" 10 #include "third_party/skia/include/core/SkSurface.h"
11 #include "ui/ozone/platform/dri/dri_buffer.h" 11 #include "ui/ozone/platform/dri/dri_buffer.h"
12 #include "ui/ozone/platform/dri/dri_window_delegate_manager.h"
13 #include "ui/ozone/platform/dri/dri_wrapper.h" 12 #include "ui/ozone/platform/dri/dri_wrapper.h"
14 #include "ui/ozone/platform/dri/drm_device_manager.h" 13 #include "ui/ozone/platform/dri/drm_device_manager.h"
15 #include "ui/ozone/platform/dri/screen_manager.h" 14 #include "ui/ozone/platform/dri/screen_manager.h"
16 15
17 namespace ui { 16 namespace ui {
18 17
19 namespace { 18 namespace {
20 19
21 #ifndef DRM_CAP_CURSOR_WIDTH 20 #ifndef DRM_CAP_CURSOR_WIDTH
22 #define DRM_CAP_CURSOR_WIDTH 0x8 21 #define DRM_CAP_CURSOR_WIDTH 0x8
(...skipping 16 matching lines...) Expand all
39 canvas->getDeviceSize().height()); 38 canvas->getDeviceSize().height());
40 canvas->clipRect(clip, SkRegion::kReplace_Op); 39 canvas->clipRect(clip, SkRegion::kReplace_Op);
41 canvas->drawBitmapRectToRect(image, &damage, damage); 40 canvas->drawBitmapRectToRect(image, &damage, damage);
42 } 41 }
43 42
44 } // namespace 43 } // namespace
45 44
46 DriWindowDelegateImpl::DriWindowDelegateImpl( 45 DriWindowDelegateImpl::DriWindowDelegateImpl(
47 gfx::AcceleratedWidget widget, 46 gfx::AcceleratedWidget widget,
48 DrmDeviceManager* device_manager, 47 DrmDeviceManager* device_manager,
49 DriWindowDelegateManager* window_manager,
50 ScreenManager* screen_manager) 48 ScreenManager* screen_manager)
51 : widget_(widget), 49 : widget_(widget),
52 device_manager_(device_manager), 50 device_manager_(device_manager),
53 window_manager_(window_manager),
54 screen_manager_(screen_manager), 51 screen_manager_(screen_manager),
55 controller_(NULL), 52 controller_(NULL),
56 cursor_frontbuffer_(0), 53 cursor_frontbuffer_(0),
57 cursor_frame_(0), 54 cursor_frame_(0),
58 cursor_frame_delay_ms_(0) { 55 cursor_frame_delay_ms_(0) {
59 } 56 }
60 57
61 DriWindowDelegateImpl::~DriWindowDelegateImpl() { 58 DriWindowDelegateImpl::~DriWindowDelegateImpl() {
62 } 59 }
63 60
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 192
196 void DriWindowDelegateImpl::UpdateWidgetToDrmDeviceMapping() { 193 void DriWindowDelegateImpl::UpdateWidgetToDrmDeviceMapping() {
197 scoped_refptr<DriWrapper> drm = nullptr; 194 scoped_refptr<DriWrapper> drm = nullptr;
198 if (controller_) 195 if (controller_)
199 drm = controller_->GetAllocationDriWrapper(); 196 drm = controller_->GetAllocationDriWrapper();
200 197
201 device_manager_->UpdateDrmDevice(widget_, drm); 198 device_manager_->UpdateDrmDevice(widget_, drm);
202 } 199 }
203 200
204 } // namespace ui 201 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri_window_delegate_impl.h ('k') | ui/ozone/platform/dri/dri_window_delegate_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698