| OLD | NEW |
| 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 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1180 } | 1180 } |
| 1181 | 1181 |
| 1182 void RenderWidget::suppressCompositorScheduling(bool enable) { | 1182 void RenderWidget::suppressCompositorScheduling(bool enable) { |
| 1183 if (compositor_) | 1183 if (compositor_) |
| 1184 compositor_->SetSuppressScheduleComposite(enable); | 1184 compositor_->SetSuppressScheduleComposite(enable); |
| 1185 } | 1185 } |
| 1186 | 1186 |
| 1187 void RenderWidget::willBeginCompositorFrame() { | 1187 void RenderWidget::willBeginCompositorFrame() { |
| 1188 TRACE_EVENT0("gpu", "RenderWidget::willBeginCompositorFrame"); | 1188 TRACE_EVENT0("gpu", "RenderWidget::willBeginCompositorFrame"); |
| 1189 | 1189 |
| 1190 DCHECK(RenderThreadImpl::current()->compositor_message_loop_proxy().get()); | |
| 1191 | |
| 1192 // The following two can result in further layout and possibly | 1190 // The following two can result in further layout and possibly |
| 1193 // enable GPU acceleration so they need to be called before any painting | 1191 // enable GPU acceleration so they need to be called before any painting |
| 1194 // is done. | 1192 // is done. |
| 1195 UpdateTextInputState(NO_SHOW_IME, FROM_NON_IME); | 1193 UpdateTextInputState(NO_SHOW_IME, FROM_NON_IME); |
| 1196 UpdateSelectionBounds(); | 1194 UpdateSelectionBounds(); |
| 1197 } | 1195 } |
| 1198 | 1196 |
| 1199 void RenderWidget::didBecomeReadyForAdditionalInput() { | 1197 void RenderWidget::didBecomeReadyForAdditionalInput() { |
| 1200 TRACE_EVENT0("renderer", "RenderWidget::didBecomeReadyForAdditionalInput"); | 1198 TRACE_EVENT0("renderer", "RenderWidget::didBecomeReadyForAdditionalInput"); |
| 1201 FlushPendingInputEventAck(); | 1199 FlushPendingInputEventAck(); |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2071 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { | 2069 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { |
| 2072 video_hole_frames_.AddObserver(frame); | 2070 video_hole_frames_.AddObserver(frame); |
| 2073 } | 2071 } |
| 2074 | 2072 |
| 2075 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { | 2073 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { |
| 2076 video_hole_frames_.RemoveObserver(frame); | 2074 video_hole_frames_.RemoveObserver(frame); |
| 2077 } | 2075 } |
| 2078 #endif // defined(VIDEO_HOLE) | 2076 #endif // defined(VIDEO_HOLE) |
| 2079 | 2077 |
| 2080 } // namespace content | 2078 } // namespace content |
| OLD | NEW |