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

Unified Diff: content/renderer/render_widget.cc

Issue 2295013002: Revert of Move text/selection update to the back of pipeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index b2e54c9262d8a41692ec93bfb15ec81b7d5a13bf..cb2afbcc623807384a97bb66e7a6fb376251af6d 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -805,12 +805,16 @@
void RenderWidget::UpdateVisualState() {
webwidget_->updateAllLifecyclePhases();
+}
+
+void RenderWidget::WillBeginCompositorFrame() {
+ TRACE_EVENT0("gpu", "RenderWidget::willBeginCompositorFrame");
+
+ // The UpdateTextInputState can result in further layout and possibly
+ // enable GPU acceleration so they need to be called before any painting
+ // is done.
UpdateTextInputState(ShowIme::HIDE_IME, ChangeSource::FROM_NON_IME);
UpdateSelectionBounds();
-}
-
-void RenderWidget::WillBeginCompositorFrame() {
- TRACE_EVENT0("gpu", "RenderWidget::willBeginCompositorFrame");
FOR_EACH_OBSERVER(RenderFrameProxy, render_frame_proxies_,
WillBeginCompositorFrame());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698