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

Unified Diff: webkit/tools/pepper_test_plugin/plugin_object.cc

Issue 322003: Make Pepper NPN variable return a pointer to an allocated... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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/tools/pepper_test_plugin/plugin_object.cc
===================================================================
--- webkit/tools/pepper_test_plugin/plugin_object.cc (revision 30107)
+++ webkit/tools/pepper_test_plugin/plugin_object.cc (working copy)
@@ -237,14 +237,14 @@
PluginObject::PluginObject(NPP npp)
: npp_(npp),
test_object_(browser->createobject(npp, GetTestClass())) {
- if (!initialize_render_context) {
- browser->getvalue(npp_, NPNVInitializeRenderContextFunc,
- reinterpret_cast<void*>(&initialize_render_context));
+ if (!initialize_render_context || !flush_render_context) {
+ NPPepperExtensions* extensions;
+ browser->getvalue(npp_, NPNVPepperExtensions,
+ reinterpret_cast<void*>(&extensions));
+ CHECK(extensions);
+ initialize_render_context = extensions->initializeRender;
CHECK(initialize_render_context);
- }
- if (!flush_render_context) {
- browser->getvalue(npp_, NPNVFlushRenderContextFunc,
- reinterpret_cast<void*>(&flush_render_context));
+ flush_render_context = extensions->flushRender;
CHECK(flush_render_context);
}
}
« webkit/glue/plugins/plugin_host.cc ('K') | « webkit/tools/pepper_test_plugin/README ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698