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 17 matching lines...) Expand all Loading... |
28 #include <memory> | 28 #include <memory> |
29 #include "platform/RuntimeEnabledFeatures.h" | 29 #include "platform/RuntimeEnabledFeatures.h" |
30 #include "platform/animation/CompositorAnimation.h" | 30 #include "platform/animation/CompositorAnimation.h" |
31 #include "platform/animation/CompositorAnimationHost.h" | 31 #include "platform/animation/CompositorAnimationHost.h" |
32 #include "platform/animation/CompositorAnimationPlayer.h" | 32 #include "platform/animation/CompositorAnimationPlayer.h" |
33 #include "platform/animation/CompositorAnimationPlayerClient.h" | 33 #include "platform/animation/CompositorAnimationPlayerClient.h" |
34 #include "platform/animation/CompositorAnimationTimeline.h" | 34 #include "platform/animation/CompositorAnimationTimeline.h" |
35 #include "platform/animation/CompositorFloatAnimationCurve.h" | 35 #include "platform/animation/CompositorFloatAnimationCurve.h" |
36 #include "platform/animation/CompositorTargetProperty.h" | 36 #include "platform/animation/CompositorTargetProperty.h" |
37 #include "platform/graphics/CompositorElementId.h" | 37 #include "platform/graphics/CompositorElementId.h" |
| 38 #include "platform/scheduler/child/web_scheduler.h" |
38 #include "platform/scroll/ScrollableArea.h" | 39 #include "platform/scroll/ScrollableArea.h" |
39 #include "platform/testing/FakeGraphicsLayer.h" | 40 #include "platform/testing/FakeGraphicsLayer.h" |
40 #include "platform/testing/FakeGraphicsLayerClient.h" | 41 #include "platform/testing/FakeGraphicsLayerClient.h" |
41 #include "platform/testing/WebLayerTreeViewImplForTesting.h" | 42 #include "platform/testing/WebLayerTreeViewImplForTesting.h" |
42 #include "platform/transforms/Matrix3DTransformOperation.h" | 43 #include "platform/transforms/Matrix3DTransformOperation.h" |
43 #include "platform/transforms/RotateTransformOperation.h" | 44 #include "platform/transforms/RotateTransformOperation.h" |
44 #include "platform/transforms/TranslateTransformOperation.h" | 45 #include "platform/transforms/TranslateTransformOperation.h" |
45 #include "platform/wtf/PtrUtil.h" | 46 #include "platform/wtf/PtrUtil.h" |
46 #include "public/platform/Platform.h" | 47 #include "public/platform/Platform.h" |
47 #include "public/platform/WebCompositorSupport.h" | 48 #include "public/platform/WebCompositorSupport.h" |
48 #include "public/platform/WebLayer.h" | 49 #include "public/platform/WebLayer.h" |
49 #include "public/platform/WebLayerTreeView.h" | 50 #include "public/platform/WebLayerTreeView.h" |
50 #include "public/platform/WebScheduler.h" | |
51 #include "public/platform/WebThread.h" | 51 #include "public/platform/WebThread.h" |
52 #include "testing/gtest/include/gtest/gtest.h" | 52 #include "testing/gtest/include/gtest/gtest.h" |
53 | 53 |
54 namespace blink { | 54 namespace blink { |
55 | 55 |
56 class GraphicsLayerTest : public testing::Test { | 56 class GraphicsLayerTest : public testing::Test { |
57 public: | 57 public: |
58 GraphicsLayerTest() { | 58 GraphicsLayerTest() { |
59 clip_layer_ = WTF::WrapUnique(new FakeGraphicsLayer(&client_)); | 59 clip_layer_ = WTF::WrapUnique(new FakeGraphicsLayer(&client_)); |
60 scroll_elasticity_layer_ = WTF::WrapUnique(new FakeGraphicsLayer(&client_)); | 60 scroll_elasticity_layer_ = WTF::WrapUnique(new FakeGraphicsLayer(&client_)); |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 return Platform::Current()->CurrentThread()->Scheduler()->TimerTaskRunner(); | 196 return Platform::Current()->CurrentThread()->Scheduler()->TimerTaskRunner(); |
197 } | 197 } |
198 | 198 |
199 DEFINE_INLINE_VIRTUAL_TRACE() { ScrollableArea::Trace(visitor); } | 199 DEFINE_INLINE_VIRTUAL_TRACE() { ScrollableArea::Trace(visitor); } |
200 | 200 |
201 private: | 201 private: |
202 ScrollOffset scroll_offset_; | 202 ScrollOffset scroll_offset_; |
203 }; | 203 }; |
204 | 204 |
205 } // namespace blink | 205 } // namespace blink |
OLD | NEW |