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

Side by Side Diff: media/video/video_decode_accelerator.cc

Issue 775863005: gpu: Make GPU command decoder know right format of a GPU video texture in Win. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TODO instead of FIXME 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 unified diff | Download patch
« no previous file with comments | « media/video/video_decode_accelerator.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "media/video/video_decode_accelerator.h" 5 #include "media/video/video_decode_accelerator.h"
6 6
7 #include <GLES2/gl2.h>
7 #include "base/logging.h" 8 #include "base/logging.h"
8 9
9 namespace media { 10 namespace media {
10 11
11 VideoDecodeAccelerator::~VideoDecodeAccelerator() {} 12 VideoDecodeAccelerator::~VideoDecodeAccelerator() {}
12 13
13 bool VideoDecodeAccelerator::CanDecodeOnIOThread() { 14 bool VideoDecodeAccelerator::CanDecodeOnIOThread() {
14 // GPU process subclasses must override this. 15 // GPU process subclasses must override this.
15 LOG(FATAL) << "This should only get called in the GPU process"; 16 LOG(FATAL) << "This should only get called in the GPU process";
16 return false; // not reached 17 return false; // not reached
17 } 18 }
18 19
20 GLenum VideoDecodeAccelerator::GetSurfaceInternalFormat() const {
21 return GL_RGBA;
22 }
23
19 } // namespace media 24 } // namespace media
20 25
21 namespace base { 26 namespace base {
22 27
23 void DefaultDeleter<media::VideoDecodeAccelerator>::operator()( 28 void DefaultDeleter<media::VideoDecodeAccelerator>::operator()(
24 void* video_decode_accelerator) const { 29 void* video_decode_accelerator) const {
25 static_cast<media::VideoDecodeAccelerator*>(video_decode_accelerator)-> 30 static_cast<media::VideoDecodeAccelerator*>(video_decode_accelerator)->
26 Destroy(); 31 Destroy();
27 } 32 }
28 33
29 } // namespace base 34 } // namespace base
30 35
31 36
OLDNEW
« no previous file with comments | « media/video/video_decode_accelerator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698