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

Unified Diff: ppapi/shared_impl/video_decoder_impl.h

Issue 7765011: Allow both Context3D and Graphics3D with the video decoder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: context3d_id -> graphics_context 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
« no previous file with comments | « ppapi/proxy/ppb_video_decoder_proxy.cc ('k') | ppapi/shared_impl/video_decoder_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/video_decoder_impl.h
diff --git a/ppapi/shared_impl/video_decoder_impl.h b/ppapi/shared_impl/video_decoder_impl.h
index ff19d091294b0103d481d8e8a2d099082edfa272..b71f27dea33a391d91f1f664562551950c006998 100644
--- a/ppapi/shared_impl/video_decoder_impl.h
+++ b/ppapi/shared_impl/video_decoder_impl.h
@@ -57,10 +57,9 @@ class PPAPI_SHARED_EXPORT VideoDecoderImpl
// Tell command buffer to process all commands it has received so far.
void FlushCommandBuffer();
- // Initialize the underlying decoder and return success status.
- virtual bool Init(PP_Resource context3d_id,
- thunk::PPB_Context3D_API* context,
- const PP_VideoConfigElement* dec_config);
+ // Initialize the underlying decoder.
+ void InitCommon(PP_Resource graphics_context,
+ gpu::gles2::GLES2Implementation* gles2_impl);
private:
// Key: bitstream_buffer_id, value: callback to run when bitstream decode is
@@ -73,7 +72,7 @@ class PPAPI_SHARED_EXPORT VideoDecoderImpl
// The resource ID of the underlying Context3d object being used. Used only
// for reference counting to keep it alive for the lifetime of |*this|.
- PP_Resource context3d_id_;
+ PP_Resource graphics_context_;
// Reference to the GLES2Implementation owned by |context3d_id_|.
// Context3D is guaranteed to be alive for the lifetime of this class.
« no previous file with comments | « ppapi/proxy/ppb_video_decoder_proxy.cc ('k') | ppapi/shared_impl/video_decoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698