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

Unified Diff: ppapi/c/dev/ppb_video_decoder_dev.h

Issue 7085030: Implementation for Pepper C++ Video Decoder API (wrapper on top of C API). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed the CPP video decoder client to match the changes in PPP_VideoDecoder_Dev Created 9 years, 7 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 | « no previous file | ppapi/cpp/dev/video_decoder_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/dev/ppb_video_decoder_dev.h
diff --git a/ppapi/c/dev/ppb_video_decoder_dev.h b/ppapi/c/dev/ppb_video_decoder_dev.h
index 46eded5b4b807f79cd69e5be166c41c7a302e9d9..12f6d5f2ec1077240ec5b556267d0d8642a9c390 100644
--- a/ppapi/c/dev/ppb_video_decoder_dev.h
+++ b/ppapi/c/dev/ppb_video_decoder_dev.h
@@ -116,7 +116,7 @@ struct PPB_VideoDecoder_Dev {
//
// Returns PP_TRUE on success, PP_FALSE otherwise.
PP_Bool (*GetConfigs)(PP_Instance instance,
- PP_VideoConfigElement* proto_config,
+ const PP_VideoConfigElement* proto_config,
PP_VideoConfigElement* matching_configs,
uint32_t matching_configs_size,
uint32_t* num_of_matching_configs);
@@ -135,7 +135,7 @@ struct PPB_VideoDecoder_Dev {
//
// The created decoder is returned as PP_Resource. NULL means failure.
PP_Resource (*Create)(PP_Instance instance,
- PP_VideoConfigElement* dec_config,
+ const PP_VideoConfigElement* dec_config,
struct PP_CompletionCallback callback);
// Tests whether |resource| is a video decoder created through Create
@@ -159,7 +159,7 @@ struct PPB_VideoDecoder_Dev {
// Returns PP_TRUE on decoder successfully accepting buffer, PP_FALSE
// otherwise.
PP_Bool (*Decode)(PP_Resource video_decoder,
- struct PP_VideoBitstreamBuffer_Dev* bitstream_buffer,
+ const struct PP_VideoBitstreamBuffer_Dev* bitstream_buffer,
struct PP_CompletionCallback callback);
// Provides the decoder with picture buffers for video decoding.
@@ -191,10 +191,10 @@ struct PPB_VideoDecoder_Dev {
// allocated.
void (*AssignGLESBuffers)(PP_Resource video_decoder,
uint32_t no_of_buffers,
- struct PP_GLESBuffer_Dev* buffers);
+ const struct PP_GLESBuffer_Dev* buffers);
void (*AssignSysmemBuffers)(PP_Resource video_decoder,
uint32_t no_of_buffers,
- struct PP_SysmemBuffer_Dev* buffers);
+ const struct PP_SysmemBuffer_Dev* buffers);
// Tells the decoder to reuse given picture buffer. Typical use of this
// function is to call from PictureReady callback to recycle picture buffer
« no previous file with comments | « no previous file | ppapi/cpp/dev/video_decoder_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698