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

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

Issue 4148004: Mac gpu: on gpu<->nongpu transitions, make sure to not show uninitialized memory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments 2 Created 10 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/renderer_host/accelerated_surface_container_manager_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 de6ceb857fae4fb8f4b7df9d5c3e9d0e395428a9..243692b395589dca30c1740f34bd22ae4f0cb0a9 100644
--- a/chrome/browser/renderer_host/accelerated_surface_container_mac.h
+++ b/chrome/browser/renderer_host/accelerated_surface_container_mac.h
@@ -76,9 +76,12 @@ class AcceleratedSurfaceContainerMac {
// time the drawing context has changed.
void ForceTextureReload() { texture_needs_upload_ = true; }
- // Notifies the surface that it was painted to.
+ // Notifies the the container that its surface was painted to.
void set_was_painted_to(uint64 surface_id);
+ // Notifies the container that its surface is invalid.
+ void set_surface_invalid() { was_painted_to_ = false; }
+
// Returns if the surface should be shown.
bool should_be_visible() const { return visible_ && was_painted_to_; }
private:
« no previous file with comments | « no previous file | chrome/browser/renderer_host/accelerated_surface_container_manager_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698