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

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

Issue 1285183008: Ozone integration. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add missing license header Created 5 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_
7
8 #include <vector>
9
10 #include "base/memory/ref_counted.h"
11 #include "ui/gfx/geometry/rect.h"
12 #include "ui/gfx/overlay_transform.h"
13 #include "ui/ozone/ozone_export.h"
14
15 namespace ui {
16
17 class ScanoutBuffer;
18
19 struct OverlayPlane;
20 typedef std::vector<OverlayPlane> OverlayPlaneList;
21
22 struct OZONE_EXPORT OverlayPlane {
23 // Simpler constructor for the primary plane.
24 explicit OverlayPlane(scoped_refptr<ScanoutBuffer> buffer);
25
26 OverlayPlane(scoped_refptr<ScanoutBuffer> buffer,
27 int z_order,
28 gfx::OverlayTransform plane_transform,
29 const gfx::Rect& display_bounds,
30 const gfx::RectF& crop_rect);
31
32 ~OverlayPlane();
33
34 // Returns the primary plane in |overlays|.
35 static const OverlayPlane* GetPrimaryPlane(const OverlayPlaneList& overlays);
36
37 scoped_refptr<ScanoutBuffer> buffer;
38 int z_order = 0;
39 gfx::OverlayTransform plane_transform;
40 gfx::Rect display_bounds;
41 gfx::RectF crop_rect;
42 };
43
44 } // namespace ui
45
46 #endif // UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/hardware_display_plane_manager_unittest.cc ('k') | ui/ozone/platform/drm/gpu/overlay_plane.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698