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() { |