Index: ui/ozone/public/native_pixmap.h |
diff --git a/ui/ozone/public/native_pixmap.h b/ui/ozone/public/native_pixmap.h |
index 5bb007ad8d07a551ea17f8e6db5a31eb151b3192..a472fb55257f2913ac2240dce33a35b2b2203e0f 100644 |
--- a/ui/ozone/public/native_pixmap.h |
+++ b/ui/ozone/public/native_pixmap.h |
@@ -27,6 +27,7 @@ class NativePixmap : public base::RefCountedThreadSafe<NativePixmap> { |
virtual void* /* EGLClientBuffer */ GetEGLClientBuffer() = 0; |
virtual int GetDmaBufFd() = 0; |
virtual int GetDmaBufPitch() = 0; |
+ virtual gfx::BufferFormat GetBufferFormat() = 0; |
// Sets the overlay plane to switch to at the next page flip. |
// |w| specifies the screen to display this overlay plane on. |
@@ -45,14 +46,19 @@ class NativePixmap : public base::RefCountedThreadSafe<NativePixmap> { |
const gfx::Rect& display_bounds, |
const gfx::RectF& crop_rect) = 0; |
- // This represents a callback function pointing to scaling unit like VPP |
- // to do scaling operations on native pixmap with required size. |
- typedef base::Callback<scoped_refptr<NativePixmap>(gfx::Size)> |
- ScalingCallback; |
+ // This represents a callback function pointing to processing unit like VPP to |
+ // do post-processing operations on native pixmap with required size and |
+ // format. |
+ typedef base::Callback<scoped_refptr<NativePixmap>(gfx::Size, |
+ gfx::BufferFormat)> |
+ ProcessingCallback; |
- // Set callback function for the pixmap used for scaling. |
- virtual void SetScalingCallback(const ScalingCallback& scaling_callback) = 0; |
- virtual scoped_refptr<NativePixmap> GetScaledPixmap(gfx::Size new_size) = 0; |
+ // Set callback function for the pixmap used for post processing. |
+ virtual void SetProcessingCallback( |
+ const ProcessingCallback& processing_callback) = 0; |
+ virtual scoped_refptr<NativePixmap> GetProcessedPixmap( |
+ gfx::Size target_size, |
+ gfx::BufferFormat target_format) = 0; |
// Export the buffer for sharing across processes. |
// Any file descriptors in the exported handle are owned by the caller. |