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

Side by Side Diff: content/common/gpu/media/vaapi_tfp_picture.h

Issue 858653002: vaapi plumbing to allow hardware video overlays (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make buildable before cc plumbing is in Created 5 years, 11 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file contains an implementation of picture allocation for the 5 // This file contains an implementation of picture allocation for the
6 // X11 window system used by VaapiVideoDecodeAccelerator to produce 6 // X11 window system used by VaapiVideoDecodeAccelerator to produce
7 // output pictures. 7 // output pictures.
8 8
9 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_TFP_PICTURE_H_ 9 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_TFP_PICTURE_H_
10 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_TFP_PICTURE_H_ 10 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_TFP_PICTURE_H_
(...skipping 17 matching lines...) Expand all
28 class VaapiTFPPicture : public VaapiPicture { 28 class VaapiTFPPicture : public VaapiPicture {
29 public: 29 public:
30 VaapiTFPPicture(VaapiWrapper* vaapi_wrapper, 30 VaapiTFPPicture(VaapiWrapper* vaapi_wrapper,
31 const base::Callback<bool(void)> make_context_current, 31 const base::Callback<bool(void)> make_context_current,
32 int32 picture_buffer_id, 32 int32 picture_buffer_id,
33 uint32 texture_id, 33 uint32 texture_id,
34 const gfx::Size& size); 34 const gfx::Size& size);
35 35
36 ~VaapiTFPPicture() override; 36 ~VaapiTFPPicture() override;
37 37
38 bool Initialize() override; 38 bool Initialize(gpu::gles2::TextureManager* texture_manager,
39 gpu::gles2::TextureRef* texture_ref) override;
39 40
40 bool DownloadFromSurface(const scoped_refptr<VASurface>& va_surface) override; 41 bool DownloadFromSurface(const scoped_refptr<VASurface>& va_surface) override;
41 42
42 private: 43 private:
43 VaapiWrapper* vaapi_wrapper_; // Not owned. 44 VaapiWrapper* vaapi_wrapper_; // Not owned.
44 45
45 base::Callback<bool(void)> make_context_current_; 46 base::Callback<bool(void)> make_context_current_;
46 Display* x_display_; 47 Display* x_display_;
47 48
48 Pixmap x_pixmap_; 49 Pixmap x_pixmap_;
49 scoped_refptr<gfx::GLImageGLX> glx_image_; 50 scoped_refptr<gfx::GLImageGLX> glx_image_;
50 51
51 DISALLOW_COPY_AND_ASSIGN(VaapiTFPPicture); 52 DISALLOW_COPY_AND_ASSIGN(VaapiTFPPicture);
52 }; 53 };
53 54
54 } // namespace content 55 } // namespace content
55 56
56 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_TFP_PICTURE_H_ 57 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_TFP_PICTURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698