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

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

Issue 1432963003: [Ozone] Extends the lifetime of VaapiWrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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') | no next file » | 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 38875c358007d52a9f5eedd9017dc6c600645a8e..becb85a6dbb39abcacd382bbb3f013baaae89925 100644
--- a/ui/ozone/public/native_pixmap.h
+++ b/ui/ozone/public/native_pixmap.h
@@ -28,6 +28,7 @@ class NativePixmap : public base::RefCountedThreadSafe<NativePixmap> {
virtual int GetDmaBufFd() const = 0;
virtual int GetDmaBufPitch() const = 0;
virtual gfx::BufferFormat GetBufferFormat() const = 0;
+ virtual gfx::Size GetBufferSize() const = 0;
// Sets the overlay plane to switch to at the next page flip.
// |w| specifies the screen to display this overlay plane on.
@@ -47,10 +48,10 @@ class NativePixmap : public base::RefCountedThreadSafe<NativePixmap> {
const gfx::RectF& crop_rect) = 0;
// 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)>
+ // do post-processing operations like scaling and color space conversion on
+ // |source_pixmap| and save processed result to |target_pixmap|.
+ typedef base::Callback<bool(const scoped_refptr<NativePixmap>& source_pixmap,
+ scoped_refptr<NativePixmap> target_pixmap)>
ProcessingCallback;
// Set callback function for the pixmap used for post processing.
« no previous file with comments | « ui/ozone/platform/headless/headless_surface_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698