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

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

Issue 164873006: Do not share a GL context between CoreAnimation and async readback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More comments Created 6 years, 10 months 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
« no previous file with comments | « no previous file | content/browser/renderer_host/compositing_iosurface_layer_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/compositing_iosurface_context_mac.h
diff --git a/content/browser/renderer_host/compositing_iosurface_context_mac.h b/content/browser/renderer_host/compositing_iosurface_context_mac.h
index 357925b719b1601d566d0cd98a437b1b7d1b9c0f..f881dc1f831058915d4ac705acf7b0a534247a45 100644
--- a/content/browser/renderer_host/compositing_iosurface_context_mac.h
+++ b/content/browser/renderer_host/compositing_iosurface_context_mac.h
@@ -30,7 +30,13 @@ class CompositingIOSurfaceShaderPrograms;
class CompositingIOSurfaceContext
: public base::RefCounted<CompositingIOSurfaceContext> {
public:
- enum { kOffscreenContextWindowNumber = -2 };
+ enum {
+ // The number used to look up the context used for async readback and for
+ // initializing the IOSurface.
+ kOffscreenContextWindowNumber = -2,
+ // The number used to look up the context used by CAOpenGLLayers.
+ kCALayerContextWindowNumber = -3,
+ };
// Get or create a GL context for the specified window with the specified
// surface ordering. Share these GL contexts as much as possible because
« no previous file with comments | « no previous file | content/browser/renderer_host/compositing_iosurface_layer_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698