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

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: IntersectionObserverification 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/DisplayItemListPaintTest.h" 7 #include "core/paint/DisplayItemListPaintTest.h"
8 #include "platform/graphics/GraphicsContext.h" 8 #include "platform/graphics/GraphicsContext.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 LayoutObject& container1 = *document().getElementById("container1")->layoutO bject(); 441 LayoutObject& container1 = *document().getElementById("container1")->layoutO bject();
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 document().view()->updateAllLifecyclePhases(LayoutRect(0, 0, 400, 300)); 451 document().view()->updateAllLifecyclePhases(DocumentLifecycle::ThrottlingMod e::Disallow, LayoutRect(0, 0, 400, 300));
452 452
453 // Container1 is fully in the interest rect; 453 // Container1 is fully in the interest rect;
454 // Container2 is partly (including its stacking chidren) in the interest rec t; 454 // Container2 is partly (including its stacking chidren) in the interest rec t;
455 // Content2b is out of the interest rect and output nothing; 455 // Content2b is out of the interest rect and output nothing;
456 // Container3 is partly in the interest rect. 456 // Container3 is partly in the interest rect.
457 EXPECT_DISPLAY_LIST(rootDisplayItemList().displayItems(), 17, 457 EXPECT_DISPLAY_LIST(rootDisplayItemList().displayItems(), 17,
458 TestDisplayItem(layoutView(), backgroundType), 458 TestDisplayItem(layoutView(), backgroundType),
459 TestDisplayItem(rootLayer, subsequenceType), 459 TestDisplayItem(rootLayer, subsequenceType),
460 TestDisplayItem(htmlLayer, subsequenceType), 460 TestDisplayItem(htmlLayer, subsequenceType),
461 TestDisplayItem(container1, backgroundType), 461 TestDisplayItem(container1, backgroundType),
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 TestDisplayItem(container1Layer, endSubsequenceType), 507 TestDisplayItem(container1Layer, endSubsequenceType),
508 TestDisplayItem(container2, backgroundType), 508 TestDisplayItem(container2, backgroundType),
509 TestDisplayItem(container2Layer, subsequenceType), 509 TestDisplayItem(container2Layer, subsequenceType),
510 TestDisplayItem(content2a, backgroundType), 510 TestDisplayItem(content2a, backgroundType),
511 TestDisplayItem(container2Layer, endSubsequenceType), 511 TestDisplayItem(container2Layer, endSubsequenceType),
512 TestDisplayItem(htmlLayer, endSubsequenceType), 512 TestDisplayItem(htmlLayer, endSubsequenceType),
513 TestDisplayItem(rootLayer, endSubsequenceType)); 513 TestDisplayItem(rootLayer, endSubsequenceType));
514 } 514 }
515 515
516 } // namespace blink 516 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698