OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 10 matching lines...) Expand all Loading... |
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 */ | 23 */ |
24 | 24 |
25 #include "config.h" | 25 #include "config.h" |
26 | 26 |
27 #include "core/platform/graphics/chromium/GraphicsLayerChromium.h" | 27 #include "core/platform/graphics/chromium/GraphicsLayerChromium.h" |
28 | 28 |
29 #include <gtest/gtest.h> | 29 #include <gtest/gtest.h> |
30 #include "CompositorFakeWebGraphicsContext3D.h" | 30 #include "CompositorFakeWebGraphicsContext3D.h" |
31 #include "ScrollableArea.h" | 31 #include "core/platform/ScrollableArea.h" |
32 #include "core/platform/graphics/GraphicsLayer.h" | 32 #include "core/platform/graphics/GraphicsLayer.h" |
33 #include "core/platform/graphics/transforms/Matrix3DTransformOperation.h" | 33 #include "core/platform/graphics/transforms/Matrix3DTransformOperation.h" |
34 #include "core/platform/graphics/transforms/RotateTransformOperation.h" | 34 #include "core/platform/graphics/transforms/RotateTransformOperation.h" |
35 #include "core/platform/graphics/transforms/TranslateTransformOperation.h" | 35 #include "core/platform/graphics/transforms/TranslateTransformOperation.h" |
36 #include <public/Platform.h> | 36 #include <public/Platform.h> |
37 #include <public/WebCompositorSupport.h> | 37 #include <public/WebCompositorSupport.h> |
38 #include <public/WebFloatAnimationCurve.h> | 38 #include <public/WebFloatAnimationCurve.h> |
39 #include <public/WebGraphicsContext3D.h> | 39 #include <public/WebGraphicsContext3D.h> |
40 #include <public/WebLayer.h> | 40 #include <public/WebLayer.h> |
41 #include <public/WebLayerTreeView.h> | 41 #include <public/WebLayerTreeView.h> |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 EXPECT_FALSE(m_graphicsLayer->contentsLayer()); | 152 EXPECT_FALSE(m_graphicsLayer->contentsLayer()); |
153 | 153 |
154 m_graphicsLayer->setContentsToSolidColor(Color::white); | 154 m_graphicsLayer->setContentsToSolidColor(Color::white); |
155 EXPECT_TRUE(m_graphicsLayer->contentsLayer()); | 155 EXPECT_TRUE(m_graphicsLayer->contentsLayer()); |
156 | 156 |
157 m_graphicsLayer->setContentsToSolidColor(Color()); | 157 m_graphicsLayer->setContentsToSolidColor(Color()); |
158 EXPECT_FALSE(m_graphicsLayer->contentsLayer()); | 158 EXPECT_FALSE(m_graphicsLayer->contentsLayer()); |
159 } | 159 } |
160 | 160 |
161 } // namespace | 161 } // namespace |
OLD | NEW |