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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 2345233004: Reuse cc::PictureLayers when possible for SPv2. (Closed)
Patch Set: none Created 4 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
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/shell/renderer/layout_test/blink_test_runner.h" 5 #include "content/shell/renderer/layout_test/blink_test_runner.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <clocale> 10 #include <clocale>
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 // Ignore changes that happen before we got the initial, accumulated 572 // Ignore changes that happen before we got the initial, accumulated
573 // layout flag changes in ShellViewMsg_ReplicateTestConfiguration. 573 // layout flag changes in ShellViewMsg_ReplicateTestConfiguration.
574 if (!is_main_window_) 574 if (!is_main_window_)
575 return; 575 return;
576 576
577 RenderThread::Get()->Send( 577 RenderThread::Get()->Send(
578 new LayoutTestHostMsg_LayoutTestRuntimeFlagsChanged(changed_values)); 578 new LayoutTestHostMsg_LayoutTestRuntimeFlagsChanged(changed_values));
579 } 579 }
580 580
581 void BlinkTestRunner::TestFinished() { 581 void BlinkTestRunner::TestFinished() {
582 if (!is_main_window_ || !render_view()->GetMainRenderFrame()) { 582 if (!is_main_window_ || !render_view()->GetMainRenderFrame()) {
pdr. 2016/09/21 02:46:13 Nit: I think the indentation got lost here.
chrishtr 2016/09/21 22:34:41 Fixed.
583 RenderThread::Get()->Send( 583 RenderThread::Get()->Send(
584 new LayoutTestHostMsg_TestFinishedInSecondaryRenderer()); 584 new LayoutTestHostMsg_TestFinishedInSecondaryRenderer());
585 return; 585 return;
586 } 586 }
587 test_runner::WebTestInterfaces* interfaces = 587 test_runner::WebTestInterfaces* interfaces =
588 LayoutTestRenderThreadObserver::GetInstance()->test_interfaces(); 588 LayoutTestRenderThreadObserver::GetInstance()->test_interfaces();
589 interfaces->SetTestIsRunning(false); 589 interfaces->SetTestIsRunning(false);
590 if (interfaces->TestRunner()->ShouldDumpBackForwardList()) { 590 if (interfaces->TestRunner()->ShouldDumpBackForwardList()) {
591 SyncNavigationStateVisitor visitor; 591 SyncNavigationStateVisitor visitor;
592 RenderView::ForEach(&visitor); 592 RenderView::ForEach(&visitor);
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 void BlinkTestRunner::ReportLeakDetectionResult( 1017 void BlinkTestRunner::ReportLeakDetectionResult(
1018 const LeakDetectionResult& report) { 1018 const LeakDetectionResult& report) {
1019 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1019 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1020 } 1020 }
1021 1021
1022 void BlinkTestRunner::OnDestruct() { 1022 void BlinkTestRunner::OnDestruct() {
1023 delete this; 1023 delete this;
1024 } 1024 }
1025 1025
1026 } // namespace content 1026 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698