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

Unified Diff: src/shared/ppapi_proxy/plugin_buffer.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_buffer.h ('k') | src/shared/ppapi_proxy/plugin_core.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/ppapi_proxy/plugin_buffer.cc
diff --git a/src/shared/ppapi_proxy/plugin_buffer.cc b/src/shared/ppapi_proxy/plugin_buffer.cc
index ee6f56a16aebaa374737809c4d194276405f555d..dc9839e6c3e5680d41f39eaef9f2f858c0ea40b3 100644
--- a/src/shared/ppapi_proxy/plugin_buffer.cc
+++ b/src/shared/ppapi_proxy/plugin_buffer.cc
@@ -25,8 +25,8 @@ PP_Resource Create(PP_Module module, int32_t size_in_bytes) {
}
PP_Bool IsBuffer(PP_Resource resource) {
- UNREFERENCED_PARAMETER(resource);
- return PP_FALSE;
+ return PluginResource::GetAs<PluginBuffer>(resource).get()
+ ? PP_TRUE : PP_FALSE;
}
PP_Bool Describe(PP_Resource resource, int32_t* size_in_bytes) {
« no previous file with comments | « src/shared/ppapi_proxy/plugin_buffer.h ('k') | src/shared/ppapi_proxy/plugin_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698