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

Side by Side Diff: ppapi/thunk/ppb_audio_buffer_thunk.cc

Issue 1778683003: Ran ppapi/generators/generator.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // From ppb_audio_buffer.idl modified Thu May 15 17:11:43 2014. 5 // From ppb_audio_buffer.idl modified Tue Jun 24 15:44:15 2014.
6
7 #include <stdint.h>
8 6
9 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/c/ppb_audio_buffer.h" 8 #include "ppapi/c/ppb_audio_buffer.h"
11 #include "ppapi/shared_impl/tracked_callback.h" 9 #include "ppapi/shared_impl/tracked_callback.h"
12 #include "ppapi/thunk/enter.h" 10 #include "ppapi/thunk/enter.h"
13 #include "ppapi/thunk/ppapi_thunk_export.h" 11 #include "ppapi/thunk/ppapi_thunk_export.h"
14 #include "ppapi/thunk/ppb_audio_buffer_api.h" 12 #include "ppapi/thunk/ppb_audio_buffer_api.h"
15 13
16 namespace ppapi { 14 namespace ppapi {
17 namespace thunk { 15 namespace thunk {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } 79 }
82 80
83 uint32_t GetDataBufferSize(PP_Resource buffer) { 81 uint32_t GetDataBufferSize(PP_Resource buffer) {
84 VLOG(4) << "PPB_AudioBuffer::GetDataBufferSize()"; 82 VLOG(4) << "PPB_AudioBuffer::GetDataBufferSize()";
85 EnterResource<PPB_AudioBuffer_API> enter(buffer, true); 83 EnterResource<PPB_AudioBuffer_API> enter(buffer, true);
86 if (enter.failed()) 84 if (enter.failed())
87 return 0; 85 return 0;
88 return enter.object()->GetDataBufferSize(); 86 return enter.object()->GetDataBufferSize();
89 } 87 }
90 88
91 const PPB_AudioBuffer_0_1 g_ppb_audiobuffer_thunk_0_1 = {&IsAudioBuffer, 89 const PPB_AudioBuffer_0_1 g_ppb_audiobuffer_thunk_0_1 = {
92 &GetTimestamp, 90 &IsAudioBuffer, &GetTimestamp, &SetTimestamp,
93 &SetTimestamp, 91 &GetSampleRate, &GetSampleSize, &GetNumberOfChannels,
94 &GetSampleRate, 92 &GetNumberOfSamples, &GetDataBuffer, &GetDataBufferSize};
95 &GetSampleSize,
96 &GetNumberOfChannels,
97 &GetNumberOfSamples,
98 &GetDataBuffer,
99 &GetDataBufferSize};
100 93
101 } // namespace 94 } // namespace
102 95
103 PPAPI_THUNK_EXPORT const PPB_AudioBuffer_0_1* GetPPB_AudioBuffer_0_1_Thunk() { 96 PPAPI_THUNK_EXPORT const PPB_AudioBuffer_0_1* GetPPB_AudioBuffer_0_1_Thunk() {
104 return &g_ppb_audiobuffer_thunk_0_1; 97 return &g_ppb_audiobuffer_thunk_0_1;
105 } 98 }
106 99
107 } // namespace thunk 100 } // namespace thunk
108 } // namespace ppapi 101 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c ('k') | ppapi/thunk/ppb_audio_encoder_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698