| Index: cc/surfaces/surface_factory_unittest.cc
|
| diff --git a/cc/surfaces/surface_factory_unittest.cc b/cc/surfaces/surface_factory_unittest.cc
|
| index b5c2a63756900adc90efe16df0091018e0d3a989..b9c6bf5c20738f6c255d6dd16a34362375e681d6 100644
|
| --- a/cc/surfaces/surface_factory_unittest.cc
|
| +++ b/cc/surfaces/surface_factory_unittest.cc
|
| @@ -360,6 +360,21 @@ TEST_F(SurfaceFactoryTest, ResourceLifetime) {
|
| }
|
| }
|
|
|
| +TEST_F(SurfaceFactoryTest, BlankNoIndexIncrement) {
|
| + SurfaceId surface_id(6);
|
| + factory_.Create(surface_id);
|
| + Surface* surface = manager_.GetSurfaceForId(surface_id);
|
| + ASSERT_NE(nullptr, surface);
|
| + EXPECT_EQ(2, surface->frame_index());
|
| + scoped_ptr<CompositorFrame> frame(new CompositorFrame);
|
| + frame->delegated_frame_data.reset(new DelegatedFrameData);
|
| +
|
| + factory_.SubmitFrame(surface_id, frame.Pass(),
|
| + SurfaceFactory::DrawCallback());
|
| + EXPECT_EQ(2, surface->frame_index());
|
| + factory_.Destroy(surface_id);
|
| +}
|
| +
|
| void DrawCallback(uint32* execute_count,
|
| SurfaceDrawStatus* result,
|
| SurfaceDrawStatus drawn) {
|
|
|