Index: ppapi/cpp/private/video_frame_private.h |
diff --git a/ppapi/cpp/private/video_frame_private.h b/ppapi/cpp/private/video_frame_private.h |
index fed9d1da4793c40213a3b0222efd696f9b0b7cd4..d9ceb72bc2f8e957a558b6d3999b03d9a3412936 100644 |
--- a/ppapi/cpp/private/video_frame_private.h |
+++ b/ppapi/cpp/private/video_frame_private.h |
@@ -5,6 +5,8 @@ |
#ifndef PPAPI_CPP_PRIVATE_VIDEO_FRAME_PRIVATE_H_ |
#define PPAPI_CPP_PRIVATE_VIDEO_FRAME_PRIVATE_H_ |
+#include <string.h> |
+ |
#include "ppapi/c/pp_time.h" |
#include "ppapi/c/private/pp_video_frame_private.h" |
#include "ppapi/cpp/completion_callback.h" |
@@ -87,6 +89,10 @@ struct CallbackOutputTraits<pp::VideoFrame_Private> { |
static inline pp::VideoFrame_Private StorageToPluginArg(StorageType& t) { |
return pp::VideoFrame_Private(PASS_REF, t); |
} |
+ |
+ static inline void Initialize(StorageType* t ) { |
teravest
2013/07/09 21:00:11
Extra whitespace here.
|
+ memset(t, 0, sizeof(*t)); |
bbudge
2013/07/09 21:31:16
VideoFrame also has an embedded ImageData resource
|
+ } |
}; |
} // namespace internal |