Index: chrome/browser/renderer_host/accelerated_surface_container_mac.h |
diff --git a/chrome/browser/renderer_host/accelerated_surface_container_mac.h b/chrome/browser/renderer_host/accelerated_surface_container_mac.h |
index 04742f31e2c8cb0166551dd785837d3b0de92fa9..de6ceb857fae4fb8f4b7df9d5c3e9d0e395428a9 100644 |
--- a/chrome/browser/renderer_host/accelerated_surface_container_mac.h |
+++ b/chrome/browser/renderer_host/accelerated_surface_container_mac.h |
@@ -77,7 +77,7 @@ class AcceleratedSurfaceContainerMac { |
void ForceTextureReload() { texture_needs_upload_ = true; } |
// Notifies the surface that it was painted to. |
- void set_was_painted_to() { was_painted_to_ = true; } |
+ void set_was_painted_to(uint64 surface_id); |
// Returns if the surface should be shown. |
bool should_be_visible() const { return visible_ && was_painted_to_; } |
@@ -94,6 +94,9 @@ class AcceleratedSurfaceContainerMac { |
// IOSurfaceRef type when building on 10.5. |
base::mac::ScopedCFTypeRef<CFTypeRef> surface_; |
+ // The id of |surface_|, or 0 if |surface_| is NULL. |
+ uint64 surface_id_; |
+ |
// The TransportDIB which is used in pre-10.6 systems where the IOSurface |
// API is not supported. This is a weak reference to the actual TransportDIB |
// whic is owned by the GPU process. |