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

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

Issue 10833052: Removing duplicate IsHidden function from RWHI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 5 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 | « content/browser/renderer_host/render_widget_host_impl.h ('k') | 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 6d86c30add34e574cbffbed70d2376710da38369..c46a867c087cdfed52fb012068d949277c9d797c 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -275,7 +275,7 @@ RenderWidgetHost* RenderWidgetHostViewAura::GetRenderWidgetHost() const {
}
void RenderWidgetHostViewAura::WasShown() {
- if (!host_->IsHidden())
+ if (!host_->is_hidden())
return;
host_->WasShown();
@@ -288,7 +288,7 @@ void RenderWidgetHostViewAura::WasShown() {
}
void RenderWidgetHostViewAura::WasHidden() {
- if (host_->IsHidden())
+ if (host_->is_hidden())
return;
host_->WasHidden();
@@ -615,7 +615,7 @@ 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_->IsHidden() ||
+ if (host_->is_hidden() ||
(params_in_pixel.protection_state_id &&
params_in_pixel.protection_state_id != protection_state_id_)) {
DCHECK(!current_surface_);
@@ -686,7 +686,7 @@ 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_->IsHidden() ||
+ if (host_->is_hidden() ||
(params_in_pixel.protection_state_id &&
params_in_pixel.protection_state_id != protection_state_id_)) {
DCHECK(!current_surface_);
@@ -795,7 +795,7 @@ void RenderWidgetHostViewAura::AcceleratedSurfaceRelease(
}
void RenderWidgetHostViewAura::SetSurfaceNotInUseByCompositor(ui::Compositor*) {
- if (current_surface_ || !host_->IsHidden())
+ if (current_surface_ || !host_->is_hidden())
return;
current_surface_in_use_by_compositor_ = false;
AdjustSurfaceProtection();
@@ -807,7 +807,7 @@ void RenderWidgetHostViewAura::AdjustSurfaceProtection() {
// Otherwise, change to not proctected once done thumbnailing and compositing.
bool surface_is_protected =
current_surface_ ||
- !host_->IsHidden() ||
+ !host_->is_hidden() ||
(current_surface_is_protected_ &&
(!pending_thumbnail_tasks_.empty() ||
current_surface_in_use_by_compositor_));
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698