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

Unified 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, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/media/gles2_video_decode_context.cc
diff --git a/chrome/renderer/media/gles2_video_decode_context.cc b/chrome/renderer/media/gles2_video_decode_context.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d54334b5ca28a5083817cf169a60e550c8761958
--- /dev/null
+++ b/chrome/renderer/media/gles2_video_decode_context.cc
@@ -0,0 +1,34 @@
+// 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(
+ StorageType type, WebKit::WebGLES2Context* context)
+ : type_(type), 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 be used.
+ return NULL;
+}
+
+void Gles2VideoDecodeContext::AllocateVideoFrames(
+ int n, size_t width, size_t height, AllocationCompleteCallback* callback) {
+ // TODO(hclam): Implement.
+}
+
+void Gles2VideoDecodeContext::ReleaseVideoFrames(int n,
+ media::VideoFrame* frames) {
+ // TODO(hclam): Implement.
+}
+
+void Gles2VideoDecodeContext::Destroy(DestructionCompleteCallback* callback) {
+ // TODO(hclam): Implement.
+}

Powered by Google App Engine
This is Rietveld 408576698