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

Side by Side Diff: content/renderer/render_widget.cc

Issue 2643723007: time metric: record elapsed time from when the backgrounded and purged renderer is foregrounded unti (Closed)
Patch Set: s/google.org/google.com/g Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 bool RenderWidget::IsClosing() const { 916 bool RenderWidget::IsClosing() const {
917 return host_closing_; 917 return host_closing_;
918 } 918 }
919 919
920 void RenderWidget::RequestScheduleAnimation() { 920 void RenderWidget::RequestScheduleAnimation() {
921 scheduleAnimation(); 921 scheduleAnimation();
922 } 922 }
923 923
924 void RenderWidget::UpdateVisualState() { 924 void RenderWidget::UpdateVisualState() {
925 GetWebWidget()->updateAllLifecyclePhases(); 925 GetWebWidget()->updateAllLifecyclePhases();
926 if (RenderThreadImpl* render_thread = RenderThreadImpl::current())
esprehn 2017/01/25 03:22:17 How can the thread be null if we're inside UpdateV
tasak 2017/01/26 09:39:40 I'm afraid that some unittests creates RenderWidge
927 render_thread->OnPostWidgetUpdateVisualState();
926 } 928 }
927 929
928 void RenderWidget::WillBeginCompositorFrame() { 930 void RenderWidget::WillBeginCompositorFrame() {
929 TRACE_EVENT0("gpu", "RenderWidget::willBeginCompositorFrame"); 931 TRACE_EVENT0("gpu", "RenderWidget::willBeginCompositorFrame");
930 932
931 // The UpdateTextInputState can result in further layout and possibly 933 // The UpdateTextInputState can result in further layout and possibly
932 // enable GPU acceleration so they need to be called before any painting 934 // enable GPU acceleration so they need to be called before any painting
933 // is done. 935 // is done.
934 UpdateTextInputState(); 936 UpdateTextInputState();
935 UpdateSelectionBounds(); 937 UpdateSelectionBounds();
(...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after
2286 // browser side (https://crbug.com/669219). 2288 // browser side (https://crbug.com/669219).
2287 // If there is no WebFrameWidget, then there will be no 2289 // If there is no WebFrameWidget, then there will be no
2288 // InputMethodControllers for a WebLocalFrame. 2290 // InputMethodControllers for a WebLocalFrame.
2289 return nullptr; 2291 return nullptr;
2290 } 2292 }
2291 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) 2293 return static_cast<blink::WebFrameWidget*>(GetWebWidget())
2292 ->getActiveWebInputMethodController(); 2294 ->getActiveWebInputMethodController();
2293 } 2295 }
2294 2296
2295 } // namespace content 2297 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698