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

Unified Diff: gpu/demos/framework/main_pepper.cc

Issue 553050: Windows now uses the TLS API instead of __declspec(thread) for client side co... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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: gpu/demos/framework/main_pepper.cc
===================================================================
--- gpu/demos/framework/main_pepper.cc (revision 37151)
+++ gpu/demos/framework/main_pepper.cc (working copy)
@@ -5,6 +5,7 @@
#include "base/at_exit.h"
#include "base/logging.h"
#include "gpu/demos/framework/plugin.h"
+#include "gpu/pgl/pgl.h"
#include "webkit/glue/plugins/nphostapi.h"
namespace {
@@ -139,10 +140,12 @@
NPError API_CALL NP_Initialize(NPNetscapeFuncs* browser_funcs) {
g_at_exit_manager_ = new base::AtExitManager();
gpu::demos::g_browser = browser_funcs;
+ pglInitialize();
return NPERR_NO_ERROR;
}
void API_CALL NP_Shutdown() {
+ pglTerminate();
delete g_at_exit_manager_;
}
} // extern "C"

Powered by Google App Engine
This is Rietveld 408576698