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/logging.h" | 10 #include "base/logging.h" |
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1416 | 1416 |
1417 void RenderWidget::DidCommitCompositorFrame() { | 1417 void RenderWidget::DidCommitCompositorFrame() { |
1418 FOR_EACH_OBSERVER(RenderFrameImpl, render_frames_, | 1418 FOR_EACH_OBSERVER(RenderFrameImpl, render_frames_, |
1419 DidCommitCompositorFrame()); | 1419 DidCommitCompositorFrame()); |
1420 FOR_EACH_OBSERVER(RenderFrameProxy, render_frame_proxies_, | 1420 FOR_EACH_OBSERVER(RenderFrameProxy, render_frame_proxies_, |
1421 DidCommitCompositorFrame()); | 1421 DidCommitCompositorFrame()); |
1422 #if defined(VIDEO_HOLE) | 1422 #if defined(VIDEO_HOLE) |
1423 FOR_EACH_OBSERVER(RenderFrameImpl, video_hole_frames_, | 1423 FOR_EACH_OBSERVER(RenderFrameImpl, video_hole_frames_, |
1424 DidCommitCompositorFrame()); | 1424 DidCommitCompositorFrame()); |
1425 #endif // defined(VIDEO_HOLE) | 1425 #endif // defined(VIDEO_HOLE) |
| 1426 webwidget_->didCommitCompositorFrame(); |
1426 FlushPendingInputEventAck(); | 1427 FlushPendingInputEventAck(); |
1427 } | 1428 } |
1428 | 1429 |
1429 void RenderWidget::DidCommitAndDrawCompositorFrame() { | 1430 void RenderWidget::DidCommitAndDrawCompositorFrame() { |
1430 // NOTE: Tests may break if this event is renamed or moved. See | 1431 // NOTE: Tests may break if this event is renamed or moved. See |
1431 // tab_capture_performancetest.cc. | 1432 // tab_capture_performancetest.cc. |
1432 TRACE_EVENT0("gpu", "RenderWidget::DidCommitAndDrawCompositorFrame"); | 1433 TRACE_EVENT0("gpu", "RenderWidget::DidCommitAndDrawCompositorFrame"); |
1433 // Notify subclasses that we initiated the paint operation. | 1434 // Notify subclasses that we initiated the paint operation. |
1434 DidInitiatePaint(); | 1435 DidInitiatePaint(); |
1435 } | 1436 } |
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2419 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { | 2420 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { |
2420 video_hole_frames_.AddObserver(frame); | 2421 video_hole_frames_.AddObserver(frame); |
2421 } | 2422 } |
2422 | 2423 |
2423 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { | 2424 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { |
2424 video_hole_frames_.RemoveObserver(frame); | 2425 video_hole_frames_.RemoveObserver(frame); |
2425 } | 2426 } |
2426 #endif // defined(VIDEO_HOLE) | 2427 #endif // defined(VIDEO_HOLE) |
2427 | 2428 |
2428 } // namespace content | 2429 } // namespace content |
OLD | NEW |