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/trees/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 using ::testing::_; | 69 using ::testing::_; |
70 using media::VideoFrame; | 70 using media::VideoFrame; |
71 | 71 |
72 namespace cc { | 72 namespace cc { |
73 namespace { | 73 namespace { |
74 | 74 |
75 class LayerTreeHostImplTest : public testing::Test, | 75 class LayerTreeHostImplTest : public testing::Test, |
76 public LayerTreeHostImplClient { | 76 public LayerTreeHostImplClient { |
77 public: | 77 public: |
78 LayerTreeHostImplTest() | 78 LayerTreeHostImplTest() |
79 : proxy_(base::MessageLoopProxy::current()), | 79 : proxy_(base::MessageLoopProxy::current(), |
| 80 base::MessageLoopProxy::current()), |
80 always_impl_thread_(&proxy_), | 81 always_impl_thread_(&proxy_), |
81 always_main_thread_blocked_(&proxy_), | 82 always_main_thread_blocked_(&proxy_), |
82 shared_bitmap_manager_(new TestSharedBitmapManager()), | 83 shared_bitmap_manager_(new TestSharedBitmapManager()), |
83 on_can_draw_state_changed_called_(false), | 84 on_can_draw_state_changed_called_(false), |
84 did_notify_ready_to_activate_(false), | 85 did_notify_ready_to_activate_(false), |
85 did_request_commit_(false), | 86 did_request_commit_(false), |
86 did_request_redraw_(false), | 87 did_request_redraw_(false), |
87 did_request_animate_(false), | 88 did_request_animate_(false), |
88 did_request_manage_tiles_(false), | 89 did_request_manage_tiles_(false), |
89 did_upload_visible_tile_(false), | 90 did_upload_visible_tile_(false), |
(...skipping 6604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6694 | 6695 |
6695 host_impl_->Animate(start_time + base::TimeDelta::FromMilliseconds(200)); | 6696 host_impl_->Animate(start_time + base::TimeDelta::FromMilliseconds(200)); |
6696 host_impl_->UpdateAnimationState(true); | 6697 host_impl_->UpdateAnimationState(true); |
6697 | 6698 |
6698 EXPECT_EQ(gfx::Vector2dF(0, 50), scrolling_layer->TotalScrollOffset()); | 6699 EXPECT_EQ(gfx::Vector2dF(0, 50), scrolling_layer->TotalScrollOffset()); |
6699 EXPECT_EQ(NULL, host_impl_->CurrentlyScrollingLayer()); | 6700 EXPECT_EQ(NULL, host_impl_->CurrentlyScrollingLayer()); |
6700 } | 6701 } |
6701 | 6702 |
6702 } // namespace | 6703 } // namespace |
6703 } // namespace cc | 6704 } // namespace cc |
OLD | NEW |