Index: content/browser/renderer_host/accelerated_surface_container_manager_mac.cc |
diff --git a/content/browser/renderer_host/accelerated_surface_container_manager_mac.cc b/content/browser/renderer_host/accelerated_surface_container_manager_mac.cc |
index 8b529672f3166d29b7da41170f8468b716966d37..bad3d4d82e39a650ad498beb291f1350ac8aabcb 100644 |
--- a/content/browser/renderer_host/accelerated_surface_container_manager_mac.cc |
+++ b/content/browser/renderer_host/accelerated_surface_container_manager_mac.cc |
@@ -7,6 +7,7 @@ |
#include "base/logging.h" |
#include "content/browser/renderer_host/accelerated_surface_container_mac.h" |
#include "webkit/plugins/npapi/webplugin.h" |
+#include "ui/gfx/rect.h" |
AcceleratedSurfaceContainerManagerMac::AcceleratedSurfaceContainerManagerMac() |
: current_id_(0), |
@@ -145,6 +146,17 @@ void AcceleratedSurfaceContainerManagerMac::SetSurfaceWasPaintedTo( |
container->set_was_painted_to(surface_id); |
} |
+void AcceleratedSurfaceContainerManagerMac::SetSurfaceWasPaintedTo( |
+ gfx::PluginWindowHandle id, |
+ uint64 surface_id, |
+ const gfx::Rect& update_rect) { |
+ base::AutoLock lock(lock_); |
+ |
+ AcceleratedSurfaceContainerMac* container = MapIDToContainer(id); |
+ if (container) |
+ container->set_was_painted_to(surface_id, update_rect); |
+} |
+ |
void AcceleratedSurfaceContainerManagerMac::SetRootSurfaceInvalid() { |
base::AutoLock lock(lock_); |
if (root_container_) |