Index: ui/ozone/public/native_pixmap.h |
diff --git a/ui/ozone/public/native_pixmap.h b/ui/ozone/public/native_pixmap.h |
index becb85a6dbb39abcacd382bbb3f013baaae89925..58851828c96eadd7420929a57dce730e9ca8a46f 100644 |
--- a/ui/ozone/public/native_pixmap.h |
+++ b/ui/ozone/public/native_pixmap.h |
@@ -7,6 +7,7 @@ |
#include "base/bind.h" |
#include "base/memory/ref_counted.h" |
+#include "ui/gfx/buffer_types.h" |
#include "ui/gfx/native_pixmap_handle_ozone.h" |
#include "ui/gfx/native_widget_types.h" |
#include "ui/gfx/overlay_transform.h" |
@@ -36,6 +37,8 @@ class NativePixmap : public base::RefCountedThreadSafe<NativePixmap> { |
// main framebuffer located at index 0. |
// |plane_transform| specifies how the buffer is to be transformed during. |
// composition. |
+ // |storage_format| specifies the optimal storage format which can be |
+ // supported by the platform during composition. |
// |buffer| to be presented by the overlay. |
// |display_bounds| specify where it is supposed to be on the screen. |
// |crop_rect| specifies the region within the buffer to be placed |
@@ -44,8 +47,10 @@ class NativePixmap : public base::RefCountedThreadSafe<NativePixmap> { |
virtual bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
int plane_z_order, |
gfx::OverlayTransform plane_transform, |
+ gfx::BufferFormat storage_format, |
const gfx::Rect& display_bounds, |
- const gfx::RectF& crop_rect) = 0; |
+ const gfx::RectF& crop_rect, |
+ bool handle_scaling) = 0; |
// This represents a callback function pointing to processing unit like VPP to |
// do post-processing operations like scaling and color space conversion on |