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

Unified Diff: content/renderer/pepper/resource_creation_impl.cc

Issue 22320004: Add a new parameter |latency| to PPB_Audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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 | « content/renderer/pepper/resource_creation_impl.h ('k') | ppapi/api/ppb_audio.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/resource_creation_impl.cc
diff --git a/content/renderer/pepper/resource_creation_impl.cc b/content/renderer/pepper/resource_creation_impl.cc
index 3f25b2ac5a007ba6d38746dcc69ee20abc1f8bbe..81ab97f521f9490dc1f98a4e520371b9fcdca2bd 100644
--- a/content/renderer/pepper/resource_creation_impl.cc
+++ b/content/renderer/pepper/resource_creation_impl.cc
@@ -17,6 +17,7 @@
#include "content/renderer/pepper/ppb_x509_certificate_private_impl.h"
#include "ppapi/c/pp_size.h"
#include "ppapi/shared_impl/ppb_audio_config_shared.h"
+#include "ppapi/shared_impl/ppb_audio_shared.h"
#include "ppapi/shared_impl/ppb_image_data_shared.h"
#include "ppapi/shared_impl/ppb_input_event_shared.h"
#include "ppapi/shared_impl/ppb_resource_array_shared.h"
@@ -35,13 +36,24 @@ ResourceCreationImpl::ResourceCreationImpl(PepperPluginInstanceImpl* instance) {
ResourceCreationImpl::~ResourceCreationImpl() {
}
+PP_Resource ResourceCreationImpl::CreateAudio1_0(
+ PP_Instance instance,
+ PP_Resource config_id,
+ PPB_Audio_Callback_1_0 audio_callback,
+ void* user_data) {
+ return PPB_Audio_Impl::Create(
+ instance, config_id, ppapi::AudioCallbackCombined(audio_callback),
+ user_data);
+}
+
PP_Resource ResourceCreationImpl::CreateAudio(
PP_Instance instance,
PP_Resource config_id,
PPB_Audio_Callback audio_callback,
void* user_data) {
- return PPB_Audio_Impl::Create(instance, config_id, audio_callback,
- user_data);
+ return PPB_Audio_Impl::Create(
+ instance, config_id, ppapi::AudioCallbackCombined(audio_callback),
+ user_data);
}
PP_Resource ResourceCreationImpl::CreateAudioConfig(
« no previous file with comments | « content/renderer/pepper/resource_creation_impl.h ('k') | ppapi/api/ppb_audio.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698