Order the GL overlays above windows if possible.
BUG=161603
TEST=bubbles have shadows
Review URL: https://chromiumcodereview.appspot.com/11418244
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170506 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 323ab75..e250981 100644
--- a/content/browser/renderer_host/compositing_iosurface_mac.h
+++ b/content/browser/renderer_host/compositing_iosurface_mac.h
@@ -32,8 +32,17 @@
// RenderWidgetHostViewCocoa for blitting the IOSurface.
class CompositingIOSurfaceMac {
public:
- // Returns NULL if IOSurface support is missing or GL APIs fail.
- static CompositingIOSurfaceMac* Create();
+ // Passed to Create() to specify the ordering of the surface relative to the
+ // containing window.
+ enum SurfaceOrder {
+ SURFACE_ORDER_ABOVE_WINDOW,
+ SURFACE_ORDER_BELOW_WINDOW
+ };
+
+ // 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(SurfaceOrder order);
~CompositingIOSurfaceMac();
// Set IOSurface that will be drawn on the next NSView drawRect.