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

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

Issue 1422563002: [Ozone] Enables overlay render format setting path and by default use UYVY (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/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_;
« no previous file with comments | « no previous file | content/common/gpu/media/vaapi_drm_picture.cc » ('j') | content/common/gpu/media/vaapi_drm_picture.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698