small fixes
authorHeilig Benedek <benecene@gmail.com>
Tue, 2 Aug 2016 10:56:03 +0000 (12:56 +0200)
committerHeilig Benedek <benecene@gmail.com>
Tue, 2 Aug 2016 10:56:03 +0000 (12:56 +0200)
atom/browser/osr_render_widget_host_view.cc
atom/browser/osr_render_widget_host_view.h

index 5751844..f3cee7a 100644 (file)
@@ -381,7 +381,9 @@ OffScreenRenderWidgetHostView::~OffScreenRenderWidgetHostView() {
     delegated_frame_host_->WasHidden();
   delegated_frame_host_->ResetCompositor();
 
+#if defined(OS_MACOSX)
   DestroyPlatformWidget();
+#endif
 
   if (copy_frame_generator_.get())
     copy_frame_generator_.reset(NULL);
index 3d15bae..f3b578a 100644 (file)
@@ -237,18 +237,10 @@ private:
   gfx::AcceleratedWidget compositor_widget_;
   std::unique_ptr<ui::Layer> root_layer_;
 
-#if defined(OS_WIN)
-  std::unique_ptr<gfx::WindowImpl> window_;
-#elif defined(OS_MACOSX)
+#if defined(OS_MACOSX)
   NSWindow* window_;
   CALayer* background_layer_;
   std::unique_ptr<content::BrowserCompositorMac> browser_compositor_;
-#elif defined(USE_X11)
-  CefWindowX11* window_;
-  std::unique_ptr<ui::XScopedCursor> invisible_cursor_;
-#endif
-
-#if defined(OS_MACOSX)
   NSTextInputContext* text_input_context_osr_mac_;
 
   // Selected text on the renderer.