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

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

Issue 1246173002: Throttle rendering pipeline for invisible iframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased to post merge awesomeness. Created 5 years, 3 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/logging.h" 10 #include "base/logging.h"
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « components/test_runner/web_test_proxy.cc ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698