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

Side by Side Diff: content/renderer/media/renderer_gpu_video_accelerator_factories.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/media/renderer_gpu_video_accelerator_factories.h" 5 #include "content/renderer/media/renderer_gpu_video_accelerator_factories.h"
6 6
7 #include <GLES2/gl2.h> 7 #include <GLES2/gl2.h>
8 #include <GLES2/gl2ext.h> 8 #include <GLES2/gl2ext.h>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 size_t size) { 238 size_t size) {
239 DCHECK(task_runner_->BelongsToCurrentThread()); 239 DCHECK(task_runner_->BelongsToCurrentThread());
240 return ChildThread::AllocateSharedMemory(size, thread_safe_sender_.get()); 240 return ChildThread::AllocateSharedMemory(size, thread_safe_sender_.get());
241 } 241 }
242 242
243 scoped_refptr<base::SingleThreadTaskRunner> 243 scoped_refptr<base::SingleThreadTaskRunner>
244 RendererGpuVideoAcceleratorFactories::GetTaskRunner() { 244 RendererGpuVideoAcceleratorFactories::GetTaskRunner() {
245 return task_runner_; 245 return task_runner_;
246 } 246 }
247 247
248 std::vector<media::VideoEncodeAccelerator::SupportedProfile>
249 RendererGpuVideoAcceleratorFactories::
250 GetVideoEncodeAcceleratorSupportedProfiles() {
251 return gpu_channel_host_->gpu_info()
252 .video_encode_accelerator_supported_profiles;
253 }
254
248 } // namespace content 255 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698