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

Side by Side Diff: chrome/renderer/media/gles2_video_decode_context.cc

Issue 3335014: Added FakeGlVideoDecodeEngine to exercise the IPC protocol for hardware video decoding (Closed)
Patch Set: compile man... Created 10 years, 3 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/renderer/media/gles2_video_decode_context.h" 5 #include "chrome/renderer/media/gles2_video_decode_context.h"
6 6
7 Gles2VideoDecodeContext::Gles2VideoDecodeContext( 7 Gles2VideoDecodeContext::Gles2VideoDecodeContext(
8 StorageType type, WebKit::WebGLES2Context* context) 8 StorageType type, ggl::Context* context)
9 : type_(type), context_(context) { 9 : message_loop_(MessageLoop::current()), type_(type), context_(context) {
10 } 10 }
11 11
12 Gles2VideoDecodeContext::~Gles2VideoDecodeContext() { 12 Gles2VideoDecodeContext::~Gles2VideoDecodeContext() {
13 // TODO(hclam): Implement. 13 // TODO(hclam): Implement.
14 } 14 }
15 15
16 void* Gles2VideoDecodeContext::GetDevice() { 16 void* Gles2VideoDecodeContext::GetDevice() {
17 // This decode context is used inside the renderer and so hardware decoder 17 // This decode context is used inside the renderer and so hardware decoder
18 // device handler should be used. 18 // device handler should not be used.
19 return NULL; 19 return NULL;
20 } 20 }
21 21
22 void Gles2VideoDecodeContext::AllocateVideoFrames( 22 void Gles2VideoDecodeContext::AllocateVideoFrames(
23 int n, size_t width, size_t height, AllocationCompleteCallback* callback) { 23 int n, size_t width, size_t height, AllocationCompleteCallback* callback) {
24 // TODO(hclam): Implement. 24 // TODO(hclam): Implement.
25 } 25 }
26 26
27 void Gles2VideoDecodeContext::ReleaseVideoFrames(int n, 27 void Gles2VideoDecodeContext::ReleaseVideoFrames(int n,
28 media::VideoFrame* frames) { 28 media::VideoFrame* frames) {
29 // TODO(hclam): Implement. 29 // TODO(hclam): Implement.
30 } 30 }
31 31
32 void Gles2VideoDecodeContext::Destroy(DestructionCompleteCallback* callback) { 32 void Gles2VideoDecodeContext::Destroy(DestructionCompleteCallback* callback) {
33 // TODO(hclam): Implement. 33 // TODO(hclam): Implement.
34 } 34 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698