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

Unified Diff: src/shared/ppapi_proxy/plugin_graphics_3d.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_3d.h ('k') | src/shared/ppapi_proxy/plugin_image_data.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_3d.cc
diff --git a/src/shared/ppapi_proxy/plugin_graphics_3d.cc b/src/shared/ppapi_proxy/plugin_graphics_3d.cc
index f1bcc07cd0daf037702b8d3444ac24b28b6b2ec0..9fc95079a5277f6ba39201c3e877c4373029b53a 100644
--- a/src/shared/ppapi_proxy/plugin_graphics_3d.cc
+++ b/src/shared/ppapi_proxy/plugin_graphics_3d.cc
@@ -19,8 +19,8 @@ namespace ppapi_proxy {
namespace {
PP_Bool IsGraphics3D(PP_Resource resource) {
- UNREFERENCED_PARAMETER(resource);
- return PP_FALSE;
+ return PluginResource::GetAs<PluginGraphics3D>(resource).get()
+ ? PP_TRUE : PP_FALSE;
}
PP_Bool GetConfigs(int32_t* configs,
« no previous file with comments | « src/shared/ppapi_proxy/plugin_graphics_3d.h ('k') | src/shared/ppapi_proxy/plugin_image_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698