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

Side by Side Diff: content/common/gpu/media/vaapi_picture_provider_x11.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // This file contains an implementation of picture allocation for the
6 // X11 window system used by VaapiPictureProvider to produce output
7 // pictures.
8
9 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_PICTURE_PROVIDER_X11_H_
10 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_PICTURE_PROVIDER_X11_H_
11
12 #include "base/callback.h"
13 #include "content/common/gpu/media/vaapi_picture_provider.h"
14 #include "content/common/gpu/media/vaapi_wrapper.h"
Pawel Osciak 2014/10/26 13:06:47 Would declaration be enough like in drm case?
llandwerlin-old 2014/10/29 13:52:48 Sadly since I've moved the vaDestroySurfaces() int
15 #include "third_party/libva/va/va.h"
16 #include "ui/gfx/size.h"
17 #include "ui/gl/gl_bindings.h"
18 #include "ui/gl/gl_context_glx.h"
19
20 namespace content {
21
22 class X11VaapiPictureProvider : public VaapiPictureProvider {
23 public:
24 X11VaapiPictureProvider(
25 scoped_refptr<VaapiWrapper> vaapi_wrapper,
26 gfx::GLContextGLX* glx_context,
27 const base::Callback<bool(void)> make_context_current);
28 virtual ~X11VaapiPictureProvider();
29
30 virtual linked_ptr<VaapiPictureProvider::Picture> CreatePicture(
31 int32 picture_buffer_id,
32 uint32 texture_id,
33 const gfx::Size& size) OVERRIDE;
34
35 private:
36 virtual bool Initialize() OVERRIDE;
37
38 gfx::GLContextGLX* glx_context_;
39 base::Callback<bool(void)> make_context_current_;
40
41 Display* x_display_;
42 GLXFBConfig fb_config_;
43
44 scoped_refptr<VaapiWrapper> vaapi_wrapper_;
45
46 DISALLOW_COPY_AND_ASSIGN(X11VaapiPictureProvider);
47 };
48
49 } // namespace content
50
51 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_PICTURE_PROVIDER_X11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698