Index: ui/ozone/platform/drm/gpu/overlay_plane.h |
diff --git a/ui/ozone/platform/drm/gpu/overlay_plane.h b/ui/ozone/platform/drm/gpu/overlay_plane.h |
index d1d32a6e3880573043fd697897e82f00c0de3741..02167364acd25b7a3da500d065df53192fcafb60 100644 |
--- a/ui/ozone/platform/drm/gpu/overlay_plane.h |
+++ b/ui/ozone/platform/drm/gpu/overlay_plane.h |
@@ -8,6 +8,7 @@ |
#include <vector> |
#include "base/memory/ref_counted.h" |
+#include "ui/gfx/buffer_types.h" |
#include "ui/gfx/geometry/rect.h" |
#include "ui/gfx/geometry/rect_f.h" |
#include "ui/gfx/overlay_transform.h" |
@@ -42,6 +43,22 @@ struct OZONE_EXPORT OverlayPlane { |
gfx::RectF crop_rect; |
}; |
+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
|
+ OverlayBufferConfiguration(gfx::BufferFormat buffer_format, |
+ gfx::Size buffer_size, |
dnicoara
2015/11/09 20:53:23
nit: const gfx::Size&
|
+ bool handle_scaling); |
+ |
+ ~OverlayBufferConfiguration(); |
+ |
+ // This is optimal storage format for the buffer. |
+ gfx::BufferFormat buffer_format; |
+ // This is the required buffer size. |
+ gfx::Size buffer_size; |
+ // Hardware doesn't have support for plane scaling and the buffer needs to |
+ // be scaled using other means i.e. 3D Engine, VPP etc. |
+ bool handle_scaling; |
+}; |
+ |
} // namespace ui |
#endif // UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_ |