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

Unified Diff: ppapi/proxy/video_decoder_resource_unittest.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/proxy/video_decoder_resource.cc ('k') | ppapi/thunk/interfaces_ppb_public_stable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/video_decoder_resource_unittest.cc
diff --git a/ppapi/proxy/video_decoder_resource_unittest.cc b/ppapi/proxy/video_decoder_resource_unittest.cc
index fa6e89f985ddcec71f7d0a80b956dfb0a3fcb10f..7716940f5a51c94e0e65570d46e97d7121528a5d 100644
--- a/ppapi/proxy/video_decoder_resource_unittest.cc
+++ b/ppapi/proxy/video_decoder_resource_unittest.cc
@@ -58,9 +58,9 @@ class MockCompletionCallback {
class VideoDecoderResourceTest : public PluginProxyTest {
public:
VideoDecoderResourceTest()
- : decoder_iface_(thunk::GetPPB_VideoDecoder_0_2_Thunk()) {}
+ : decoder_iface_(thunk::GetPPB_VideoDecoder_1_0_Thunk()) {}
- const PPB_VideoDecoder_0_2* decoder_iface() const { return decoder_iface_; }
+ const PPB_VideoDecoder_1_0* decoder_iface() const { return decoder_iface_; }
void SendReply(const ResourceMessageCallParams& params,
int32_t result,
@@ -217,10 +217,9 @@ class VideoDecoderResourceTest : public PluginProxyTest {
void SendPictureReady(const ResourceMessageCallParams& params,
uint32_t decode_count,
uint32_t texture_id) {
- SendReply(
- params,
- PP_OK,
- PpapiPluginMsg_VideoDecoder_PictureReady(decode_count, texture_id));
+ PP_Rect visible_rect = PP_MakeRectFromXYWH(0, 0, 640, 480);
+ SendReply(params, PP_OK, PpapiPluginMsg_VideoDecoder_PictureReady(
+ decode_count, texture_id, visible_rect));
}
void SendFlushReply(const ResourceMessageCallParams& params) {
@@ -298,7 +297,7 @@ class VideoDecoderResourceTest : public PluginProxyTest {
return true;
}
- const PPB_VideoDecoder_0_2* decoder_iface_;
+ const PPB_VideoDecoder_1_0* decoder_iface_;
char decode_buffer_[kDecodeBufferSize];
};
« no previous file with comments | « ppapi/proxy/video_decoder_resource.cc ('k') | ppapi/thunk/interfaces_ppb_public_stable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698