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

Side by Side Diff: Source/core/paint/DisplayItemListPaintTest.cpp

Issue 1129173006: Enable slimming paint by default (for trybots only) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tue Jun 9 10:33:43 PDT 2015 Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "platform/graphics/paint/DisplayItemList.h" 6 #include "platform/graphics/paint/DisplayItemList.h"
7 7
8 #include "core/layout/LayoutTestHelper.h" 8 #include "core/layout/LayoutTestHelper.h"
9 #include "core/layout/LayoutText.h" 9 #include "core/layout/LayoutText.h"
10 #include "core/layout/LayoutView.h" 10 #include "core/layout/LayoutView.h"
(...skipping 29 matching lines...) Expand all
40 40
41 RenderingTest::SetUp(); 41 RenderingTest::SetUp();
42 enableCompositing(); 42 enableCompositing();
43 43
44 m_layoutView = document().view()->layoutView(); 44 m_layoutView = document().view()->layoutView();
45 ASSERT_TRUE(m_layoutView); 45 ASSERT_TRUE(m_layoutView);
46 } 46 }
47 47
48 virtual void TearDown() override 48 virtual void TearDown() override
49 { 49 {
50 RuntimeEnabledFeatures::setSlimmingPaintEnabled(false); 50 // RuntimeEnabledFeatures::setSlimmingPaintEnabled(false);
51 } 51 }
52 52
53 LayoutView* m_layoutView; 53 LayoutView* m_layoutView;
54 }; 54 };
55 55
56 class TestDisplayItem : public DisplayItem { 56 class TestDisplayItem : public DisplayItem {
57 public: 57 public:
58 TestDisplayItem(const DisplayItemClientWrapper& client, Type type) : Display Item(client, type) { } 58 TestDisplayItem(const DisplayItemClientWrapper& client, Type type) : Display Item(client, type) { }
59 59
60 virtual void replay(GraphicsContext&) override final { ASSERT_NOT_REACHED(); } 60 virtual void replay(GraphicsContext&) override final { ASSERT_NOT_REACHED(); }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 InlineTextBox& newFirstTextBox = *newText.firstTextBox(); 150 InlineTextBox& newFirstTextBox = *newText.firstTextBox();
151 InlineTextBox& secondTextBox = *newText.firstTextBox()->nextTextBox(); 151 InlineTextBox& secondTextBox = *newText.firstTextBox()->nextTextBox();
152 152
153 EXPECT_DISPLAY_LIST(rootDisplayItemList().displayItems(), 3, 153 EXPECT_DISPLAY_LIST(rootDisplayItemList().displayItems(), 3,
154 TestDisplayItem(htmlObject, DisplayItem::BoxDecorationBackground), 154 TestDisplayItem(htmlObject, DisplayItem::BoxDecorationBackground),
155 TestDisplayItem(newFirstTextBox, DisplayItem::paintPhaseToDrawingType(Pa intPhaseForeground)), 155 TestDisplayItem(newFirstTextBox, DisplayItem::paintPhaseToDrawingType(Pa intPhaseForeground)),
156 TestDisplayItem(secondTextBox, DisplayItem::paintPhaseToDrawingType(Pain tPhaseForeground))); 156 TestDisplayItem(secondTextBox, DisplayItem::paintPhaseToDrawingType(Pain tPhaseForeground)));
157 } 157 }
158 158
159 } // namespace blink 159 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698