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

Unified Diff: src/shared/ppapi_proxy/plugin_audio_config.cc

Issue 4210003: Started on Resource class. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Resource->PluginResource Created 10 years, 1 month 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 | « src/shared/ppapi_proxy/plugin_audio_config.h ('k') | src/shared/ppapi_proxy/plugin_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/ppapi_proxy/plugin_audio_config.cc
diff --git a/src/shared/ppapi_proxy/plugin_audio_config.cc b/src/shared/ppapi_proxy/plugin_audio_config.cc
index f441f5aad3839ced9b97e8aa9a6c1137ecbe94a9..40900d323b930c1c9afd899db36b808ca28a53a5 100644
--- a/src/shared/ppapi_proxy/plugin_audio_config.cc
+++ b/src/shared/ppapi_proxy/plugin_audio_config.cc
@@ -32,9 +32,9 @@ uint32_t RecommendSampleFrameCount(uint32_t request_sample_frame_count) {
return 0;
}
-PP_Bool IsAudioConfig(PP_Resource config) {
- UNREFERENCED_PARAMETER(config);
- return PP_FALSE;
+PP_Bool IsAudioConfig(PP_Resource resource) {
+ return PluginResource::GetAs<PluginAudioConfig>(resource).get()
+ ? PP_TRUE : PP_FALSE;
}
PP_AudioSampleRate_Dev GetSampleRate(PP_Resource config) {
« no previous file with comments | « src/shared/ppapi_proxy/plugin_audio_config.h ('k') | src/shared/ppapi_proxy/plugin_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698