Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(885)

Unified Diff: content/browser/renderer_host/compositing_iosurface_mac.h

Issue 11418244: Order the GL overlays above windows if possible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops, null check Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/compositing_iosurface_mac.h
diff --git a/content/browser/renderer_host/compositing_iosurface_mac.h b/content/browser/renderer_host/compositing_iosurface_mac.h
index 323ab75487d2ded0a50e6cf513f93b701ff2ffea..e250981d4f6649bcf334325974dea7b785b9f3f4 100644
--- a/content/browser/renderer_host/compositing_iosurface_mac.h
+++ b/content/browser/renderer_host/compositing_iosurface_mac.h
@@ -32,8 +32,17 @@ namespace content {
// 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.

Powered by Google App Engine
This is Rietveld 408576698