OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "cc/layers/picture_layer_impl.h" | 5 #include "cc/layers/picture_layer_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "cc/debug/test_web_graphics_context_3d.h" | |
10 #include "cc/layers/append_quads_data.h" | 9 #include "cc/layers/append_quads_data.h" |
11 #include "cc/layers/picture_layer.h" | 10 #include "cc/layers/picture_layer.h" |
12 #include "cc/test/fake_content_layer_client.h" | 11 #include "cc/test/fake_content_layer_client.h" |
13 #include "cc/test/fake_impl_proxy.h" | 12 #include "cc/test/fake_impl_proxy.h" |
14 #include "cc/test/fake_layer_tree_host_impl.h" | 13 #include "cc/test/fake_layer_tree_host_impl.h" |
15 #include "cc/test/fake_output_surface.h" | 14 #include "cc/test/fake_output_surface.h" |
16 #include "cc/test/fake_picture_layer_impl.h" | 15 #include "cc/test/fake_picture_layer_impl.h" |
17 #include "cc/test/fake_picture_pile_impl.h" | 16 #include "cc/test/fake_picture_pile_impl.h" |
18 #include "cc/test/geometry_test_utils.h" | 17 #include "cc/test/geometry_test_utils.h" |
19 #include "cc/test/impl_side_painting_settings.h" | 18 #include "cc/test/impl_side_painting_settings.h" |
20 #include "cc/test/mock_quad_culler.h" | 19 #include "cc/test/mock_quad_culler.h" |
| 20 #include "cc/test/test_web_graphics_context_3d.h" |
21 #include "cc/trees/layer_tree_impl.h" | 21 #include "cc/trees/layer_tree_impl.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 #include "third_party/skia/include/core/SkBitmapDevice.h" | 23 #include "third_party/skia/include/core/SkBitmapDevice.h" |
24 #include "ui/gfx/rect_conversions.h" | 24 #include "ui/gfx/rect_conversions.h" |
25 | 25 |
26 namespace cc { | 26 namespace cc { |
27 namespace { | 27 namespace { |
28 | 28 |
29 class MockCanvas : public SkCanvas { | 29 class MockCanvas : public SkCanvas { |
30 public: | 30 public: |
(...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1185 TestContextProvider::Create(), NULL)); | 1185 TestContextProvider::Create(), NULL)); |
1186 | 1186 |
1187 // These will crash PictureLayerImpl if this is not true. | 1187 // These will crash PictureLayerImpl if this is not true. |
1188 ASSERT_TRUE(host_impl_.pending_tree()->needs_update_draw_properties()); | 1188 ASSERT_TRUE(host_impl_.pending_tree()->needs_update_draw_properties()); |
1189 ASSERT_TRUE(host_impl_.active_tree()->needs_update_draw_properties()); | 1189 ASSERT_TRUE(host_impl_.active_tree()->needs_update_draw_properties()); |
1190 host_impl_.active_tree()->UpdateDrawProperties(); | 1190 host_impl_.active_tree()->UpdateDrawProperties(); |
1191 } | 1191 } |
1192 | 1192 |
1193 } // namespace | 1193 } // namespace |
1194 } // namespace cc | 1194 } // namespace cc |
OLD | NEW |