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

Side by Side Diff: content/renderer/media/renderer_gpu_video_accelerator_factories.cc

Issue 1490333005: Don't require VDAs to return all PictureBuffers at once. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ...because trybots have feelings too. 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 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 if (mem && !mem->Map(size)) 239 if (mem && !mem->Map(size))
240 return nullptr; 240 return nullptr;
241 return mem; 241 return mem;
242 } 242 }
243 243
244 scoped_refptr<base::SingleThreadTaskRunner> 244 scoped_refptr<base::SingleThreadTaskRunner>
245 RendererGpuVideoAcceleratorFactories::GetTaskRunner() { 245 RendererGpuVideoAcceleratorFactories::GetTaskRunner() {
246 return task_runner_; 246 return task_runner_;
247 } 247 }
248 248
249 media::VideoDecodeAccelerator::SupportedProfiles 249 media::VideoDecodeAccelerator::Capabilities
250 RendererGpuVideoAcceleratorFactories:: 250 RendererGpuVideoAcceleratorFactories::GetVideoDecodeAcceleratorCapabilities() {
251 GetVideoDecodeAcceleratorSupportedProfiles() { 251 return GpuVideoAcceleratorUtil::ConvertGpuToMediaDecodeCapabilities(
252 return GpuVideoAcceleratorUtil::ConvertGpuToMediaDecodeProfiles( 252 gpu_channel_host_->gpu_info().video_decode_accelerator_capabilities);
253 gpu_channel_host_->gpu_info()
254 .video_decode_accelerator_supported_profiles);
255 } 253 }
256 254
257 media::VideoEncodeAccelerator::SupportedProfiles 255 media::VideoEncodeAccelerator::SupportedProfiles
258 RendererGpuVideoAcceleratorFactories:: 256 RendererGpuVideoAcceleratorFactories::
259 GetVideoEncodeAcceleratorSupportedProfiles() { 257 GetVideoEncodeAcceleratorSupportedProfiles() {
260 return GpuVideoAcceleratorUtil::ConvertGpuToMediaEncodeProfiles( 258 return GpuVideoAcceleratorUtil::ConvertGpuToMediaEncodeProfiles(
261 gpu_channel_host_->gpu_info() 259 gpu_channel_host_->gpu_info()
262 .video_encode_accelerator_supported_profiles); 260 .video_encode_accelerator_supported_profiles);
263 } 261 }
264 262
265 void RendererGpuVideoAcceleratorFactories::ReleaseContextProvider() { 263 void RendererGpuVideoAcceleratorFactories::ReleaseContextProvider() {
266 DCHECK(main_thread_task_runner_->BelongsToCurrentThread()); 264 DCHECK(main_thread_task_runner_->BelongsToCurrentThread());
267 context_provider_refptr_ = nullptr; 265 context_provider_refptr_ = nullptr;
268 } 266 }
269 267
270 } // namespace content 268 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698