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*> |