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

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

Issue 2768343002: Change namespace from ui to gfx for NativePixmap related code (Closed)
Patch Set: Addressed sadrul's remark Created 3 years, 9 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 // Ozone window system used by VaapiVideoDecodeAccelerator to produce 6 // Ozone window system used by VaapiVideoDecodeAccelerator to produce
7 // output pictures. 7 // output pictures.
8 8
9 #ifndef MEDIA_GPU_VAAPI_DRM_PICTURE_H_ 9 #ifndef MEDIA_GPU_VAAPI_DRM_PICTURE_H_
10 #define MEDIA_GPU_VAAPI_DRM_PICTURE_H_ 10 #define MEDIA_GPU_VAAPI_DRM_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 "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "media/gpu/vaapi_picture.h" 17 #include "media/gpu/vaapi_picture.h"
18 #include "ui/gfx/buffer_types.h" 18 #include "ui/gfx/buffer_types.h"
19 #include "ui/gfx/geometry/size.h" 19 #include "ui/gfx/geometry/size.h"
20 20
21 namespace gl { 21 namespace gl {
22 class GLImage; 22 class GLImage;
23 } 23 }
24 24
25 namespace ui { 25 namespace gfx {
26 class NativePixmap; 26 class NativePixmap;
27 } 27 }
28 28
29 namespace media { 29 namespace media {
30 30
31 class VaapiWrapper; 31 class VaapiWrapper;
32 32
33 // Implementation of VaapiPicture for the ozone/drm backed chromium. 33 // Implementation of VaapiPicture for the ozone/drm backed chromium.
34 class VaapiDrmPicture : public VaapiPicture { 34 class VaapiDrmPicture : public VaapiPicture {
35 public: 35 public:
(...skipping 13 matching lines...) Expand all
49 const gfx::GpuMemoryBufferHandle& gpu_memory_buffer_handle) override; 49 const gfx::GpuMemoryBufferHandle& gpu_memory_buffer_handle) override;
50 50
51 bool DownloadFromSurface(const scoped_refptr<VASurface>& va_surface) override; 51 bool DownloadFromSurface(const scoped_refptr<VASurface>& va_surface) override;
52 52
53 bool AllowOverlay() const override; 53 bool AllowOverlay() const override;
54 54
55 private: 55 private:
56 bool Initialize(); 56 bool Initialize();
57 57
58 // Ozone buffer, the storage of the EGLImage and the VASurface. 58 // Ozone buffer, the storage of the EGLImage and the VASurface.
59 scoped_refptr<ui::NativePixmap> pixmap_; 59 scoped_refptr<gfx::NativePixmap> pixmap_;
60 60
61 // EGLImage bound to the GL textures used by the VDA client. 61 // EGLImage bound to the GL textures used by the VDA client.
62 scoped_refptr<gl::GLImage> gl_image_; 62 scoped_refptr<gl::GLImage> gl_image_;
63 63
64 // VASurface used to transfer from the decoder's pixel format. 64 // VASurface used to transfer from the decoder's pixel format.
65 scoped_refptr<VASurface> va_surface_; 65 scoped_refptr<VASurface> va_surface_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(VaapiDrmPicture); 67 DISALLOW_COPY_AND_ASSIGN(VaapiDrmPicture);
68 }; 68 };
69 69
70 } // namespace media 70 } // namespace media
71 71
72 #endif // MEDIA_GPU_VAAPI_DRM_PICTURE_H_ 72 #endif // MEDIA_GPU_VAAPI_DRM_PICTURE_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.cc ('k') | media/gpu/vaapi_drm_picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698