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() { |