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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerPainterTest.cpp

Issue 1364063007: Throttle rendering pipeline for invisible frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Early-out for intersection update walk. 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "config.h" 5 #include "config.h"
6 6
7 #include "core/paint/PaintControllerPaintTest.h" 7 #include "core/paint/PaintControllerPaintTest.h"
8 #include "platform/graphics/GraphicsContext.h" 8 #include "platform/graphics/GraphicsContext.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 PaintLayer& container1Layer = *toLayoutBoxModelObject(container1).layer(); 442 PaintLayer& container1Layer = *toLayoutBoxModelObject(container1).layer();
443 LayoutObject& content1 = *document().getElementById("content1")->layoutObjec t(); 443 LayoutObject& content1 = *document().getElementById("content1")->layoutObjec t();
444 LayoutObject& container2 = *document().getElementById("container2")->layoutO bject(); 444 LayoutObject& container2 = *document().getElementById("container2")->layoutO bject();
445 PaintLayer& container2Layer = *toLayoutBoxModelObject(container2).layer(); 445 PaintLayer& container2Layer = *toLayoutBoxModelObject(container2).layer();
446 LayoutObject& content2a = *document().getElementById("content2a")->layoutObj ect(); 446 LayoutObject& content2a = *document().getElementById("content2a")->layoutObj ect();
447 LayoutObject& container3 = *document().getElementById("container3")->layoutO bject(); 447 LayoutObject& container3 = *document().getElementById("container3")->layoutO bject();
448 PaintLayer& container3Layer = *toLayoutBoxModelObject(container3).layer(); 448 PaintLayer& container3Layer = *toLayoutBoxModelObject(container3).layer();
449 LayoutObject& content3 = *document().getElementById("content3")->layoutObjec t(); 449 LayoutObject& content3 = *document().getElementById("content3")->layoutObjec t();
450 450
451 LayoutRect interestRect(0, 0, 400, 300); 451 LayoutRect interestRect(0, 0, 400, 300);
452 document().view()->updateAllLifecyclePhases(&interestRect); 452 document().view()->updateAllLifecyclePhases(DocumentLifecycle::ThrottlingMod e::Disallow, &interestRect);
453 453
454 // Container1 is fully in the interest rect; 454 // Container1 is fully in the interest rect;
455 // Container2 is partly (including its stacking chidren) in the interest rec t; 455 // Container2 is partly (including its stacking chidren) in the interest rec t;
456 // Content2b is out of the interest rect and output nothing; 456 // Content2b is out of the interest rect and output nothing;
457 // Container3 is partly in the interest rect. 457 // Container3 is partly in the interest rect.
458 EXPECT_DISPLAY_LIST(rootPaintController().displayItems(), 17, 458 EXPECT_DISPLAY_LIST(rootPaintController().displayItems(), 17,
459 TestDisplayItem(layoutView(), backgroundType), 459 TestDisplayItem(layoutView(), backgroundType),
460 TestDisplayItem(rootLayer, subsequenceType), 460 TestDisplayItem(rootLayer, subsequenceType),
461 TestDisplayItem(htmlLayer, subsequenceType), 461 TestDisplayItem(htmlLayer, subsequenceType),
462 TestDisplayItem(container1, backgroundType), 462 TestDisplayItem(container1, backgroundType),
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 TestDisplayItem(container1Layer, endSubsequenceType), 508 TestDisplayItem(container1Layer, endSubsequenceType),
509 TestDisplayItem(container2, backgroundType), 509 TestDisplayItem(container2, backgroundType),
510 TestDisplayItem(container2Layer, subsequenceType), 510 TestDisplayItem(container2Layer, subsequenceType),
511 TestDisplayItem(content2a, backgroundType), 511 TestDisplayItem(content2a, backgroundType),
512 TestDisplayItem(container2Layer, endSubsequenceType), 512 TestDisplayItem(container2Layer, endSubsequenceType),
513 TestDisplayItem(htmlLayer, endSubsequenceType), 513 TestDisplayItem(htmlLayer, endSubsequenceType),
514 TestDisplayItem(rootLayer, endSubsequenceType)); 514 TestDisplayItem(rootLayer, endSubsequenceType));
515 } 515 }
516 516
517 } // namespace blink 517 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698