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

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

Issue 3233003: Add a VideoDecodeContext that provides resources for a VideoDecodeEngine (Closed)
Patch Set: updated API 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/renderer/media/gles2_video_decode_context.h"
6
7 Gles2VideoDecodeContext::Gles2VideoDecodeContext(
8 StorageType type, WebKit::WebGLES2Context* context)
9 : type_(type), context_(context) {
10 }
11
12 Gles2VideoDecodeContext::~Gles2VideoDecodeContext() {
13 // TODO(hclam): Implement.
14 }
15
16 void* Gles2VideoDecodeContext::GetDevice() {
17 // This decode context is used inside the renderer and so hardware decoder
18 // device handler should be used.
19 return NULL;
20 }
21
22 void Gles2VideoDecodeContext::AllocateVideoFrames(
23 int n, size_t width, size_t height, AllocationCompleteCallback* callback) {
24 // TODO(hclam): Implement.
25 }
26
27 void Gles2VideoDecodeContext::ReleaseVideoFrames(int n,
28 media::VideoFrame* frames) {
29 // TODO(hclam): Implement.
30 }
31
32 void Gles2VideoDecodeContext::Destroy(DestructionCompleteCallback* callback) {
33 // TODO(hclam): Implement.
34 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698