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/test/layer_tree_test_common.h" | 5 #include "cc/test/layer_tree_test_common.h" |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "cc/active_animation.h" | 8 #include "cc/active_animation.h" |
9 #include "cc/content_layer.h" | 9 #include "cc/content_layer.h" |
10 #include "cc/input_handler.h" | 10 #include "cc/input_handler.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 } | 108 } |
109 | 109 |
110 bool MockLayerTreeHostImpl::prepareToDraw(FrameData& frame) | 110 bool MockLayerTreeHostImpl::prepareToDraw(FrameData& frame) |
111 { | 111 { |
112 bool result = LayerTreeHostImpl::prepareToDraw(frame); | 112 bool result = LayerTreeHostImpl::prepareToDraw(frame); |
113 if (!m_testHooks->prepareToDrawOnThread(this)) | 113 if (!m_testHooks->prepareToDrawOnThread(this)) |
114 result = false; | 114 result = false; |
115 return result; | 115 return result; |
116 } | 116 } |
117 | 117 |
118 void MockLayerTreeHostImpl::drawLayers(const FrameData& frame) | 118 void MockLayerTreeHostImpl::drawLayers(FrameData& frame) |
119 { | 119 { |
120 LayerTreeHostImpl::drawLayers(frame); | 120 LayerTreeHostImpl::drawLayers(frame); |
121 m_testHooks->drawLayersOnThread(this); | 121 m_testHooks->drawLayersOnThread(this); |
122 } | 122 } |
123 | 123 |
124 void MockLayerTreeHostImpl::animateLayers(base::TimeTicks monotonicTime, base::T
ime wallClockTime) | 124 void MockLayerTreeHostImpl::animateLayers(base::TimeTicks monotonicTime, base::T
ime wallClockTime) |
125 { | 125 { |
126 m_testHooks->willAnimateLayers(this, monotonicTime); | 126 m_testHooks->willAnimateLayers(this, monotonicTime); |
127 LayerTreeHostImpl::animateLayers(monotonicTime, wallClockTime); | 127 LayerTreeHostImpl::animateLayers(monotonicTime, wallClockTime); |
128 m_testHooks->animateLayers(this, monotonicTime); | 128 m_testHooks->animateLayers(this, monotonicTime); |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 ASSERT_FALSE(m_layerTreeHost.get()); | 524 ASSERT_FALSE(m_layerTreeHost.get()); |
525 m_client.reset(); | 525 m_client.reset(); |
526 if (m_timedOut) { | 526 if (m_timedOut) { |
527 FAIL() << "Test timed out"; | 527 FAIL() << "Test timed out"; |
528 return; | 528 return; |
529 } | 529 } |
530 afterTest(); | 530 afterTest(); |
531 } | 531 } |
532 | 532 |
533 } // namespace WebKitTests | 533 } // namespace WebKitTests |
OLD | NEW |