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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 10830322: aura: fix flashing when switching tabs rapidly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 50269ae02639797ec76b7cc0d2a590c0304a8bc0..efb6e6cee22bd24898d7f6c563510d9bfdb2fb04 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -618,9 +618,8 @@ void RenderWidgetHostViewAura::AcceleratedSurfaceBuffersSwapped(
surface_route_id_ = params_in_pixel.route_id;
// If protection state changed, then this swap is stale. We must still ACK but
// do not update current_surface_ since it may have been discarded.
- if (host_->is_hidden() ||
- (params_in_pixel.protection_state_id &&
- params_in_pixel.protection_state_id != protection_state_id_)) {
+ if (params_in_pixel.protection_state_id &&
+ params_in_pixel.protection_state_id != protection_state_id_) {
DCHECK(!current_surface_);
if (!params_in_pixel.skip_ack)
InsertSyncPointAndACK(params_in_pixel.route_id, gpu_host_id, NULL);
@@ -689,9 +688,8 @@ void RenderWidgetHostViewAura::AcceleratedSurfacePostSubBuffer(
surface_route_id_ = params_in_pixel.route_id;
// If visible state changed, then this PSB is stale. We must still ACK but
// do not update current_surface_.
- if (host_->is_hidden() ||
- (params_in_pixel.protection_state_id &&
- params_in_pixel.protection_state_id != protection_state_id_)) {
+ if (params_in_pixel.protection_state_id &&
+ params_in_pixel.protection_state_id != protection_state_id_) {
DCHECK(!current_surface_);
InsertSyncPointAndACK(params_in_pixel.route_id, gpu_host_id, NULL);
return;
« 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