OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "platform/graphics/compositing/PaintArtifactCompositor.h" | 5 #include "platform/graphics/compositing/PaintArtifactCompositor.h" |
6 | 6 |
7 #include "base/test/test_simple_task_runner.h" | 7 #include "base/test/test_simple_task_runner.h" |
8 #include "base/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
9 #include "cc/layers/layer.h" | 9 #include "cc/layers/layer.h" |
10 #include "cc/test/fake_output_surface.h" | 10 #include "cc/test/fake_output_surface.h" |
11 #include "cc/trees/layer_tree_host.h" | 11 #include "cc/trees/layer_tree_host.h" |
12 #include "cc/trees/layer_tree_settings.h" | 12 #include "cc/trees/layer_tree_settings.h" |
13 #include "platform/RuntimeEnabledFeatures.h" | 13 #include "platform/RuntimeEnabledFeatures.h" |
14 #include "platform/graphics/paint/PaintArtifact.h" | 14 #include "platform/graphics/paint/PaintArtifact.h" |
15 #include "platform/testing/PictureMatchers.h" | 15 #include "platform/testing/PictureMatchers.h" |
16 #include "platform/testing/TestPaintArtifact.h" | 16 #include "platform/testing/TestPaintArtifact.h" |
17 #include "platform/testing/WebLayerTreeViewImplForTesting.h" | 17 #include "platform/testing/WebLayerTreeViewImplForTesting.h" |
18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 ASSERT_EQ(1u, rootLayer()->children().size()); | 423 ASSERT_EQ(1u, rootLayer()->children().size()); |
424 const cc::Layer* child = rootLayer()->child_at(0); | 424 const cc::Layer* child = rootLayer()->child_at(0); |
425 EXPECT_THAT(child->GetPicture(), | 425 EXPECT_THAT(child->GetPicture(), |
426 Pointee(drawsRectangle(FloatRect(0, 0, 100, 100), Color::white))); | 426 Pointee(drawsRectangle(FloatRect(0, 0, 100, 100), Color::white))); |
427 EXPECT_EQ(translation(50, -50), child->screen_space_transform()); | 427 EXPECT_EQ(translation(50, -50), child->screen_space_transform()); |
428 EXPECT_EQ(gfx::Size(100, 100), child->bounds()); | 428 EXPECT_EQ(gfx::Size(100, 100), child->bounds()); |
429 } | 429 } |
430 | 430 |
431 } // namespace | 431 } // namespace |
432 } // namespace blink | 432 } // namespace blink |
OLD | NEW |