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

Unified Diff: content/renderer/render_widget.cc

Issue 2791223002: Notify Blink to suppress frame requests during BeginMainFrame (Closed)
Patch Set: +willBeginMainFrameBasedSuppression Created 3 years, 9 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/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index f071205065d09b9a5c0807f35c58408049906a6d..fad713688537ced1e7c778e959517428cf7cc926 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -912,6 +912,8 @@ void RenderWidget::DidCommitCompositorFrame() {
observer.DidCommitCompositorFrame();
for (auto& observer : render_frame_proxies_)
observer.DidCommitCompositorFrame();
+
+ GetWebWidget()->setSuppressFrameRequestsWorkaroundFor704763Only(false);
esprehn 2017/04/04 06:13:55 I think should be in RenderWidget::UpdateVisualSta
alancutter (OOO until 2018) 2017/04/04 09:54:31 Fair call, moving the unset back to suggested plac
}
void RenderWidget::DidCompletePageScaleAnimation() {}
@@ -959,6 +961,8 @@ void RenderWidget::UpdateVisualState() {
void RenderWidget::WillBeginCompositorFrame() {
TRACE_EVENT0("gpu", "RenderWidget::willBeginCompositorFrame");
+ GetWebWidget()->setSuppressFrameRequestsWorkaroundFor704763Only(true);
+
// The UpdateTextInputState can result in further layout and possibly
// enable GPU acceleration so they need to be called before any painting
// is done.
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/page/PageAnimator.h » ('j') | third_party/WebKit/Source/web/WebPagePopupImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698