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

Unified Diff: ui/ozone/platform/drm/gpu/overlay_plane.h

Issue 1426993003: Ozone: Dont hardcode format to YUV when using Overlay Composition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698