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

Side by Side Diff: content/common/gpu/media/vt_video_decode_accelerator.cc

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 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 <algorithm> 5 #include <algorithm>
6 6
7 #include <CoreVideo/CoreVideo.h> 7 #include <CoreVideo/CoreVideo.h>
8 #include <OpenGL/CGLIOSurface.h> 8 #include <OpenGL/CGLIOSurface.h>
9 #include <OpenGL/gl.h> 9 #include <OpenGL/gl.h>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/cpu.h"
13 #include "base/logging.h" 14 #include "base/logging.h"
14 #include "base/mac/mac_logging.h" 15 #include "base/mac/mac_logging.h"
15 #include "base/metrics/histogram_macros.h" 16 #include "base/metrics/histogram_macros.h"
16 #include "base/sys_byteorder.h" 17 #include "base/sys_byteorder.h"
17 #include "base/thread_task_runner_handle.h" 18 #include "base/thread_task_runner_handle.h"
18 #include "content/common/gpu/media/vt_video_decode_accelerator.h" 19 #include "content/common/gpu/media/vt_video_decode_accelerator.h"
19 #include "content/public/common/content_switches.h" 20 #include "content/public/common/content_switches.h"
20 #include "media/base/limits.h" 21 #include "media/base/limits.h"
21 #include "ui/gl/scoped_binders.h" 22 #include "ui/gl/scoped_binders.h"
22 23
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 client_->NotifyEndOfBitstreamBuffer(bitstream_id); 916 client_->NotifyEndOfBitstreamBuffer(bitstream_id);
916 assigned_bitstream_ids_.clear(); 917 assigned_bitstream_ids_.clear();
917 state_ = STATE_DESTROYING; 918 state_ = STATE_DESTROYING;
918 QueueFlush(TASK_DESTROY); 919 QueueFlush(TASK_DESTROY);
919 } 920 }
920 921
921 bool VTVideoDecodeAccelerator::CanDecodeOnIOThread() { 922 bool VTVideoDecodeAccelerator::CanDecodeOnIOThread() {
922 return false; 923 return false;
923 } 924 }
924 925
926 // static
927 media::VideoDecodeAccelerator::SupportedResolution
928 VTVideoDecodeAccelerator::GetSupportedResolution() {
929 media::VideoDecodeAccelerator::SupportedResolution resolution;
930 resolution.min.SetSize(640, 480);
931 resolution.max.SetSize(1920, 1088);
932 return resolution;
933 }
934
925 } // namespace content 935 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698