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

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

Issue 2147002: Fix visibilty handling for accelerated Mac plugins (Closed)
Patch Set: Created 10 years, 7 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
« no previous file with comments | « no previous file | no next file » | 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.cc
diff --git a/chrome/browser/renderer_host/accelerated_surface_container_mac.cc b/chrome/browser/renderer_host/accelerated_surface_container_mac.cc
index fbdf3cff74cf734d1a33a1caafb50c44ca739d9b..87def4991536be38ce425ad12e30bf0128686e07 100644
--- a/chrome/browser/renderer_host/accelerated_surface_container_mac.cc
+++ b/chrome/browser/renderer_host/accelerated_surface_container_mac.cc
@@ -67,7 +67,10 @@ void AcceleratedSurfaceContainerMac::MoveTo(
x_ = geom.window_rect.x();
y_ = geom.window_rect.y();
// TODO(kbr): may need to pay attention to cutout rects.
- clipRect_ = geom.clip_rect;
+ if (geom.visible)
+ clipRect_ = geom.clip_rect;
+ else
+ clipRect_ = gfx::Rect();
}
void AcceleratedSurfaceContainerMac::Draw(CGLContextObj context) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698