summaryrefslogtreecommitdiffstats
path: root/o3d/gpu_plugin/gpu_plugin_object_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/gpu_plugin/gpu_plugin_object_win.cc')
-rw-r--r--o3d/gpu_plugin/gpu_plugin_object_win.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/o3d/gpu_plugin/gpu_plugin_object_win.cc b/o3d/gpu_plugin/gpu_plugin_object_win.cc
index ddcdf2c..9bdb331 100644
--- a/o3d/gpu_plugin/gpu_plugin_object_win.cc
+++ b/o3d/gpu_plugin/gpu_plugin_object_win.cc
@@ -5,6 +5,7 @@
#include <windows.h>
#include "o3d/gpu_plugin/gpu_plugin_object.h"
+#include "o3d/gpu_plugin/gpu_processor.h"
namespace o3d {
namespace gpu_plugin {
@@ -49,8 +50,18 @@ NPError GPUPluginObject::PlatformSpecificSetWindow(NPWindow* new_window) {
reinterpret_cast<LONG>(WindowProc));
}
+ UpdateProcessorWindow();
+
return NPERR_NO_ERROR;
}
+void GPUPluginObject::UpdateProcessorWindow() {
+ if (processor_) {
+ processor_->SetWindow(reinterpret_cast<HWND>(window_.window),
+ static_cast<int>(window_.width),
+ static_cast<int>(window_.height));
+ }
+}
+
} // namespace gpu_plugin
} // namespace o3d