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

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

Issue 359103003: Revert of Make SingleThreadProxy a SchedulerClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
1187 // The following two can result in further layout and possibly 1189 // The following two can result in further layout and possibly
1188 // enable GPU acceleration so they need to be called before any painting 1190 // enable GPU acceleration so they need to be called before any painting
1189 // is done. 1191 // is done.
1190 UpdateTextInputState(NO_SHOW_IME, FROM_NON_IME); 1192 UpdateTextInputState(NO_SHOW_IME, FROM_NON_IME);
1191 UpdateSelectionBounds(); 1193 UpdateSelectionBounds();
1192 } 1194 }
1193 1195
1194 void RenderWidget::didBecomeReadyForAdditionalInput() { 1196 void RenderWidget::didBecomeReadyForAdditionalInput() {
1195 TRACE_EVENT0("renderer", "RenderWidget::didBecomeReadyForAdditionalInput"); 1197 TRACE_EVENT0("renderer", "RenderWidget::didBecomeReadyForAdditionalInput");
1196 FlushPendingInputEventAck(); 1198 FlushPendingInputEventAck();
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
2057 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { 2059 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) {
2058 video_hole_frames_.AddObserver(frame); 2060 video_hole_frames_.AddObserver(frame);
2059 } 2061 }
2060 2062
2061 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { 2063 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) {
2062 video_hole_frames_.RemoveObserver(frame); 2064 video_hole_frames_.RemoveObserver(frame);
2063 } 2065 }
2064 #endif // defined(VIDEO_HOLE) 2066 #endif // defined(VIDEO_HOLE)
2065 2067
2066 } // namespace content 2068 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | content/test/web_layer_tree_view_impl_for_testing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698