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

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

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to GetSupportedProfile Created 5 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 VideoDecodeAccelerator 5 // This file contains an implementation of VideoDecodeAccelerator
6 // that utilizes hardware video decoders, which expose Video4Linux 2 API 6 // that utilizes hardware video decoders, which expose Video4Linux 2 API
7 // (http://linuxtv.org/downloads/v4l-dvb-apis/). 7 // (http://linuxtv.org/downloads/v4l-dvb-apis/).
8 8
9 #ifndef CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_ 9 #ifndef CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_
10 #define CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_ 10 #define CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 V4L2VideoDecodeAccelerator( 79 V4L2VideoDecodeAccelerator(
80 EGLDisplay egl_display, 80 EGLDisplay egl_display,
81 EGLContext egl_context, 81 EGLContext egl_context,
82 const base::WeakPtr<Client>& io_client_, 82 const base::WeakPtr<Client>& io_client_,
83 const base::Callback<bool(void)>& make_context_current, 83 const base::Callback<bool(void)>& make_context_current,
84 const scoped_refptr<V4L2Device>& device, 84 const scoped_refptr<V4L2Device>& device,
85 const scoped_refptr<base::MessageLoopProxy>& io_message_loop_proxy); 85 const scoped_refptr<base::MessageLoopProxy>& io_message_loop_proxy);
86 ~V4L2VideoDecodeAccelerator() override; 86 ~V4L2VideoDecodeAccelerator() override;
87 87
88 // media::VideoDecodeAccelerator implementation. 88 // media::VideoDecodeAccelerator implementation.
89 static std::vector<media::VideoDecodeAccelerator::SupportedProfile>
90 GetSupportedProfiles();
89 // Note: Initialize() and Destroy() are synchronous. 91 // Note: Initialize() and Destroy() are synchronous.
90 bool Initialize(media::VideoCodecProfile profile, 92 bool Initialize(media::VideoCodecProfile profile,
91 Client* client) override; 93 Client* client) override;
92 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; 94 void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
93 void AssignPictureBuffers( 95 void AssignPictureBuffers(
94 const std::vector<media::PictureBuffer>& buffers) override; 96 const std::vector<media::PictureBuffer>& buffers) override;
95 void ReusePictureBuffer(int32 picture_buffer_id) override; 97 void ReusePictureBuffer(int32 picture_buffer_id) override;
96 void Flush() override; 98 void Flush() override;
97 void Reset() override; 99 void Reset() override;
98 void Destroy() override; 100 void Destroy() override;
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 456
455 // The WeakPtrFactory for |weak_this_|. 457 // The WeakPtrFactory for |weak_this_|.
456 base::WeakPtrFactory<V4L2VideoDecodeAccelerator> weak_this_factory_; 458 base::WeakPtrFactory<V4L2VideoDecodeAccelerator> weak_this_factory_;
457 459
458 DISALLOW_COPY_AND_ASSIGN(V4L2VideoDecodeAccelerator); 460 DISALLOW_COPY_AND_ASSIGN(V4L2VideoDecodeAccelerator);
459 }; 461 };
460 462
461 } // namespace content 463 } // namespace content
462 464
463 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_ 465 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698