| 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 393487fae703a7788f853c6c1f36d27e205c2572..3233350d71bb8a9a428f9a27736b484ad3855d5b 100644
|
| --- a/chrome/browser/renderer_host/accelerated_surface_container_mac.h
|
| +++ b/chrome/browser/renderer_host/accelerated_surface_container_mac.h
|
| @@ -67,6 +67,10 @@ class AcceleratedSurfaceContainerMac {
|
| // coordinate system will work out.
|
| void Draw(CGLContextObj context);
|
|
|
| + // Causes the next Draw call to trigger a texture upload. Should be called any
|
| + // time the drawing context has changed.
|
| + void ForceTextureReload() { texture_needs_upload_ = true; }
|
| +
|
| // Enqueue our texture for later deletion. Call this before deleting
|
| // this object.
|
| void EnqueueTextureForDeletion(
|
| @@ -104,6 +108,9 @@ class AcceleratedSurfaceContainerMac {
|
| // with it.
|
| GLuint texture_;
|
|
|
| + // True if we need to upload the texture again during the next draw.
|
| + bool texture_needs_upload_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerMac);
|
| };
|
|
|
|
|