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

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

Issue 1415143005: Preparation for enabling slimming paint synchronized painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments for the loop finding real root GraphicsLayer Created 5 years, 1 month 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/layout/compositing/CompositedLayerMapping.h" 7 #include "core/layout/compositing/CompositedLayerMapping.h"
8 #include "core/paint/PaintControllerPaintTest.h" 8 #include "core/paint/PaintControllerPaintTest.h"
9 #include "platform/graphics/GraphicsContext.h" 9 #include "platform/graphics/GraphicsContext.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class PaintLayerPainterTest 13 class PaintLayerPainterTest
14 : public PaintControllerPaintTest 14 : public PaintControllerPaintTest
15 , public testing::WithParamInterface<FrameSettingOverrideFunction> { 15 , public testing::WithParamInterface<FrameSettingOverrideFunction> {
16 USING_FAST_MALLOC(PaintLayerPainterTest); 16 USING_FAST_MALLOC(PaintLayerPainterTest);
17 public: 17 public:
18 FrameSettingOverrideFunction settingOverrider() const override { return GetP aram(); } 18 FrameSettingOverrideFunction settingOverrider() const override { return GetP aram(); }
19 }; 19 };
20 20
21 using PaintLayerPainterTestForSlimmingPaintV2 = PaintControllerPaintTestForSlimm ingPaintV2;
22
23 INSTANTIATE_TEST_CASE_P(All, PaintLayerPainterTest, ::testing::Values( 21 INSTANTIATE_TEST_CASE_P(All, PaintLayerPainterTest, ::testing::Values(
24 nullptr, 22 nullptr,
25 RootLayerScrollsFrameSettingOverride)); 23 RootLayerScrollsFrameSettingOverride));
26 24
27 TEST_P(PaintLayerPainterTest, CachedSubsequence) 25 TEST_P(PaintLayerPainterTest, CachedSubsequence)
28 { 26 {
29 RuntimeEnabledFeatures::setSlimmingPaintSynchronizedPaintingEnabled(true); 27 RuntimeEnabledFeatures::setSlimmingPaintSynchronizedPaintingEnabled(true);
30 28
31 setBodyInnerHTML( 29 setBodyInnerHTML(
32 "<div id='container1' style='position: relative; z-index: 1; width: 200p x; height: 200px; background-color: blue'>" 30 "<div id='container1' style='position: relative; z-index: 1; width: 200p x; height: 200px; background-color: blue'>"
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 TestDisplayItem(container2Layer, subsequenceType), 283 TestDisplayItem(container2Layer, subsequenceType),
286 TestDisplayItem(content2a, backgroundType), 284 TestDisplayItem(content2a, backgroundType),
287 TestDisplayItem(content2b, backgroundType), 285 TestDisplayItem(content2b, backgroundType),
288 TestDisplayItem(container2Layer, endSubsequenceType), 286 TestDisplayItem(container2Layer, endSubsequenceType),
289 TestDisplayItem(htmlLayer, endSubsequenceType), 287 TestDisplayItem(htmlLayer, endSubsequenceType),
290 TestDisplayItem(rootLayer, endSubsequenceType)); 288 TestDisplayItem(rootLayer, endSubsequenceType));
291 } 289 }
292 } 290 }
293 291
294 } // namespace blink 292 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698