Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Unified Diff: chrome/browser/renderer_host/accelerated_surface_container_mac.h

Issue 1166002: Fix handling of Mac accelerated plugin layers across tab switch. (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698