Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / content / public / renderer / video_encode_accelerator.h
blobe98e443d0d7fc4805bbd330c8e5fc366027f5290
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_RENDERER_VIDEO_ENCODE_ACCELERATOR_H_
6 #define CONTENT_PUBLIC_RENDERER_VIDEO_ENCODE_ACCELERATOR_H_
8 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/single_thread_task_runner.h"
11 #include "content/common/content_export.h"
12 #include "media/video/video_encode_accelerator.h"
14 namespace content {
16 // Called when CreateVideoEncodeAccelerator request is complete.
17 // The |vea| object must be accessed on the thread associated with the
18 // |encode_task_runner|.
19 typedef base::Callback<
20 void (scoped_refptr<base::SingleThreadTaskRunner> encoder_task_runner,
21 scoped_ptr<media::VideoEncodeAccelerator> vea)>
22 OnCreateVideoEncodeAcceleratorCallback;
24 // Generates an instance of media::VideoEncodeAccelerator.
25 CONTENT_EXPORT void
26 CreateVideoEncodeAccelerator(
27 const OnCreateVideoEncodeAcceleratorCallback& callback);
29 // Returns list of encoding profiles supported by VideoEncodeAccelerator.
30 CONTENT_EXPORT media::VideoEncodeAccelerator::SupportedProfiles
31 GetSupportedVideoEncodeAcceleratorProfiles();
33 } // namespace content
35 #endif // CONTENT_PUBLIC_RENDERER_VIDEO_ENCODE_ACCELERATOR_H_