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/bind.h" | 10 #include "base/bind.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 struct OverlayPlane { | 23 struct OverlayPlane { |
24 // Simpler constructor for the primary plane. | 24 // Simpler constructor for the primary plane. |
25 explicit OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer); | 25 explicit OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer); |
26 | 26 |
27 OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer, | 27 OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer, |
28 int z_order, | 28 int z_order, |
29 gfx::OverlayTransform plane_transform, | 29 gfx::OverlayTransform plane_transform, |
30 const gfx::Rect& display_bounds, | 30 const gfx::Rect& display_bounds, |
31 const gfx::RectF& crop_rect); | 31 const gfx::RectF& crop_rect); |
| 32 OverlayPlane(const OverlayPlane& other); |
32 | 33 |
33 // This represents a callback function which can handle post processing | 34 // This represents a callback function which can handle post processing |
34 // operations like scaling, format conversion etc of the buffer bound to this | 35 // operations like scaling, format conversion etc of the buffer bound to this |
35 // plane and return the processed buffer. | 36 // plane and return the processed buffer. |
36 typedef base::Callback<scoped_refptr<ScanoutBuffer>(const gfx::Size& size, | 37 typedef base::Callback<scoped_refptr<ScanoutBuffer>(const gfx::Size& size, |
37 uint32_t format)> | 38 uint32_t format)> |
38 ProcessBufferCallback; | 39 ProcessBufferCallback; |
39 OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer, | 40 OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer, |
40 int z_order, | 41 int z_order, |
41 gfx::OverlayTransform plane_transform, | 42 gfx::OverlayTransform plane_transform, |
(...skipping 12 matching lines...) Expand all Loading... |
54 int z_order = 0; | 55 int z_order = 0; |
55 gfx::OverlayTransform plane_transform; | 56 gfx::OverlayTransform plane_transform; |
56 gfx::Rect display_bounds; | 57 gfx::Rect display_bounds; |
57 gfx::RectF crop_rect; | 58 gfx::RectF crop_rect; |
58 ProcessBufferCallback processing_callback; | 59 ProcessBufferCallback processing_callback; |
59 }; | 60 }; |
60 | 61 |
61 } // namespace ui | 62 } // namespace ui |
62 | 63 |
63 #endif // UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_ | 64 #endif // UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_ |
OLD | NEW |