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

Unified Diff: ppapi/thunk/ppb_video_decoder_thunk.cc

Issue 703753002: Pepper: Expose visible_rect to PPB_VideoDecoder.GetPicture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/thunk/ppb_video_decoder_api.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_video_decoder_thunk.cc
diff --git a/ppapi/thunk/ppb_video_decoder_thunk.cc b/ppapi/thunk/ppb_video_decoder_thunk.cc
index 8219fdf14de235b50463f4b30e0aa08d272bbe6e..c2e4c7e7821743c35334bdf32d35183b03012948 100644
--- a/ppapi/thunk/ppb_video_decoder_thunk.cc
+++ b/ppapi/thunk/ppb_video_decoder_thunk.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// From ppb_video_decoder.idl modified Mon Sep 8 16:40:15 2014.
+// From ppb_video_decoder.idl modified Wed Nov 5 13:39:36 2014.
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_errors.h"
@@ -76,6 +76,17 @@ int32_t Decode(PP_Resource video_decoder,
enter.callback()));
}
+int32_t GetPicture_0_1(PP_Resource video_decoder,
+ struct PP_VideoPicture_0_1* picture,
+ struct PP_CompletionCallback callback) {
+ VLOG(4) << "PPB_VideoDecoder::GetPicture()";
+ EnterResource<PPB_VideoDecoder_API> enter(video_decoder, callback, true);
+ if (enter.failed())
+ return enter.retval();
+ return enter.SetResult(
+ enter.object()->GetPicture0_1(picture, enter.callback()));
+}
+
int32_t GetPicture(PP_Resource video_decoder,
struct PP_VideoPicture* picture,
struct PP_CompletionCallback callback) {
@@ -113,27 +124,32 @@ int32_t Reset(PP_Resource video_decoder,
return enter.SetResult(enter.object()->Reset(enter.callback()));
}
-const PPB_VideoDecoder_0_1 g_ppb_videodecoder_thunk_0_1 = {
- &Create,
- &IsVideoDecoder,
- &Initialize_0_1,
- &Decode,
- &GetPicture,
- &RecyclePicture,
- &Flush,
- &Reset
-};
-
-const PPB_VideoDecoder_0_2 g_ppb_videodecoder_thunk_0_2 = {
- &Create,
- &IsVideoDecoder,
- &Initialize,
- &Decode,
- &GetPicture,
- &RecyclePicture,
- &Flush,
- &Reset
-};
+const PPB_VideoDecoder_0_1 g_ppb_videodecoder_thunk_0_1 = {&Create,
+ &IsVideoDecoder,
+ &Initialize_0_1,
+ &Decode,
+ &GetPicture_0_1,
+ &RecyclePicture,
+ &Flush,
+ &Reset};
+
+const PPB_VideoDecoder_0_2 g_ppb_videodecoder_thunk_0_2 = {&Create,
+ &IsVideoDecoder,
+ &Initialize,
+ &Decode,
+ &GetPicture_0_1,
+ &RecyclePicture,
+ &Flush,
+ &Reset};
+
+const PPB_VideoDecoder_1_0 g_ppb_videodecoder_thunk_1_0 = {&Create,
+ &IsVideoDecoder,
+ &Initialize,
+ &Decode,
+ &GetPicture,
+ &RecyclePicture,
+ &Flush,
+ &Reset};
} // namespace
@@ -147,5 +163,9 @@ PPAPI_THUNK_EXPORT const PPB_VideoDecoder_0_2*
return &g_ppb_videodecoder_thunk_0_2;
}
+PPAPI_THUNK_EXPORT const PPB_VideoDecoder_1_0* GetPPB_VideoDecoder_1_0_Thunk() {
+ return &g_ppb_videodecoder_thunk_1_0;
+}
+
} // namespace thunk
} // namespace ppapi
« no previous file with comments | « ppapi/thunk/ppb_video_decoder_api.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698