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

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

Issue 231863002: Mac: Recreate browser-side GL contexts on GPU switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 6 years, 8 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
Index: content/browser/renderer_host/render_widget_host_view_mac.h
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.h b/content/browser/renderer_host/render_widget_host_view_mac.h
index f00b61630ee8617798046b31197319b5cbbb1279..b634a355b1a8502fa646a43d965201fc72702666 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.h
+++ b/content/browser/renderer_host/render_widget_host_view_mac.h
@@ -546,13 +546,18 @@ class RenderWidgetHostViewMac : public RenderWidgetHostViewBase,
bool EnsureCompositedIOSurface() WARN_UNUSED_RESULT;
void EnsureCompositedIOSurfaceLayer();
+ enum DestroyCompositedIOSurfaceLayerBehavior {
+ kLeaveLayerInHierarchy,
+ kRemoveLayerFromHierarchy,
+ };
+ void DestroyCompositedIOSurfaceLayer(
+ DestroyCompositedIOSurfaceLayerBehavior destroy_layer_behavior);
enum DestroyContextBehavior {
kLeaveContextBoundToView,
kDestroyContext,
};
- void DestroyCompositedIOSurfaceLayer();
- void DestroyCompositedIOSurfaceAndLayer(DestroyContextBehavior
- destroy_context_behavior);
+ void DestroyCompositedIOSurfaceAndLayer(
+ DestroyContextBehavior destroy_context_behavior);
void DestroyCompositingStateOnError();

Powered by Google App Engine
This is Rietveld 408576698