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

Unified Diff: ppapi/cpp/video_decoder.h

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
Index: ppapi/cpp/video_decoder.h
diff --git a/ppapi/cpp/video_decoder.h b/ppapi/cpp/video_decoder.h
index cc7267ba680d9f1931de08118318c8049e48bd60..bfab3c5745f09d057b713050c79148e95a7858da 100644
--- a/ppapi/cpp/video_decoder.h
+++ b/ppapi/cpp/video_decoder.h
@@ -15,7 +15,7 @@
/// @file
/// This file defines the API to create and use a VideoDecoder resource.
-struct PP_FileInfo;
+struct PP_Rect;
namespace pp {
@@ -119,6 +119,9 @@ class VideoDecoder : public Resource {
/// When the plugin is finished using the picture, it should return it to the
/// system by calling RecyclePicture().
///
+ /// @param[in] visible_rect A <code>PP_Rect</code> to hold the visible
+ /// subrectangle of the picture. The plugin should only display the visible
+ /// area of the picture.
/// @param[in] callback A <code>CompletionCallbackWithOutput</code> to be
/// called on completion, and on success, to hold the picture descriptor.
///
@@ -129,6 +132,7 @@ class VideoDecoder : public Resource {
/// Returns PP_ERROR_ABORTED when Reset() is called, or if a call to Flush()
/// completes while GetPicture() is pending.
int32_t GetPicture(
+ PP_Rect* visible_rect,
const CompletionCallbackWithOutput<PP_VideoPicture>& callback);
dmichael (off chromium) 2014/11/05 19:28:08 It seems pretty confusing that we have a callback
bbudge 2014/11/05 22:41:48 Using a new struct instead.
/// Recycles a picture that the plugin has received from the decoder.

Powered by Google App Engine
This is Rietveld 408576698