diff options
author | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-20 01:03:45 +0000 |
---|---|---|
committer | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-20 01:03:45 +0000 |
commit | ebc717e8bbba0699fc3527225f622c3e31cbccf1 (patch) | |
tree | abb47e9c00be4ec42d85c5b2437de91a5fba74c4 /o3d/plugin/win/main_win.cc | |
parent | 0e1569d61a3e34999bace10a7ca497b673454ada (diff) | |
download | chromium_src-ebc717e8bbba0699fc3527225f622c3e31cbccf1.zip chromium_src-ebc717e8bbba0699fc3527225f622c3e31cbccf1.tar.gz chromium_src-ebc717e8bbba0699fc3527225f622c3e31cbccf1.tar.bz2 |
Removed O3D command buffer protocol code and O3D comand buffer configuration.
Review URL: http://codereview.chromium.org/415004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32576 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/plugin/win/main_win.cc')
-rw-r--r-- | o3d/plugin/win/main_win.cc | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/o3d/plugin/win/main_win.cc b/o3d/plugin/win/main_win.cc index da4a1c2..6e8743f 100644 --- a/o3d/plugin/win/main_win.cc +++ b/o3d/plugin/win/main_win.cc @@ -51,31 +51,14 @@ #include "v8/include/v8.h" #include "breakpad/win/bluescreen_detector.h" -#if defined(RENDERER_CB) -#include "core/cross/command_buffer/renderer_cb.h" -#include "core/cross/command_buffer/display_window_cb.h" -#include "gpu/command_buffer/common/command_buffer.h" -#endif - using glue::_o3d::PluginObject; using glue::StreamManager; using o3d::DisplayWindowWindows; using o3d::Event; -#if defined(RENDERER_CB) -using command_buffer::CommandBuffer; -#endif - namespace { // The instance handle of the O3D DLL. HINSTANCE g_module_instance; - -// TODO(apatrick): We can have an NPBrowser in the other configurations when we -// move over to gyp. This is just to avoid having to write scons files for -// np_utils. -#if defined(RENDERER_CB) -np_utils::NPBrowser* g_browser; -#endif } // namespace anonymous #if !defined(O3D_INTERNAL_PLUGIN) @@ -736,10 +719,6 @@ extern "C" { NPError OSCALL NP_Initialize(NPNetscapeFuncs *browserFuncs) { HANDLE_CRASHES; -#if defined(RENDERER_CB) - g_browser = new np_utils::NPBrowser(browserFuncs); -#endif - NPError retval = InitializeNPNApi(browserFuncs); if (retval != NPERR_NO_ERROR) return retval; return InitializePlugin(); @@ -778,11 +757,6 @@ NPError OSCALL NP_Shutdown(void) { g_bluescreen_detector = NULL; } -#if defined(RENDERER_CB) - delete g_browser; - g_browser = NULL; -#endif - #endif // O3D_INTERNAL_PLUGIN return NPERR_NO_ERROR; @@ -915,27 +889,10 @@ NPError NPP_SetWindow(NPP instance, NPWindow *window) { ::ShowWindow(content_window, SW_SHOW); // create and assign the graphics context -#if defined(RENDERER_CB) - const unsigned int kDefaultCommandBufferSize = 256 << 10; - - // RendererCB takes ownership of CommandBuffer. - CommandBuffer* command_buffer = - RendererCBLocal::CreateCommandBuffer(instance, - obj->GetHWnd(), - kDefaultCommandBufferSize); - - DisplayWindowCB default_display; - default_display.set_command_buffer(command_buffer); - - obj->CreateRenderer(default_display); - obj->renderer()->Resize(window->width, window->height); - obj->client()->Init(); -#else DisplayWindowWindows default_display; default_display.set_hwnd(obj->GetHWnd()); obj->CreateRenderer(default_display); obj->client()->Init(); -#endif // we set the timer to 10ms or 100fps. At the time of this comment // the renderer does a vsync the max fps it will run will be the refresh |