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

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

Issue 848233002: Revert of GVDA, vdatest: Enable V4L2SliceVideoDecodeAccelerator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vp8_slice_based
Patch Set: 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
« no previous file with comments | « no previous file | content/common/gpu/media/gpu_video_decode_accelerator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 typedef scoped_ptr<media::VideoDecodeAccelerator>( 70 typedef scoped_ptr<media::VideoDecodeAccelerator>(
71 GpuVideoDecodeAccelerator::*CreateVDAFp)(); 71 GpuVideoDecodeAccelerator::*CreateVDAFp)();
72 72
73 class MessageFilter; 73 class MessageFilter;
74 74
75 // Return a set of VDA Create function pointers applicable to the current 75 // Return a set of VDA Create function pointers applicable to the current
76 // platform. 76 // platform.
77 std::vector<CreateVDAFp> CreateVDAFps(); 77 std::vector<CreateVDAFp> CreateVDAFps();
78 scoped_ptr<media::VideoDecodeAccelerator> CreateDXVAVDA(); 78 scoped_ptr<media::VideoDecodeAccelerator> CreateDXVAVDA();
79 scoped_ptr<media::VideoDecodeAccelerator> CreateV4L2VDA(); 79 scoped_ptr<media::VideoDecodeAccelerator> CreateV4L2VDA();
80 scoped_ptr<media::VideoDecodeAccelerator> CreateV4L2SliceVDA();
81 scoped_ptr<media::VideoDecodeAccelerator> CreateVaapiVDA(); 80 scoped_ptr<media::VideoDecodeAccelerator> CreateVaapiVDA();
82 scoped_ptr<media::VideoDecodeAccelerator> CreateVTVDA(); 81 scoped_ptr<media::VideoDecodeAccelerator> CreateVTVDA();
83 scoped_ptr<media::VideoDecodeAccelerator> CreateOzoneVDA(); 82 scoped_ptr<media::VideoDecodeAccelerator> CreateOzoneVDA();
84 scoped_ptr<media::VideoDecodeAccelerator> CreateAndroidVDA(); 83 scoped_ptr<media::VideoDecodeAccelerator> CreateAndroidVDA();
85 84
86 // We only allow self-delete, from OnWillDestroyStub(), after cleanup there. 85 // We only allow self-delete, from OnWillDestroyStub(), after cleanup there.
87 ~GpuVideoDecodeAccelerator() override; 86 ~GpuVideoDecodeAccelerator() override;
88 87
89 // Handlers for IPC messages. 88 // Handlers for IPC messages.
90 void OnDecode(base::SharedMemoryHandle handle, int32 id, uint32 size); 89 void OnDecode(base::SharedMemoryHandle handle, int32 id, uint32 size);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 147
149 // A map from picture buffer ID to TextureRef that have not been cleared. 148 // A map from picture buffer ID to TextureRef that have not been cleared.
150 std::map<int32, scoped_refptr<gpu::gles2::TextureRef> > uncleared_textures_; 149 std::map<int32, scoped_refptr<gpu::gles2::TextureRef> > uncleared_textures_;
151 150
152 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); 151 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
153 }; 152 };
154 153
155 } // namespace content 154 } // namespace content
156 155
157 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 156 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/media/gpu_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698