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

Unified Diff: webkit/plugins/ppapi/ppb_graphics_3d_impl.cc

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Assertion fixed Created 9 years, 4 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
Index: webkit/plugins/ppapi/ppb_graphics_3d_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc b/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc
index 671a85fcb73ca54d2e781d5aefe65a57e81bbd09..c97b0d5b0566c10596cff99ca6628d981232b030 100644
--- a/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc
+++ b/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc
@@ -67,10 +67,8 @@ PP_Resource PPB_Graphics3D_Impl::Create(PluginInstance* instance,
const int32_t* attrib_list) {
scoped_refptr<PPB_Graphics3D_Impl> graphics_3d(
new PPB_Graphics3D_Impl(instance));
-
if (!graphics_3d->Init(config, share_context, attrib_list))
return 0;
-
return graphics_3d->GetReference();
}
@@ -80,10 +78,8 @@ PP_Resource PPB_Graphics3D_Impl::CreateRaw(PluginInstance* instance,
const int32_t* attrib_list) {
scoped_refptr<PPB_Graphics3D_Impl> graphics_3d(
new PPB_Graphics3D_Impl(instance));
-
if (!graphics_3d->InitRaw(config, share_context, attrib_list))
return 0;
-
return graphics_3d->GetReference();
}

Powered by Google App Engine
This is Rietveld 408576698