| OLD | NEW |
| 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 "core/paint/RenderDrawingRecorder.h" | 6 #include "core/paint/RenderDrawingRecorder.h" |
| 7 | 7 |
| 8 #include "core/rendering/RenderLayer.h" | 8 #include "core/layout/Layer.h" |
| 9 #include "core/rendering/RenderView.h" | 9 #include "core/rendering/RenderView.h" |
| 10 #include "core/rendering/RenderingTestHelper.h" | 10 #include "core/rendering/RenderingTestHelper.h" |
| 11 #include "platform/graphics/GraphicsContext.h" | 11 #include "platform/graphics/GraphicsContext.h" |
| 12 #include "platform/graphics/GraphicsLayer.h" | 12 #include "platform/graphics/GraphicsLayer.h" |
| 13 #include "platform/graphics/paint/DisplayItemList.h" | 13 #include "platform/graphics/paint/DisplayItemList.h" |
| 14 #include <gtest/gtest.h> | 14 #include <gtest/gtest.h> |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 drawNothing(&context, renderView(), PaintPhaseBlockBackground, bound); | 88 drawNothing(&context, renderView(), PaintPhaseBlockBackground, bound); |
| 89 drawRect(&context, renderView(), PaintPhaseForeground, bound); | 89 drawRect(&context, renderView(), PaintPhaseForeground, bound); |
| 90 rootDisplayItemList().endNewPaints(); | 90 rootDisplayItemList().endNewPaints(); |
| 91 EXPECT_EQ((size_t)2, rootDisplayItemList().paintList().size()); | 91 EXPECT_EQ((size_t)2, rootDisplayItemList().paintList().size()); |
| 92 EXPECT_TRUE(rootDisplayItemList().paintList()[1]->isDrawing()); | 92 EXPECT_TRUE(rootDisplayItemList().paintList()[1]->isDrawing()); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } | 95 } |
| 96 } | 96 } |
| OLD | NEW |