OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/layer_impl.h" | 5 #include "cc/layers/layer_impl.h" |
6 | 6 |
7 #include "cc/test/fake_impl_proxy.h" | 7 #include "cc/test/fake_impl_proxy.h" |
8 #include "cc/test/fake_layer_tree_host_impl.h" | 8 #include "cc/test/fake_layer_tree_host_impl.h" |
9 #include "cc/test/fake_output_surface.h" | 9 #include "cc/test/fake_output_surface.h" |
10 #include "cc/trees/layer_tree_impl.h" | 10 #include "cc/trees/layer_tree_impl.h" |
11 #include "cc/trees/single_thread_proxy.h" | 11 #include "cc/trees/single_thread_proxy.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation.
h" | 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation.
h" |
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations
.h" | 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations
.h" |
16 #include "third_party/skia/include/effects/SkBlurImageFilter.h" | 16 #include "third_party/skia/include/effects/SkBlurImageFilter.h" |
17 | 17 |
18 using namespace WebKit; | 18 using WebKit::WebFilterOperation; |
| 19 using WebKit::WebFilterOperations; |
19 | 20 |
20 namespace cc { | 21 namespace cc { |
21 namespace { | 22 namespace { |
22 | 23 |
23 #define EXECUTE_AND_VERIFY_SUBTREE_CHANGED(code_to_test) \ | 24 #define EXECUTE_AND_VERIFY_SUBTREE_CHANGED(code_to_test) \ |
24 root->ResetAllChangeTrackingForSubtree(); \ | 25 root->ResetAllChangeTrackingForSubtree(); \ |
25 code_to_test; \ | 26 code_to_test; \ |
26 EXPECT_TRUE(root->LayerPropertyChanged()); \ | 27 EXPECT_TRUE(root->LayerPropertyChanged()); \ |
27 EXPECT_TRUE(child->LayerPropertyChanged()); \ | 28 EXPECT_TRUE(child->LayerPropertyChanged()); \ |
28 EXPECT_TRUE(grand_child->LayerPropertyChanged()); \ | 29 EXPECT_TRUE(grand_child->LayerPropertyChanged()); \ |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->SetOpacity(arbitrary_number)); | 294 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->SetOpacity(arbitrary_number)); |
294 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES( | 295 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES( |
295 root->SetTransform(arbitrary_transform)); | 296 root->SetTransform(arbitrary_transform)); |
296 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES( | 297 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES( |
297 root->SetSublayerTransform(arbitrary_transform)); | 298 root->SetSublayerTransform(arbitrary_transform)); |
298 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->SetBounds(arbitrary_size)); | 299 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->SetBounds(arbitrary_size)); |
299 } | 300 } |
300 | 301 |
301 } // namespace | 302 } // namespace |
302 } // namespace cc | 303 } // namespace cc |
OLD | NEW |