Index: content/common/gpu/media/vaapi_drm_picture.h |
diff --git a/content/common/gpu/media/vaapi_drm_picture.h b/content/common/gpu/media/vaapi_drm_picture.h |
index 4a0b83bce17a37105060604e6e6f5df47bfe50ce..a967e63d81743510997ba04659477d1385475131 100644 |
--- a/content/common/gpu/media/vaapi_drm_picture.h |
+++ b/content/common/gpu/media/vaapi_drm_picture.h |
@@ -9,10 +9,12 @@ |
#ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_DRM_PICTURE_H_ |
#define CONTENT_COMMON_GPU_MEDIA_VAAPI_DRM_PICTURE_H_ |
+#include <gbm.h> |
alexst (slow to review)
2015/10/22 13:00:19
Please move this include to the file that uses its
william.xie1
2015/10/22 14:18:10
Done.
|
#include "base/callback.h" |
#include "base/memory/ref_counted.h" |
#include "base/memory/weak_ptr.h" |
#include "content/common/gpu/media/vaapi_picture.h" |
+#include "ui/gfx/buffer_types.h" |
#include "ui/gfx/geometry/size.h" |
namespace gfx { |
@@ -57,7 +59,8 @@ class VaapiDrmPicture : public VaapiPicture { |
scoped_refptr<VASurface> CreateVASurfaceForPixmap( |
scoped_refptr<ui::NativePixmap> pixmap, |
gfx::Size pixmap_size); |
- scoped_refptr<ui::NativePixmap> CreateNativePixmap(gfx::Size size); |
+ scoped_refptr<ui::NativePixmap> CreateNativePixmap(gfx::Size size, |
+ gfx::BufferFormat format); |
VaapiWrapper* vaapi_wrapper_; // Not owned. |
base::Callback<bool(void)> make_context_current_; |