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

Unified Diff: Source/core/paint/LayerClipRecorderTest.cpp

Issue 757183003: Revert of Enable fast/images with slimming paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/paint/LayerClipRecorder.cpp ('k') | Source/core/paint/LayerPainter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/LayerClipRecorderTest.cpp
diff --git a/Source/core/paint/LayerClipRecorderTest.cpp b/Source/core/paint/LayerClipRecorderTest.cpp
deleted file mode 100644
index f898db478fbb05e5d455693c181f23beedf50705..0000000000000000000000000000000000000000
--- a/Source/core/paint/LayerClipRecorderTest.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "config.h"
-#include "core/paint/LayerClipRecorder.h"
-
-#include "core/rendering/RenderView.h"
-#include "core/rendering/RenderingTestHelper.h"
-#include "core/rendering/compositing/RenderLayerCompositor.h"
-#include "platform/graphics/GraphicsContext.h"
-#include <gtest/gtest.h>
-
-namespace blink {
-namespace {
-
-class LayerClipRecorderTest : public RenderingTest {
-public:
- LayerClipRecorderTest() : m_renderView(nullptr) { }
-
-protected:
- RenderView* renderView() { return m_renderView; }
-
-private:
- virtual void SetUp() override
- {
- RuntimeEnabledFeatures::setSlimmingPaintEnabled(true);
-
- RenderingTest::SetUp();
-
- m_renderView = document().view()->renderView();
- ASSERT_TRUE(m_renderView);
- }
-
- RenderView* m_renderView;
-};
-
-void drawClip(GraphicsContext* context, RenderView* renderer, PaintPhase phase, const FloatRect& bound)
-{
- IntRect rect(1, 1, 9, 9);
- ClipRect clipRect(rect);
- LayerClipRecorder LayerClipRecorder(renderer->compositor()->rootRenderLayer()->renderer(), context, DisplayItem::ClipLayerForeground, clipRect, 0, LayoutPoint(), PaintLayerFlags());
-}
-
-TEST_F(LayerClipRecorderTest, LayerClipRecorderTest_Single)
-{
- GraphicsContext* context = new GraphicsContext(nullptr);
- FloatRect bound = renderView()->viewRect();
- EXPECT_EQ((size_t)0, renderView()->viewDisplayList().paintList().size());
-
- drawClip(context, renderView(), PaintPhaseForeground, bound);
- EXPECT_EQ((size_t)2, renderView()->viewDisplayList().paintList().size());
-}
-
-}
-}
« no previous file with comments | « Source/core/paint/LayerClipRecorder.cpp ('k') | Source/core/paint/LayerPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698