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

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

Issue 4142004: Let every "accelerated IO surface swapped" message have an identifier of the surface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 10 years, 2 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 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.

Powered by Google App Engine
This is Rietveld 408576698