diff options
author | skyostil <skyostil@chromium.org> | 2015-08-12 05:00:07 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-12 12:00:51 +0000 |
commit | 51d1575b2df2fc681299c84e415cc078677b95e4 (patch) | |
tree | 881db86c384e81312dd6762aceb71eee6356231a /content/renderer/gpu/render_widget_compositor.h | |
parent | c24635036139d941db318145b96fda64aeeda02b (diff) | |
download | chromium_src-51d1575b2df2fc681299c84e415cc078677b95e4.zip chromium_src-51d1575b2df2fc681299c84e415cc078677b95e4.tar.gz chromium_src-51d1575b2df2fc681299c84e415cc078677b95e4.tar.bz2 |
cc: Make layer updating optional in BeginMainFrame
If no-one has requested a layer update, either by calling
Proxy::SetNeedsUpdateLayers() or Proxy::SetNeedsCommit(), skip computing
the layer update in BeginMainFrame. This reduces the static overhead of
a BeginMainFrame/Commit operation when the layer tree doesn't change.
This change improves efficiency, for example, when a page has a
requestAnimationFrame callback which does not modify the DOM.
BUG=490465
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1255863004
Cr-Commit-Position: refs/heads/master@{#343004}
Diffstat (limited to 'content/renderer/gpu/render_widget_compositor.h')
-rw-r--r-- | content/renderer/gpu/render_widget_compositor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content/renderer/gpu/render_widget_compositor.h b/content/renderer/gpu/render_widget_compositor.h index 185ac08..c4f8cab 100644 --- a/content/renderer/gpu/render_widget_compositor.h +++ b/content/renderer/gpu/render_widget_compositor.h @@ -108,6 +108,8 @@ class CONTENT_EXPORT RenderWidgetCompositor double duration_sec); virtual void heuristicsForGpuRasterizationUpdated(bool matches_heuristics); virtual void setNeedsAnimate(); + virtual void setNeedsBeginFrame(); + virtual void setNeedsCompositorUpdate(); virtual void didStopFlinging(); virtual void layoutAndPaintAsync( blink::WebLayoutAndPaintAsyncCallback* callback); |