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

Side by Side Diff: media/gpu/vaapi_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 interface of output pictures for the Vaapi 5 // This file contains an interface of output pictures for the Vaapi
6 // video decoder. This is implemented by different window system 6 // video decoder. This is implemented by different window system
7 // (X11/Ozone) and used by VaapiVideoDecodeAccelerator to produce 7 // (X11/Ozone) and used by VaapiVideoDecodeAccelerator to produce
8 // output pictures. 8 // output pictures.
9 9
10 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_PICTURE_H_ 10 #ifndef MEDIA_GPU_VAAPI_PICTURE_H_
11 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_PICTURE_H_ 11 #define MEDIA_GPU_VAAPI_PICTURE_H_
12 12
13 #include <stdint.h> 13 #include <stdint.h>
14 14
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/linked_ptr.h" 16 #include "base/memory/linked_ptr.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/threading/non_thread_safe.h" 18 #include "base/threading/non_thread_safe.h"
19 #include "content/common/gpu/media/gpu_video_decode_accelerator_helpers.h" 19 #include "media/gpu/gpu_video_decode_accelerator_helpers.h"
20 #include "ui/gfx/geometry/size.h" 20 #include "ui/gfx/geometry/size.h"
21 21
22 namespace gl { 22 namespace gl {
23 class GLImage; 23 class GLImage;
24 } 24 }
25 25
26 namespace content { 26 namespace media {
27 27
28 class VASurface; 28 class VASurface;
29 class VaapiWrapper; 29 class VaapiWrapper;
30 30
31 // Picture is native pixmap abstraction (X11/Ozone). 31 // Picture is native pixmap abstraction (X11/Ozone).
32 class VaapiPicture : public base::NonThreadSafe { 32 class VaapiPicture : public base::NonThreadSafe {
33 public: 33 public:
34 virtual ~VaapiPicture() {} 34 virtual ~VaapiPicture() {}
35 35
36 // Try to allocate the underlying resources for the picture. 36 // Try to allocate the underlying resources for the picture.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 size_(size) {} 73 size_(size) {}
74 74
75 private: 75 private:
76 int32_t picture_buffer_id_; 76 int32_t picture_buffer_id_;
77 uint32_t texture_id_; 77 uint32_t texture_id_;
78 gfx::Size size_; 78 gfx::Size size_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(VaapiPicture); 80 DISALLOW_COPY_AND_ASSIGN(VaapiPicture);
81 }; 81 };
82 82
83 } // namespace content 83 } // namespace media
84 84
85 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_PICTURE_H_ 85 #endif // MEDIA_GPU_VAAPI_PICTURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698