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

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: Created 6 years, 6 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 be2f289f707c53256557a3841721a0b67ffa0f1d..859de335645d584d5f1be72b0e09bfe6cbf41680 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.
@@ -525,6 +529,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;
@@ -550,6 +555,7 @@ class CONTENT_EXPORT RenderWidgetHostViewMac
void EnsureBrowserCompositorView();
void DestroyBrowserCompositorView();
+ void DoBrowserCompositorPendingPaint();
void EnsureSoftwareLayer();
void DestroySoftwareLayer();
@@ -591,6 +597,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_;

Powered by Google App Engine
This is Rietveld 408576698