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

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

Issue 4101002: Mac/gpu: Don't show uninitialized surfaces while resizing plugins / composited tabs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: white padding 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
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 243692b395589dca30c1740f34bd22ae4f0cb0a9..0c343e42dde69050d5424ce5501e2569e9bb33ba 100644
--- a/chrome/browser/renderer_host/accelerated_surface_container_mac.h
+++ b/chrome/browser/renderer_host/accelerated_surface_container_mac.h
@@ -100,12 +100,17 @@ class AcceleratedSurfaceContainerMac {
// The id of |surface_|, or 0 if |surface_| is NULL.
uint64 surface_id_;
+ // The width and height of the io surface. During resizing, this is different
+ // from |width_| and |height_|.
+ int32 surface_width_;
+ int32 surface_height_;
+
// 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.
scoped_ptr<TransportDIB> transport_dib_;
- // The width and height of the surface.
+ // The width and height of the container.
int32 width_;
int32 height_;

Powered by Google App Engine
This is Rietveld 408576698