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

Unified Diff: content/renderer/media/renderer_gpu_video_accelerator_factories.cc

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address patch set 6 review comments Created 6 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/renderer_gpu_video_accelerator_factories.cc
diff --git a/content/renderer/media/renderer_gpu_video_accelerator_factories.cc b/content/renderer/media/renderer_gpu_video_accelerator_factories.cc
index 9c246823d4a9882e4dca381b3f23b3820fa604e6..a53564998328fde3d2d6454723ff7b6e3d2abe53 100644
--- a/content/renderer/media/renderer_gpu_video_accelerator_factories.cc
+++ b/content/renderer/media/renderer_gpu_video_accelerator_factories.cc
@@ -12,6 +12,7 @@
#include "content/common/gpu/client/context_provider_command_buffer.h"
#include "content/common/gpu/client/gl_helper.h"
#include "content/common/gpu/client/gpu_channel_host.h"
+#include "content/common/gpu/client/gpu_video_decode_accelerator_host.h"
#include "content/common/gpu/client/gpu_video_encode_accelerator_host.h"
#include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
#include "content/renderer/render_thread_impl.h"
@@ -250,6 +251,18 @@ RendererGpuVideoAcceleratorFactories::GetTaskRunner() {
return task_runner_;
}
+media::VideoDecodeAccelerator::SupportedResolution
+RendererGpuVideoAcceleratorFactories::
+ GetVideoDecodeAcceleratorSupportedResolution() {
+ media::VideoDecodeAccelerator::SupportedResolution media_resolution;
+ gpu::VideoDecodeAcceleratorSupportedResolution gpu_resolution =
+ gpu_channel_host_->gpu_info()
+ .video_decode_accelerator_supported_resolution;
+ media_resolution.max = gpu_resolution.max;
wuchengli 2014/12/23 03:37:20 nit: let's follow the declaration order. Assign mi
henryhsu 2014/12/23 05:52:06 Done.
+ media_resolution.min = gpu_resolution.min;
+ return media_resolution;
+}
+
std::vector<media::VideoEncodeAccelerator::SupportedProfile>
RendererGpuVideoAcceleratorFactories::
GetVideoEncodeAcceleratorSupportedProfiles() {

Powered by Google App Engine
This is Rietveld 408576698