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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.h

Issue 370513002: Mac ÜC: Make resize smooth (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@enable_uc_for_reals
Patch Set: Add comments Created 6 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
Index: content/browser/renderer_host/render_widget_host_view_mac.h
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.h b/content/browser/renderer_host/render_widget_host_view_mac.h
index 36645c8d7099a1c02ef8329ab64dd1ca9949ad69..5fb896b9daff331ea71fc04e5a4e66627500db17 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.h
+++ b/content/browser/renderer_host/render_widget_host_view_mac.h
@@ -442,6 +442,10 @@ class CONTENT_EXPORT RenderWidgetHostViewMac
// Container for the NSView drawn by the browser compositor.
scoped_ptr<BrowserCompositorViewMac> browser_compositor_view_;
+ // Set when the browser compositor is requested to paint, and unset when the
+ // browser compositor paints in DoBrowserCompositorPendingPaint.
+ bool browser_compositor_has_pending_paint_;
+
// Placeholder that is allocated while browser_compositor_view_ is NULL,
// indicating that a BrowserCompositorViewMac may be allocated. This is to
// help in recycling the internals of BrowserCompositorViewMac.
@@ -517,6 +521,7 @@ class CONTENT_EXPORT RenderWidgetHostViewMac
const std::vector<ui::LatencyInfo>& latency_info) OVERRIDE;
virtual NSView* BrowserCompositorSuperview() OVERRIDE;
virtual ui::Layer* BrowserCompositorRootLayer() OVERRIDE;
+ virtual bool BrowserCompositorShouldDrawImmediately() OVERRIDE;
private:
friend class RenderWidgetHostViewMacTest;
@@ -542,6 +547,7 @@ class CONTENT_EXPORT RenderWidgetHostViewMac
void EnsureBrowserCompositorView();
void DestroyBrowserCompositorView();
+ void DoBrowserCompositorPendingPaint();
void EnsureSoftwareLayer();
void DestroySoftwareLayer();
@@ -583,6 +589,10 @@ class CONTENT_EXPORT RenderWidgetHostViewMac
// Indicates if the page is loading.
bool is_loading_;
+ // Indicates if the view is currently stalled waiting for a new frame to come
+ // in.
+ bool is_paused_for_resize_or_repaint_;
+
// The text to be shown in the tooltip, supplied by the renderer.
base::string16 tooltip_text_;
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698