Chromium Code Reviews| Index: content/browser/renderer_host/accelerated_surface_container_mac.h |
| diff --git a/content/browser/renderer_host/accelerated_surface_container_mac.h b/content/browser/renderer_host/accelerated_surface_container_mac.h |
| index c46430fc6064801fcc8d0a1024719f7e7bcd9dae..debb9c8e85bc7ff9d3b40a948da8d7a122ebf2e4 100644 |
| --- a/content/browser/renderer_host/accelerated_surface_container_mac.h |
| +++ b/content/browser/renderer_host/accelerated_surface_container_mac.h |
| @@ -83,6 +83,9 @@ class AcceleratedSurfaceContainerMac { |
| // Notifies the the container that its surface was painted to. |
| void set_was_painted_to(uint64 surface_id); |
| + void set_was_painted_to(uint64 surface_id, |
|
apatrick_chromium
2011/12/05 22:42:45
nit: const gfx::Rect&
jonathan.backer
2011/12/06 18:29:31
Done.
|
| + int x, int y, |
| + int width, int height); |
| // Notifies the container that its surface is invalid. |
| void set_surface_invalid() { was_painted_to_ = false; } |
| @@ -129,6 +132,10 @@ class AcceleratedSurfaceContainerMac { |
| // True if we need to upload the texture again during the next draw. |
| bool texture_needs_upload_; |
| + // The region that was updated via a partial update. |update_rect_.IsEmpty()| |
| + // indicates that the whole region was updated. |
| + gfx::Rect update_rect_; |
| + |
| // This may refer to an old version of the texture if the container is |
| // resized, for example. |
| GLuint texture_pending_deletion_; |
| @@ -146,6 +153,8 @@ class AcceleratedSurfaceContainerMac { |
| // Enqueue our texture for later deletion. |
| void EnqueueTextureForDeletion(); |
| + void set_was_painted_to_common(uint64 surface_id); |
| + |
| DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerMac); |
| }; |