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

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

Issue 2794343003: cc: Allow overlay candidates with transforms. (Closed)
Patch Set: OverlayCheck_PArams default transform to none. 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/hardware_display_plane_manager_legacy.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/overlay_plane.h" 5 #include "ui/ozone/platform/drm/gpu/overlay_plane.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "ui/ozone/platform/drm/gpu/scanout_buffer.h" 9 #include "ui/ozone/platform/drm/gpu/scanout_buffer.h"
10 10
11 namespace ui { 11 namespace ui {
12 12
13 OverlayPlane::OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer) 13 OverlayPlane::OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer)
14 : buffer(buffer), 14 : buffer(buffer),
15 plane_transform(gfx::OVERLAY_TRANSFORM_INVALID), 15 plane_transform(gfx::OVERLAY_TRANSFORM_NONE),
16 display_bounds(gfx::Point(), buffer->GetSize()), 16 display_bounds(gfx::Point(), buffer->GetSize()),
17 crop_rect(0, 0, 1, 1) {} 17 crop_rect(0, 0, 1, 1) {}
18 18
19 OverlayPlane::OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer, 19 OverlayPlane::OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer,
20 int z_order, 20 int z_order,
21 gfx::OverlayTransform plane_transform, 21 gfx::OverlayTransform plane_transform,
22 const gfx::Rect& display_bounds, 22 const gfx::Rect& display_bounds,
23 const gfx::RectF& crop_rect) 23 const gfx::RectF& crop_rect)
24 : buffer(buffer), 24 : buffer(buffer),
25 z_order(z_order), 25 z_order(z_order),
(...skipping 30 matching lines...) Expand all
56 const OverlayPlaneList& overlays) { 56 const OverlayPlaneList& overlays) {
57 for (size_t i = 0; i < overlays.size(); ++i) { 57 for (size_t i = 0; i < overlays.size(); ++i) {
58 if (overlays[i].z_order == 0) 58 if (overlays[i].z_order == 0)
59 return &overlays[i]; 59 return &overlays[i];
60 } 60 }
61 61
62 return nullptr; 62 return nullptr;
63 } 63 }
64 64
65 } // namespace ui 65 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/hardware_display_plane_manager_legacy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698