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

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

Issue 1882373004: Migrate content/common/gpu/media code to media/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix several more bot-identified build issues Created 4 years, 8 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 MEDIA_GPU_VAAPI_TFP_PICTURE_H_
10 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_TFP_PICTURE_H_ 10 #define MEDIA_GPU_VAAPI_TFP_PICTURE_H_
11 11
12 #include <stdint.h> 12 #include <stdint.h>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "content/common/gpu/media/vaapi_picture.h" 16 #include "media/gpu/vaapi_picture.h"
17 #include "ui/gfx/geometry/size.h" 17 #include "ui/gfx/geometry/size.h"
18 #include "ui/gl/gl_bindings.h" 18 #include "ui/gl/gl_bindings.h"
19 19
20 namespace gfx { 20 namespace gfx {
21 class GLContextGLX; 21 class GLContextGLX;
22 } 22 }
23 23
24 namespace gl { 24 namespace gl {
25 class GLImageGLX; 25 class GLImageGLX;
26 } 26 }
27 27
28 namespace content { 28 namespace media {
29 29
30 class VaapiWrapper; 30 class VaapiWrapper;
31 31
32 // Implementation of VaapiPicture for the X11 backed chromium. 32 // Implementation of VaapiPicture for the X11 backed chromium.
33 class VaapiTFPPicture : public VaapiPicture { 33 class VaapiTFPPicture : public VaapiPicture {
34 public: 34 public:
35 VaapiTFPPicture(const scoped_refptr<VaapiWrapper>& vaapi_wrapper, 35 VaapiTFPPicture(const scoped_refptr<VaapiWrapper>& vaapi_wrapper,
36 const MakeGLContextCurrentCallback& make_context_current_cb, 36 const MakeGLContextCurrentCallback& make_context_current_cb,
37 int32_t picture_buffer_id, 37 int32_t picture_buffer_id,
38 uint32_t texture_id, 38 uint32_t texture_id,
(...skipping 12 matching lines...) Expand all
51 51
52 MakeGLContextCurrentCallback make_context_current_cb_; 52 MakeGLContextCurrentCallback make_context_current_cb_;
53 Display* x_display_; 53 Display* x_display_;
54 54
55 Pixmap x_pixmap_; 55 Pixmap x_pixmap_;
56 scoped_refptr<gl::GLImageGLX> glx_image_; 56 scoped_refptr<gl::GLImageGLX> glx_image_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(VaapiTFPPicture); 58 DISALLOW_COPY_AND_ASSIGN(VaapiTFPPicture);
59 }; 59 };
60 60
61 } // namespace content 61 } // namespace media
62 62
63 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_TFP_PICTURE_H_ 63 #endif // MEDIA_GPU_VAAPI_TFP_PICTURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698