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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_CPP_PRIVATE_VIDEO_FRAME_PRIVATE_H_ 5 #ifndef PPAPI_CPP_PRIVATE_VIDEO_FRAME_PRIVATE_H_
6 #define PPAPI_CPP_PRIVATE_VIDEO_FRAME_PRIVATE_H_ 6 #define PPAPI_CPP_PRIVATE_VIDEO_FRAME_PRIVATE_H_
7 7
8 #include <string.h>
9
8 #include "ppapi/c/pp_time.h" 10 #include "ppapi/c/pp_time.h"
9 #include "ppapi/c/private/pp_video_frame_private.h" 11 #include "ppapi/c/private/pp_video_frame_private.h"
10 #include "ppapi/cpp/completion_callback.h" 12 #include "ppapi/cpp/completion_callback.h"
11 #include "ppapi/cpp/image_data.h" 13 #include "ppapi/cpp/image_data.h"
12 #include "ppapi/cpp/pass_ref.h" 14 #include "ppapi/cpp/pass_ref.h"
13 15
14 /// @file 16 /// @file
15 /// This file defines the struct used to hold a video frame. 17 /// This file defines the struct used to hold a video frame.
16 18
17 namespace pp { 19 namespace pp {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 typedef PP_VideoFrame_Private* APIArgType; 82 typedef PP_VideoFrame_Private* APIArgType;
81 typedef PP_VideoFrame_Private StorageType; 83 typedef PP_VideoFrame_Private StorageType;
82 84
83 static inline APIArgType StorageToAPIArg(StorageType& t) { 85 static inline APIArgType StorageToAPIArg(StorageType& t) {
84 return &t; 86 return &t;
85 } 87 }
86 88
87 static inline pp::VideoFrame_Private StorageToPluginArg(StorageType& t) { 89 static inline pp::VideoFrame_Private StorageToPluginArg(StorageType& t) {
88 return pp::VideoFrame_Private(PASS_REF, t); 90 return pp::VideoFrame_Private(PASS_REF, t);
89 } 91 }
92
93 static inline void Initialize(StorageType* t ) {
teravest 2013/07/09 21:00:11 Extra whitespace here.
94 memset(t, 0, sizeof(*t));
bbudge 2013/07/09 21:31:16 VideoFrame also has an embedded ImageData resource
95 }
90 }; 96 };
91 97
92 } // namespace internal 98 } // namespace internal
93 99
94 } // namespace pp 100 } // namespace pp
95 101
96 #endif // PPAPI_CPP_PRIVATE_VIDEO_FRAME_PRIVATE_H_ 102 #endif // PPAPI_CPP_PRIVATE_VIDEO_FRAME_PRIVATE_H_
OLDNEW
« 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