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

Unified Diff: src/shared/ppapi_proxy/plugin_graphics_2d.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_graphics_2d.h ('k') | src/shared/ppapi_proxy/plugin_graphics_3d.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/ppapi_proxy/plugin_graphics_2d.cc
diff --git a/src/shared/ppapi_proxy/plugin_graphics_2d.cc b/src/shared/ppapi_proxy/plugin_graphics_2d.cc
index 1fdde6e90fa4ce2d5de49a404df775d74cc6e102..82557935717a7d2ea17843711c8574f1ca86e61d 100644
--- a/src/shared/ppapi_proxy/plugin_graphics_2d.cc
+++ b/src/shared/ppapi_proxy/plugin_graphics_2d.cc
@@ -54,17 +54,8 @@ PP_Resource Create(PP_Module module,
}
PP_Bool IsGraphics2D(PP_Resource resource) {
- int32_t result;
- NaClSrpcError retval =
- PpbGraphics2DRpcClient::PPB_Graphics2D_IsGraphics2D(
- GetMainSrpcChannel(),
- static_cast<int64_t>(resource),
- &result);
- if (retval == NACL_SRPC_RESULT_OK) {
- return result ? PP_TRUE : PP_FALSE;
- } else {
- return PP_FALSE;
- }
+ return PluginResource::GetAs<PluginGraphics2D>(resource).get()
+ ? PP_TRUE : PP_FALSE;
}
PP_Bool Describe(PP_Resource graphics_2d,
« no previous file with comments | « src/shared/ppapi_proxy/plugin_graphics_2d.h ('k') | src/shared/ppapi_proxy/plugin_graphics_3d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698