OLD | NEW |
---|---|
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 #ifndef UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_ |
6 #define UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "ui/gfx/buffer_types.h" | |
11 #include "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
12 #include "ui/gfx/geometry/rect_f.h" | 13 #include "ui/gfx/geometry/rect_f.h" |
13 #include "ui/gfx/overlay_transform.h" | 14 #include "ui/gfx/overlay_transform.h" |
14 #include "ui/ozone/ozone_export.h" | 15 #include "ui/ozone/ozone_export.h" |
15 | 16 |
16 namespace ui { | 17 namespace ui { |
17 | 18 |
18 class ScanoutBuffer; | 19 class ScanoutBuffer; |
19 | 20 |
20 struct OverlayPlane; | 21 struct OverlayPlane; |
(...skipping 14 matching lines...) Expand all Loading... | |
35 // Returns the primary plane in |overlays|. | 36 // Returns the primary plane in |overlays|. |
36 static const OverlayPlane* GetPrimaryPlane(const OverlayPlaneList& overlays); | 37 static const OverlayPlane* GetPrimaryPlane(const OverlayPlaneList& overlays); |
37 | 38 |
38 scoped_refptr<ScanoutBuffer> buffer; | 39 scoped_refptr<ScanoutBuffer> buffer; |
39 int z_order = 0; | 40 int z_order = 0; |
40 gfx::OverlayTransform plane_transform; | 41 gfx::OverlayTransform plane_transform; |
41 gfx::Rect display_bounds; | 42 gfx::Rect display_bounds; |
42 gfx::RectF crop_rect; | 43 gfx::RectF crop_rect; |
43 }; | 44 }; |
44 | 45 |
46 struct OZONE_EXPORT OverlayBufferConfiguration { | |
dnicoara
2015/11/09 20:53:23
This seems to only be used in DrmWindow. Maybe jus
kalyank
2015/11/09 21:44:05
Eventually, we want to query this information in G
dnicoara
2015/11/09 22:26:42
Acknowledged.
kalyank
2015/11/19 16:10:41
Removed this and saved needed data as part of over
| |
47 OverlayBufferConfiguration(gfx::BufferFormat buffer_format, | |
48 gfx::Size buffer_size, | |
dnicoara
2015/11/09 20:53:23
nit: const gfx::Size&
| |
49 bool handle_scaling); | |
50 | |
51 ~OverlayBufferConfiguration(); | |
52 | |
53 // This is optimal storage format for the buffer. | |
54 gfx::BufferFormat buffer_format; | |
55 // This is the required buffer size. | |
56 gfx::Size buffer_size; | |
57 // Hardware doesn't have support for plane scaling and the buffer needs to | |
58 // be scaled using other means i.e. 3D Engine, VPP etc. | |
59 bool handle_scaling; | |
60 }; | |
61 | |
45 } // namespace ui | 62 } // namespace ui |
46 | 63 |
47 #endif // UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_ | 64 #endif // UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_ |
OLD | NEW |