Chromium Code Reviews| Index: cc/layer_tree_host_unittest.cc |
| diff --git a/cc/layer_tree_host_unittest.cc b/cc/layer_tree_host_unittest.cc |
| index 24d5642fe10133d062423268cf499a5247564fd2..d85693171ec23daa1686928c600b2019595fccb4 100644 |
| --- a/cc/layer_tree_host_unittest.cc |
| +++ b/cc/layer_tree_host_unittest.cc |
| @@ -1329,8 +1329,12 @@ public: |
| EXPECT_EQ(gfx::Point(2, 2), child->position()); |
| // Compute all the layer transforms for the frame. |
| - MockLayerTreeHostImpl::LayerList renderSurfaceLayerList; |
| - mockImpl->calculateRenderSurfaceLayerList(renderSurfaceLayerList); |
| + LayerTreeHostImpl::FrameData frameData; |
| + mockImpl->prepareToDraw(frameData); |
| + mockImpl->didDrawAllLayers(frameData); |
|
danakj
2012/12/13 00:03:37
can you move the didDraw down to the end, so we us
|
| + |
| + const MockLayerTreeHostImpl::LayerList& renderSurfaceLayerList = |
| + *frameData.renderSurfaceLayerList; |
| // Both layers should be drawing into the root render surface. |
| ASSERT_EQ(1u, renderSurfaceLayerList.size()); |