]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix calling our new APIs in patch
authorCheng Zhao <zcbenz@gmail.com>
Thu, 2 Apr 2015 15:02:22 +0000 (23:02 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 2 Apr 2015 15:02:22 +0000 (23:02 +0800)
atom/browser/native_window.cc

index 7d54af028e53164b3d0db55e5220dc83b27d124c..34fd2325ee4d2c9d2bf33461f920cad15f0ecfc6 100644 (file)
@@ -54,8 +54,9 @@
 #include "ui/gfx/geometry/size_conversions.h"
 #include "ui/gfx/geometry/point.h"
 #include "ui/gfx/geometry/rect.h"
-#include "ui/gfx/screen.h"
 #include "ui/gfx/geometry/size.h"
+#include "ui/gfx/screen.h"
+#include "ui/gl/gpu_switching_manager.h"
 
 #if defined(OS_WIN)
 #include "ui/gfx/switches.h"
@@ -65,10 +66,6 @@ using content::NavigationEntry;
 using content::RenderWidgetHostView;
 using content::RenderWidgetHost;
 
-namespace content {
-CONTENT_EXPORT extern bool g_use_transparent_window;
-}
-
 namespace atom {
 
 namespace {
@@ -115,7 +112,7 @@ NativeWindow::NativeWindow(content::WebContents* web_contents,
 
   // Tell the content module to initialize renderer widget with transparent
   // mode.
-  content::g_use_transparent_window = transparent_;
+  ui::GpuSwitchingManager::SetTransparent(transparent_);
 
   // Read icon before window is created.
   options.Get(switches::kIcon, &icon_);