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

Unified Diff: ppapi/cpp/private/video_frame_private.h

Issue 18611004: PPAPI: Initialize CompletionCallbackWithOutput storage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months 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/cpp/private/pass_file_handle.h ('k') | ppapi/tests/test_network_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ppapi/cpp/private/pass_file_handle.h ('k') | ppapi/tests/test_network_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698