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

Unified Diff: chrome/browser/renderer_host/accelerated_surface_container_manager_mac.h

Issue 3125033: Mac: Re-fix hidden CoreAnimation plugins. (Closed)
Patch Set: real fix Created 10 years, 4 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: chrome/browser/renderer_host/accelerated_surface_container_manager_mac.h
diff --git a/chrome/browser/renderer_host/accelerated_surface_container_manager_mac.h b/chrome/browser/renderer_host/accelerated_surface_container_manager_mac.h
index 1ba50a88659d2c08ff61f207173cd42023edaf94..cd4c1b9c83361611fbcd6c87cf7234a42c93b7ff 100644
--- a/chrome/browser/renderer_host/accelerated_surface_container_manager_mac.h
+++ b/chrome/browser/renderer_host/accelerated_surface_container_manager_mac.h
@@ -65,11 +65,17 @@ class AcceleratedSurfaceContainerManagerMac {
// Should be called any time the drawing context has changed.
void ForceTextureReload();
+ // Notifies a surface that it has been painted to.
+ void SetSurfaceWasPaintedTo(gfx::PluginWindowHandle id);
+
+ // Returns if a given surface should be shown.
+ bool SurfaceShouldBeVisible(gfx::PluginWindowHandle id) const;
private:
uint32 current_id_;
// Maps a "fake" plugin window handle to the corresponding container.
- AcceleratedSurfaceContainerMac* MapIDToContainer(gfx::PluginWindowHandle id);
+ AcceleratedSurfaceContainerMac*
+ MapIDToContainer(gfx::PluginWindowHandle id) const;
// A map that associates plugin window handles with their containers.
typedef std::map<gfx::PluginWindowHandle, AcceleratedSurfaceContainerMac*>

Powered by Google App Engine
This is Rietveld 408576698