summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/cpp')
-rw-r--r--ppapi/cpp/dev/video_capture_dev.cc2
-rw-r--r--ppapi/cpp/dev/video_decoder_client_dev.cc8
-rw-r--r--ppapi/cpp/dev/video_decoder_client_dev.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/ppapi/cpp/dev/video_capture_dev.cc b/ppapi/cpp/dev/video_capture_dev.cc
index 41e36b9..cd2a4b8 100644
--- a/ppapi/cpp/dev/video_capture_dev.cc
+++ b/ppapi/cpp/dev/video_capture_dev.cc
@@ -15,7 +15,7 @@ namespace pp {
namespace {
template <> const char* interface_name<PPB_VideoCapture_Dev>() {
- return PPB_VIDEO_CAPTURE_DEV_INTERFACE;
+ return PPB_VIDEOCAPTURE_DEV_INTERFACE;
}
} // namespace
diff --git a/ppapi/cpp/dev/video_decoder_client_dev.cc b/ppapi/cpp/dev/video_decoder_client_dev.cc
index d70cff5..6186745 100644
--- a/ppapi/cpp/dev/video_decoder_client_dev.cc
+++ b/ppapi/cpp/dev/video_decoder_client_dev.cc
@@ -20,13 +20,13 @@ const char kPPPVideoDecoderInterface[] = PPP_VIDEODECODER_DEV_INTERFACE;
void ProvidePictureBuffers(PP_Instance instance,
PP_Resource decoder,
uint32_t req_num_of_bufs,
- struct PP_Size dimensions) {
+ const PP_Size* dimensions) {
void* object = pp::Instance::GetPerInstanceObject(
instance, kPPPVideoDecoderInterface);
if (!object)
return;
static_cast<VideoDecoderClient_Dev*>(object)->ProvidePictureBuffers(
- decoder, req_num_of_bufs, dimensions);
+ decoder, req_num_of_bufs, *dimensions);
}
void DismissPictureBuffer(PP_Instance instance,
@@ -42,12 +42,12 @@ void DismissPictureBuffer(PP_Instance instance,
void PictureReady(PP_Instance instance,
PP_Resource decoder,
- PP_Picture_Dev picture) {
+ const PP_Picture_Dev* picture) {
void* object = pp::Instance::GetPerInstanceObject(
instance, kPPPVideoDecoderInterface);
if (!object)
return;
- static_cast<VideoDecoderClient_Dev*>(object)->PictureReady(decoder, picture);
+ static_cast<VideoDecoderClient_Dev*>(object)->PictureReady(decoder, *picture);
}
void EndOfStream(PP_Instance instance,
diff --git a/ppapi/cpp/dev/video_decoder_client_dev.h b/ppapi/cpp/dev/video_decoder_client_dev.h
index 5249fed..5510b4c 100644
--- a/ppapi/cpp/dev/video_decoder_client_dev.h
+++ b/ppapi/cpp/dev/video_decoder_client_dev.h
@@ -25,7 +25,7 @@ class VideoDecoderClient_Dev {
// Callback to provide buffers for the decoded output pictures.
virtual void ProvidePictureBuffers(PP_Resource decoder,
uint32_t req_num_of_bufs,
- struct PP_Size dimensions) = 0;
+ const PP_Size& dimensions) = 0;
// Callback for decoder to deliver unneeded picture buffers back to the
// plugin.