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/layer_impl.h" | 5 #include "cc/layer_impl.h" |
6 | 6 |
7 #include "cc/single_thread_proxy.h" | 7 #include "cc/single_thread_proxy.h" |
8 #include "cc/test/fake_impl_proxy.h" | 8 #include "cc/test/fake_impl_proxy.h" |
9 #include "cc/test/fake_layer_tree_host_impl.h" | 9 #include "cc/test/fake_layer_tree_host_impl.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation.
h" |
| 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations
.h" |
12 #include "third_party/skia/include/effects/SkBlurImageFilter.h" | 14 #include "third_party/skia/include/effects/SkBlurImageFilter.h" |
13 #include <public/WebFilterOperation.h> | |
14 #include <public/WebFilterOperations.h> | |
15 | 15 |
16 using namespace WebKit; | 16 using namespace WebKit; |
17 | 17 |
18 namespace cc { | 18 namespace cc { |
19 namespace { | 19 namespace { |
20 | 20 |
21 #define EXECUTE_AND_VERIFY_SUBTREE_CHANGED(codeToTest) \ | 21 #define EXECUTE_AND_VERIFY_SUBTREE_CHANGED(codeToTest) \ |
22 root->resetAllChangeTrackingForSubtree(); \ | 22 root->resetAllChangeTrackingForSubtree(); \ |
23 codeToTest; \ | 23 codeToTest; \ |
24 EXPECT_TRUE(root->layerPropertyChanged()); \ | 24 EXPECT_TRUE(root->layerPropertyChanged()); \ |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->setBackgroundColor(SK_ColorGRAY
)); | 240 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->setBackgroundColor(SK_ColorGRAY
)); |
241 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->setBackgroundFilters(arbitraryF
ilters)); | 241 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->setBackgroundFilters(arbitraryF
ilters)); |
242 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->setOpacity(arbitraryNumber)); | 242 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->setOpacity(arbitraryNumber)); |
243 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->setTransform(arbitraryTransform
)); | 243 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->setTransform(arbitraryTransform
)); |
244 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->setSublayerTransform(arbitraryT
ransform)); | 244 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->setSublayerTransform(arbitraryT
ransform)); |
245 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->setBounds(arbitrarySize)); | 245 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->setBounds(arbitrarySize)); |
246 } | 246 } |
247 | 247 |
248 } // namespace | 248 } // namespace |
249 } // namespace cc | 249 } // namespace cc |
OLD | NEW |