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

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

Issue 2894523007: Use display::DisplayMode in ozone/drm/gpu (Closed)
Patch Set: Created 3 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 <utility> 9 #include <utility>
10 10
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "third_party/skia/include/core/SkCanvas.h" 12 #include "third_party/skia/include/core/SkCanvas.h"
13 #include "ui/display/types/display_snapshot.h" 13 #include "ui/display/types/display_snapshot_mojo.h"
dnicoara 2017/05/23 18:48:20 Is this required?
14 #include "ui/gfx/geometry/point.h" 14 #include "ui/gfx/geometry/point.h"
15 #include "ui/gfx/geometry/rect.h" 15 #include "ui/gfx/geometry/rect.h"
16 #include "ui/gfx/geometry/size.h" 16 #include "ui/gfx/geometry/size.h"
17 #include "ui/ozone/platform/drm/common/drm_util.h" 17 #include "ui/ozone/platform/drm/common/drm_util.h"
18 #include "ui/ozone/platform/drm/gpu/crtc_controller.h" 18 #include "ui/ozone/platform/drm/gpu/crtc_controller.h"
19 #include "ui/ozone/platform/drm/gpu/drm_console_buffer.h" 19 #include "ui/ozone/platform/drm/gpu/drm_console_buffer.h"
20 #include "ui/ozone/platform/drm/gpu/drm_device.h" 20 #include "ui/ozone/platform/drm/gpu/drm_device.h"
21 #include "ui/ozone/platform/drm/gpu/drm_window.h" 21 #include "ui/ozone/platform/drm/gpu/drm_window.h"
22 #include "ui/ozone/platform/drm/gpu/hardware_display_controller.h" 22 #include "ui/ozone/platform/drm/gpu/hardware_display_controller.h"
23 #include "ui/ozone/platform/drm/gpu/scanout_buffer.h" 23 #include "ui/ozone/platform/drm/gpu/scanout_buffer.h"
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 DrmWindow* ScreenManager::FindWindowAt(const gfx::Rect& bounds) const { 402 DrmWindow* ScreenManager::FindWindowAt(const gfx::Rect& bounds) const {
403 for (auto& pair : window_map_) { 403 for (auto& pair : window_map_) {
404 if (pair.second->bounds() == bounds) 404 if (pair.second->bounds() == bounds)
405 return pair.second.get(); 405 return pair.second.get();
406 } 406 }
407 407
408 return nullptr; 408 return nullptr;
409 } 409 }
410 410
411 } // namespace ui 411 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698