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

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

Issue 1376003002: Make rendering timeouts work even if paint data received early (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cursor
Patch Set: Review comments addressed Created 5 years, 2 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
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 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 void RenderWidget::didFirstVisuallyNonEmptyLayout() { 1387 void RenderWidget::didFirstVisuallyNonEmptyLayout() {
1388 QueueMessage( 1388 QueueMessage(
1389 new ViewHostMsg_DidFirstVisuallyNonEmptyPaint(routing_id_), 1389 new ViewHostMsg_DidFirstVisuallyNonEmptyPaint(routing_id_),
1390 MESSAGE_DELIVERY_POLICY_WITH_VISUAL_STATE); 1390 MESSAGE_DELIVERY_POLICY_WITH_VISUAL_STATE);
1391 } 1391 }
1392 1392
1393 void RenderWidget::didFirstLayoutAfterFinishedParsing() { 1393 void RenderWidget::didFirstLayoutAfterFinishedParsing() {
1394 // TODO(dglazkov): Use this hook to drive CapturePageInfo. 1394 // TODO(dglazkov): Use this hook to drive CapturePageInfo.
1395 } 1395 }
1396 1396
1397 void RenderWidget::didFirstPaintAfterLoad() {
1398 QueueMessage(new ViewHostMsg_DidFirstPaintAfterLoad(routing_id_),
1399 MESSAGE_DELIVERY_POLICY_WITH_VISUAL_STATE);
1400 }
1401
1397 void RenderWidget::WillBeginCompositorFrame() { 1402 void RenderWidget::WillBeginCompositorFrame() {
1398 TRACE_EVENT0("gpu", "RenderWidget::willBeginCompositorFrame"); 1403 TRACE_EVENT0("gpu", "RenderWidget::willBeginCompositorFrame");
1399 1404
1400 // The UpdateTextInputState can result in further layout and possibly 1405 // The UpdateTextInputState can result in further layout and possibly
1401 // enable GPU acceleration so they need to be called before any painting 1406 // enable GPU acceleration so they need to be called before any painting
1402 // is done. 1407 // is done.
1403 UpdateTextInputState(NO_SHOW_IME, FROM_NON_IME); 1408 UpdateTextInputState(NO_SHOW_IME, FROM_NON_IME);
1404 UpdateSelectionBounds(); 1409 UpdateSelectionBounds();
1405 } 1410 }
1406 1411
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
2410 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { 2415 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) {
2411 video_hole_frames_.AddObserver(frame); 2416 video_hole_frames_.AddObserver(frame);
2412 } 2417 }
2413 2418
2414 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { 2419 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) {
2415 video_hole_frames_.RemoveObserver(frame); 2420 video_hole_frames_.RemoveObserver(frame);
2416 } 2421 }
2417 #endif // defined(VIDEO_HOLE) 2422 #endif // defined(VIDEO_HOLE)
2418 2423
2419 } // namespace content 2424 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698