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

Unified Diff: content/common/gpu/media/va_surface.h

Issue 490233002: VaapiVideoAccelerator: make Vaapi accelerator work with ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More VaapiPictureProviderDrm cleanup Created 6 years, 2 months 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: content/common/gpu/media/va_surface.h
diff --git a/content/common/gpu/media/va_surface.h b/content/common/gpu/media/va_surface.h
index 88dfc2a90417e86627477fbb0e918d5e351186c2..ed3e5df1b061051400aa46eddcbbd3cb7a9402d4 100644
--- a/content/common/gpu/media/va_surface.h
+++ b/content/common/gpu/media/va_surface.h
@@ -9,6 +9,7 @@
#define CONTENT_COMMON_GPU_MEDIA_VA_SURFACE_H_
#include "third_party/libva/va/va.h"
+#include "ui/gfx/size.h"
namespace content {
@@ -84,17 +85,22 @@ class CONTENT_EXPORT VASurface : public base::RefCountedThreadSafe<VASurface> {
// are released.
typedef base::Callback<void(VASurfaceID)> ReleaseCB;
- VASurface(VASurfaceID va_surface_id, const ReleaseCB& release_cb);
+ VASurface(VASurfaceID va_surface_id,
+ const gfx::Size& size,
+ const ReleaseCB& release_cb);
VASurfaceID id() {
return va_surface_id_;
}
+ const gfx::Size& size() const { return size_; }
+
private:
friend class base::RefCountedThreadSafe<VASurface>;
~VASurface();
const VASurfaceID va_surface_id_;
+ gfx::Size size_;
ReleaseCB release_cb_;
DISALLOW_COPY_AND_ASSIGN(VASurface);

Powered by Google App Engine
This is Rietveld 408576698