    [cocoa_view_ setLayer:background_layer_];
    [cocoa_view_ setWantsLayer:YES];
  
-@@ -642,6 +650,8 @@ float FlipYFromRectToScreen(float y, float rect_height) {
+@@ -664,6 +672,8 @@ float FlipYFromRectToScreen(float y, float rect_height) {
      browser_compositor_->Unsuspend();
      browser_compositor_state_ = BrowserCompositorActive;
    }

 }
 
 void RenderWidgetHostViewMac::SuspendBrowserCompositorView() {
@@ -1880,6 +1890,9 @@ - (BOOL)acceptsMouseEventsWhenInactive {
 }
 
 - (BOOL)acceptsFirstMouse:(NSEvent*)theEvent {

diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index 86481a9..6842f8b 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -87,6 +87,7 @@
 #include "ui/gfx/geometry/rect_conversions.h"
 #include "ui/gfx/geometry/size_conversions.h"
 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
+#include "ui/gl/gpu_switching_manager.h"
 #include "ui/gl/gl_switches.h"
 
