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

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

Issue 134623005: Make SingleThreadProxy a SchedulerClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update client animations in SingleThreadProxy; test this Created 6 years, 5 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 | Annotate | Revision Log
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 "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 } 1177 }
1178 1178
1179 void RenderWidget::suppressCompositorScheduling(bool enable) { 1179 void RenderWidget::suppressCompositorScheduling(bool enable) {
1180 if (compositor_) 1180 if (compositor_)
1181 compositor_->SetSuppressScheduleComposite(enable); 1181 compositor_->SetSuppressScheduleComposite(enable);
1182 } 1182 }
1183 1183
1184 void RenderWidget::willBeginCompositorFrame() { 1184 void RenderWidget::willBeginCompositorFrame() {
1185 TRACE_EVENT0("gpu", "RenderWidget::willBeginCompositorFrame"); 1185 TRACE_EVENT0("gpu", "RenderWidget::willBeginCompositorFrame");
1186 1186
1187 DCHECK(RenderThreadImpl::current()->compositor_message_loop_proxy().get());
1188
1189 // The following two can result in further layout and possibly 1187 // The following two can result in further layout and possibly
1190 // enable GPU acceleration so they need to be called before any painting 1188 // enable GPU acceleration so they need to be called before any painting
1191 // is done. 1189 // is done.
1192 UpdateTextInputState(NO_SHOW_IME, FROM_NON_IME); 1190 UpdateTextInputState(NO_SHOW_IME, FROM_NON_IME);
1193 UpdateSelectionBounds(); 1191 UpdateSelectionBounds();
1194 } 1192 }
1195 1193
1196 void RenderWidget::didBecomeReadyForAdditionalInput() { 1194 void RenderWidget::didBecomeReadyForAdditionalInput() {
1197 TRACE_EVENT0("renderer", "RenderWidget::didBecomeReadyForAdditionalInput"); 1195 TRACE_EVENT0("renderer", "RenderWidget::didBecomeReadyForAdditionalInput");
1198 FlushPendingInputEventAck(); 1196 FlushPendingInputEventAck();
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
2059 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { 2057 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) {
2060 video_hole_frames_.AddObserver(frame); 2058 video_hole_frames_.AddObserver(frame);
2061 } 2059 }
2062 2060
2063 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { 2061 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) {
2064 video_hole_frames_.RemoveObserver(frame); 2062 video_hole_frames_.RemoveObserver(frame);
2065 } 2063 }
2066 #endif // defined(VIDEO_HOLE) 2064 #endif // defined(VIDEO_HOLE)
2067 2065
2068 } // namespace content 2066 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698