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

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: Extends the lifetime of VaapiWrapper 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/public/native_pixmap.h
diff --git a/ui/ozone/public/native_pixmap.h b/ui/ozone/public/native_pixmap.h
index a472fb55257f2913ac2240dce33a35b2b2203e0f..403b8a7a6cfb433cf615fe3e2657133cab9437c9 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() = 0;
virtual int GetDmaBufPitch() = 0;
virtual gfx::BufferFormat GetBufferFormat() = 0;
+ virtual gfx::Size size() = 0;
Pawel Osciak 2015/11/20 10:09:18 This should be a const method.
william.xie1 2015/11/23 03:33:58 Done.
// Sets the overlay plane to switch to at the next page flip.
// |w| specifies the screen to display this overlay plane on.
@@ -49,9 +50,10 @@ class NativePixmap : public base::RefCountedThreadSafe<NativePixmap> {
// 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;
+ typedef base::Callback<scoped_refptr<NativePixmap>(
+ const scoped_refptr<NativePixmap>& pixmap,
+ gfx::Size,
Pawel Osciak 2015/11/20 10:09:18 const&
william.xie1 2015/11/23 03:33:58 Done.
+ gfx::BufferFormat)> ProcessingCallback;
// Set callback function for the pixmap used for post processing.
virtual void SetProcessingCallback(
« ui/ozone/platform/cast/surface_factory_cast.cc ('K') | « ui/ozone/platform/drm/gpu/gbm_buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698