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

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

Issue 322433004: Create VTVideoDecodeAccelerator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 6 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
« no previous file with comments | « content/common/gpu/media/vt_video_decode_accelerator.h ('k') | content/content_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/common/gpu/media/vt_video_decode_accelerator.h"
6
7 namespace content {
8
9 VTVideoDecodeAccelerator::VTVideoDecodeAccelerator(CGLContextObj cgl_context)
10 : loop_proxy_(base::MessageLoopProxy::current()),
11 cgl_context_(cgl_context),
12 client_(NULL),
13 weak_this_factory_(this) {
14 }
15
16 VTVideoDecodeAccelerator::~VTVideoDecodeAccelerator() {
17 }
18
19 bool VTVideoDecodeAccelerator::Initialize(
20 media::VideoCodecProfile profile,
21 Client* client) {
22 DCHECK(CalledOnValidThread());
23 DVLOG(2) << __FUNCTION__;
24 client_ = client;
25
26 // Only H.264 is supported.
27 if (profile < media::H264PROFILE_MIN || profile > media::H264PROFILE_MAX)
28 return false;
29
30 // Prevent anyone from using VTVideoDecoder for now. http://crbug.com/133828
31 return false;
32 }
33
34 void VTVideoDecodeAccelerator::Decode(const media::BitstreamBuffer& bitstream) {
35 DCHECK(CalledOnValidThread());
36 }
37
38 void VTVideoDecodeAccelerator::AssignPictureBuffers(
39 const std::vector<media::PictureBuffer>& pictures) {
40 DCHECK(CalledOnValidThread());
41 }
42
43 void VTVideoDecodeAccelerator::ReusePictureBuffer(int32_t picture_id) {
44 DCHECK(CalledOnValidThread());
45 }
46
47 void VTVideoDecodeAccelerator::Flush() {
48 DCHECK(CalledOnValidThread());
49 }
50
51 void VTVideoDecodeAccelerator::Reset() {
52 DCHECK(CalledOnValidThread());
53 }
54
55 void VTVideoDecodeAccelerator::Destroy() {
56 DCHECK(CalledOnValidThread());
57 }
58
59 bool VTVideoDecodeAccelerator::CanDecodeOnIOThread() {
60 return false;
61 }
62
63 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/media/vt_video_decode_accelerator.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698