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

Unified Diff: ui/ozone/public/native_pixmap.h

Issue 1513283002: Add support to send optimal format as part of ScheduleOverlayPlane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update cmd_buffer_functions Created 5 years 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
« no previous file with comments | « ui/ozone/platform/headless/headless_surface_factory.cc ('k') | ui/ozone/public/overlay_candidates_ozone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ui/ozone/platform/headless/headless_surface_factory.cc ('k') | ui/ozone/public/overlay_candidates_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698