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

Unified Diff: ppapi/shared_impl/video_decoder_impl.cc

Issue 7765011: Allow both Context3D and Graphics3D with the video decoder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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: ppapi/shared_impl/video_decoder_impl.cc
diff --git a/ppapi/shared_impl/video_decoder_impl.cc b/ppapi/shared_impl/video_decoder_impl.cc
index ecdde86040c762f193ced857dc9c8bbcfbafdb58..37bc5e17670c4bdf036808a73d0fe7b60cbde654 100644
--- a/ppapi/shared_impl/video_decoder_impl.cc
+++ b/ppapi/shared_impl/video_decoder_impl.cc
@@ -26,17 +26,14 @@ VideoDecoderImpl::VideoDecoderImpl()
VideoDecoderImpl::~VideoDecoderImpl() {
}
-bool VideoDecoderImpl::Init(PP_Resource context3d_id,
- PPB_Context3D_API* context3d,
- const PP_VideoConfigElement* decoder_config) {
- if (!context3d || !decoder_config || !context3d_id)
- return false;
-
+void VideoDecoderImpl::InitCommon(
+ PP_Resource context3d_id,
+ gpu::gles2::GLES2Implementation* gles2_impl) {
+ DCHECK(context3d_id);
DCHECK(!gles2_impl_ && !context3d_id_);
- gles2_impl_ = context3d->GetGLES2Impl();
+ gles2_impl_ = gles2_impl;
TrackerBase::Get()->GetResourceTracker()->AddRefResource(context3d_id);
context3d_id_ = context3d_id;
- return true;
}
void VideoDecoderImpl::Destroy() {

Powered by Google App Engine
This is Rietveld 408576698