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

Side by Side Diff: ui/ozone/platform/drm/gpu/screen_manager.cc

Issue 1133053003: [Ozone-Drm] Move DRM utilities from gpu/ to common/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/drm/gpu/screen_manager.h" 5 #include "ui/ozone/platform/drm/gpu/screen_manager.h"
6 6
7 #include <xf86drmMode.h> 7 #include <xf86drmMode.h>
8 8
9 #include "third_party/skia/include/core/SkCanvas.h" 9 #include "third_party/skia/include/core/SkCanvas.h"
10 #include "ui/gfx/geometry/point.h" 10 #include "ui/gfx/geometry/point.h"
11 #include "ui/gfx/geometry/rect.h" 11 #include "ui/gfx/geometry/rect.h"
12 #include "ui/gfx/geometry/size.h" 12 #include "ui/gfx/geometry/size.h"
13 #include "ui/ozone/platform/drm/common/drm_util.h"
13 #include "ui/ozone/platform/drm/gpu/crtc_controller.h" 14 #include "ui/ozone/platform/drm/gpu/crtc_controller.h"
14 #include "ui/ozone/platform/drm/gpu/drm_console_buffer.h" 15 #include "ui/ozone/platform/drm/gpu/drm_console_buffer.h"
15 #include "ui/ozone/platform/drm/gpu/drm_device.h" 16 #include "ui/ozone/platform/drm/gpu/drm_device.h"
16 #include "ui/ozone/platform/drm/gpu/drm_util.h"
17 #include "ui/ozone/platform/drm/gpu/drm_window.h" 17 #include "ui/ozone/platform/drm/gpu/drm_window.h"
18 #include "ui/ozone/platform/drm/gpu/hardware_display_controller.h" 18 #include "ui/ozone/platform/drm/gpu/hardware_display_controller.h"
19 #include "ui/ozone/platform/drm/gpu/scanout_buffer.h" 19 #include "ui/ozone/platform/drm/gpu/scanout_buffer.h"
20 20
21 namespace ui { 21 namespace ui {
22 22
23 namespace { 23 namespace {
24 24
25 // Copies the contents of the saved framebuffer from the CRTCs in |controller| 25 // Copies the contents of the saved framebuffer from the CRTCs in |controller|
26 // to the new modeset buffer |buffer|. 26 // to the new modeset buffer |buffer|.
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 DrmWindow* ScreenManager::FindWindowAt(const gfx::Rect& bounds) const { 355 DrmWindow* ScreenManager::FindWindowAt(const gfx::Rect& bounds) const {
356 for (auto pair : window_map_) { 356 for (auto pair : window_map_) {
357 if (pair.second->bounds() == bounds) 357 if (pair.second->bounds() == bounds)
358 return pair.second; 358 return pair.second;
359 } 359 }
360 360
361 return nullptr; 361 return nullptr;
362 } 362 }
363 363
364 } // namespace ui 364 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/scoped_drm_types.cc ('k') | ui/ozone/platform/drm/ozone_platform_drm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698