Only set AllowOverlappingViews if necessary

With this change, AllowOverlappingViews is only set if the find bar
is visible or if window is in presentation mode.

BUG=236460

Review URL: https://chromiumcodereview.appspot.com/16140023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204580 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/renderer_host/compositing_iosurface_mac.h b/content/browser/renderer_host/compositing_iosurface_mac.h
index 28eec052..bae6920 100644
--- a/content/browser/renderer_host/compositing_iosurface_mac.h
+++ b/content/browser/renderer_host/compositing_iosurface_mac.h
@@ -54,8 +54,7 @@
   // Returns NULL if IOSurface support is missing or GL APIs fail. Specify in
   // |order| the desired ordering relationship of the surface to the containing
   // window.
-  static CompositingIOSurfaceMac* Create(int window_number,
-                                         SurfaceOrder order);
+  static CompositingIOSurfaceMac* Create(int window_number);
   ~CompositingIOSurfaceMac();
 
   // Set IOSurface that will be drawn on the next NSView drawRect.
@@ -232,8 +231,7 @@
   // GL context (if multiple visible windows are using the same GL context
   // then call to setView call can stall and prevent reaching 60fps).
   void SwitchToContextOnNewWindow(NSView* view,
-                                  int window_number,
-                                  SurfaceOrder surface_order);
+                                  int window_number);
 
   bool IsVendorIntel();