summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/media/gles2_video_decode_context.cc
blob: 50180efd669ef5d8e380e382c9ae3ed68309f853 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/renderer/media/gles2_video_decode_context.h"

Gles2VideoDecodeContext::Gles2VideoDecodeContext(
    MessageLoop* message_loop, bool memory_mapped, ggl::Context* context)
    : message_loop_(message_loop),
      memory_mapped_(memory_mapped),
      context_(context) {
}

Gles2VideoDecodeContext::~Gles2VideoDecodeContext() {
  // TODO(hclam): Implement.
}

void* Gles2VideoDecodeContext::GetDevice() {
  // This decode context is used inside the renderer and so hardware decoder
  // device handler should not be used.
  return NULL;
}

void Gles2VideoDecodeContext::AllocateVideoFrames(
    int n, size_t width, size_t height, media::VideoFrame::Format format,
    std::vector<scoped_refptr<media::VideoFrame> >* frames, Task* task) {
  // TODO(hclam): Implement.
}

void Gles2VideoDecodeContext::ReleaseAllVideoFrames() {
  // TODO(hclam): Implement.
}

void Gles2VideoDecodeContext::UploadToVideoFrame(
    void* buffer, scoped_refptr<media::VideoFrame> frame, Task* task) {
  // TODO(hclam): Implement.
}

void Gles2VideoDecodeContext::Destroy(Task* task) {
  // TODO(hclam): Implement.
}