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

Side by Side Diff: content/public/renderer/video_encode_accelerator.cc

Issue 568413002: Add VEA supported profiles to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo and update gpu_info_unittest Created 6 years, 3 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 #include "content/public/renderer/video_encode_accelerator.h" 5 #include "content/public/renderer/video_encode_accelerator.h"
6 6
7 #include "base/task_runner_util.h" 7 #include "base/task_runner_util.h"
8 #include "content/common/gpu/client/gpu_video_encode_accelerator_host.h" 8 #include "content/common/gpu/client/gpu_video_encode_accelerator_host.h"
9 #include "content/renderer/render_thread_impl.h" 9 #include "content/renderer/render_thread_impl.h"
10 #include "media/filters/gpu_video_accelerator_factories.h" 10 #include "media/filters/gpu_video_accelerator_factories.h"
(...skipping 17 matching lines...) Expand all
28 encode_task_runner.get(), 28 encode_task_runner.get(),
29 FROM_HERE, 29 FROM_HERE,
30 base::Bind( 30 base::Bind(
31 &media::GpuVideoAcceleratorFactories::CreateVideoEncodeAccelerator, 31 &media::GpuVideoAcceleratorFactories::CreateVideoEncodeAccelerator,
32 gpu_factories), 32 gpu_factories),
33 base::Bind(callback, encode_task_runner)); 33 base::Bind(callback, encode_task_runner));
34 } 34 }
35 35
36 std::vector<media::VideoEncodeAccelerator::SupportedProfile> 36 std::vector<media::VideoEncodeAccelerator::SupportedProfile>
37 GetSupportedVideoEncodeAcceleratorProfiles() { 37 GetSupportedVideoEncodeAcceleratorProfiles() {
38 return GpuVideoEncodeAcceleratorHost::GetSupportedProfiles(); 38 scoped_refptr<media::GpuVideoAcceleratorFactories> gpu_factories =
39 RenderThreadImpl::current()->GetGpuFactories();
40 if (!gpu_factories.get())
41 return std::vector<media::VideoEncodeAccelerator::SupportedProfile>();
42 return gpu_factories->GetVideoEncodeAcceleratorSupportedProfiles();
39 } 43 }
40 44
41 } // namespace content 45 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698