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

Unified Diff: content/browser/compositor/gpu_process_transport_factory.h

Issue 1097223002: Mac: Fix black flashing during tab switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wait for swap to draw frames Created 5 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/compositor/gpu_process_transport_factory.h
diff --git a/content/browser/compositor/gpu_process_transport_factory.h b/content/browser/compositor/gpu_process_transport_factory.h
index 7ed1af629708e41ad0ee00abbb6af26fa68137d6..54f02ef29511c998c36e58cf51a0a73fec614c9f 100644
--- a/content/browser/compositor/gpu_process_transport_factory.h
+++ b/content/browser/compositor/gpu_process_transport_factory.h
@@ -68,8 +68,10 @@ class GpuProcessTransportFactory
void RemoveObserver(ImageTransportFactoryObserver* observer) override;
#if defined(OS_MACOSX)
void OnSurfaceDisplayed(int surface_id) override;
- void OnCompositorRecycled(ui::Compositor* compositor) override;
- bool SurfaceShouldNotShowFramesAfterRecycle(int surface_id) const override;
+ void SetCompositorSuspendedForRecycle(ui::Compositor* compositor,
+ bool suspended) override;
+ bool SurfaceShouldNotShowFramesAfterSuspendForRecycle(
+ int surface_id) const override;
#endif
private:

Powered by Google App Engine
This is Rietveld 408576698