| 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 21 matching lines...) Expand all Loading... |
| 32 #include "platform/graphics/CompositorFactory.h" | 32 #include "platform/graphics/CompositorFactory.h" |
| 33 #include "platform/scroll/ScrollableArea.h" | 33 #include "platform/scroll/ScrollableArea.h" |
| 34 #include "platform/testing/FakeGraphicsLayer.h" | 34 #include "platform/testing/FakeGraphicsLayer.h" |
| 35 #include "platform/testing/FakeGraphicsLayerClient.h" | 35 #include "platform/testing/FakeGraphicsLayerClient.h" |
| 36 #include "platform/testing/WebLayerTreeViewImplForTesting.h" | 36 #include "platform/testing/WebLayerTreeViewImplForTesting.h" |
| 37 #include "platform/transforms/Matrix3DTransformOperation.h" | 37 #include "platform/transforms/Matrix3DTransformOperation.h" |
| 38 #include "platform/transforms/RotateTransformOperation.h" | 38 #include "platform/transforms/RotateTransformOperation.h" |
| 39 #include "platform/transforms/TranslateTransformOperation.h" | 39 #include "platform/transforms/TranslateTransformOperation.h" |
| 40 #include "public/platform/Platform.h" | 40 #include "public/platform/Platform.h" |
| 41 #include "public/platform/WebCompositorSupport.h" | 41 #include "public/platform/WebCompositorSupport.h" |
| 42 #include "public/platform/WebGraphicsContext3D.h" | |
| 43 #include "public/platform/WebLayer.h" | 42 #include "public/platform/WebLayer.h" |
| 44 #include "public/platform/WebLayerTreeView.h" | 43 #include "public/platform/WebLayerTreeView.h" |
| 45 #include "testing/gtest/include/gtest/gtest.h" | 44 #include "testing/gtest/include/gtest/gtest.h" |
| 46 #include "wtf/PassOwnPtr.h" | 45 #include "wtf/PassOwnPtr.h" |
| 47 | 46 |
| 48 namespace blink { | 47 namespace blink { |
| 49 | 48 |
| 50 class GraphicsLayerTest : public testing::Test { | 49 class GraphicsLayerTest : public testing::Test { |
| 51 public: | 50 public: |
| 52 GraphicsLayerTest() | 51 GraphicsLayerTest() |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 | 193 |
| 195 WebDoublePoint scrollPosition(7, 9); | 194 WebDoublePoint scrollPosition(7, 9); |
| 196 m_platformLayer->setScrollPositionDouble(scrollPosition); | 195 m_platformLayer->setScrollPositionDouble(scrollPosition); |
| 197 m_graphicsLayer->didScroll(); | 196 m_graphicsLayer->didScroll(); |
| 198 | 197 |
| 199 EXPECT_FLOAT_EQ(scrollPosition.x, scrollableArea->scrollPositionDouble().x()
); | 198 EXPECT_FLOAT_EQ(scrollPosition.x, scrollableArea->scrollPositionDouble().x()
); |
| 200 EXPECT_FLOAT_EQ(scrollPosition.y, scrollableArea->scrollPositionDouble().y()
); | 199 EXPECT_FLOAT_EQ(scrollPosition.y, scrollableArea->scrollPositionDouble().y()
); |
| 201 } | 200 } |
| 202 | 201 |
| 203 } // namespace blink | 202 } // namespace blink |
| OLD | NEW |