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

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

Issue 1485043002: Passed is_encrypted parameter to the VDA initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years 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 (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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void NotifyResetDone() override; 58 void NotifyResetDone() override;
59 void NotifyError(media::VideoDecodeAccelerator::Error error) override; 59 void NotifyError(media::VideoDecodeAccelerator::Error error) override;
60 60
61 // GpuCommandBufferStub::DestructionObserver implementation. 61 // GpuCommandBufferStub::DestructionObserver implementation.
62 void OnWillDestroyStub() override; 62 void OnWillDestroyStub() override;
63 63
64 // Function to delegate sending to actual sender. 64 // Function to delegate sending to actual sender.
65 bool Send(IPC::Message* message) override; 65 bool Send(IPC::Message* message) override;
66 66
67 // Initialize VDAs from the set of VDAs supported for current platform until 67 // Initialize VDAs from the set of VDAs supported for current platform until
68 // one of them succeeds for given |profile|. Send the |init_done_msg| when 68 // one of them succeeds for given |config|. Send the |init_done_msg| when
69 // done. filter_ is passed to GpuCommandBufferStub channel only if the chosen 69 // done. filter_ is passed to GpuCommandBufferStub channel only if the chosen
70 // VDA can decode on IO thread. 70 // VDA can decode on IO thread.
71 void Initialize(const media::VideoCodecProfile profile, 71 void Initialize(const media::VideoDecodeAccelerator::Config& config,
72 IPC::Message* init_done_msg); 72 IPC::Message* init_done_msg);
73 73
74 private: 74 private:
75 typedef scoped_ptr<media::VideoDecodeAccelerator>( 75 typedef scoped_ptr<media::VideoDecodeAccelerator>(
76 GpuVideoDecodeAccelerator::*CreateVDAFp)(); 76 GpuVideoDecodeAccelerator::*CreateVDAFp)();
77 77
78 class MessageFilter; 78 class MessageFilter;
79 79
80 scoped_ptr<media::VideoDecodeAccelerator> CreateDXVAVDA(); 80 scoped_ptr<media::VideoDecodeAccelerator> CreateDXVAVDA();
81 scoped_ptr<media::VideoDecodeAccelerator> CreateV4L2VDA(); 81 scoped_ptr<media::VideoDecodeAccelerator> CreateV4L2VDA();
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 // A map from picture buffer ID to TextureRef that have not been cleared. 157 // A map from picture buffer ID to TextureRef that have not been cleared.
158 std::map<int32, scoped_refptr<gpu::gles2::TextureRef> > uncleared_textures_; 158 std::map<int32, scoped_refptr<gpu::gles2::TextureRef> > uncleared_textures_;
159 159
160 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); 160 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
161 }; 161 };
162 162
163 } // namespace content 163 } // namespace content
164 164
165 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 165 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/fake_video_decode_accelerator.cc ('k') | content/common/gpu/media/gpu_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698