Index: cc/trees/layer_tree_host_impl_unittest.cc |
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc |
index 4289a996e61d1c816df0bcc063b4f5c98f0f8c14..3e8b99cf9b7351c3a5d00875aa6d4049c2114410 100644 |
--- a/cc/trees/layer_tree_host_impl_unittest.cc |
+++ b/cc/trees/layer_tree_host_impl_unittest.cc |
@@ -299,7 +299,7 @@ class LayerTreeHostImplTest : public testing::Test, |
} |
void DrawFrame() { |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -385,7 +385,7 @@ class LayerTreeHostImplTest : public testing::Test, |
} |
void DrawOneFrame() { |
- LayerTreeHostImpl::FrameData frame_data; |
+ FrameData frame_data; |
host_impl_->PrepareToDraw(&frame_data); |
host_impl_->DidDrawAllLayers(frame_data); |
} |
@@ -1977,7 +1977,7 @@ TEST_F(LayerTreeHostImplTest, WillDrawReturningFalseDoesNotCall) { |
static_cast<DidDrawCheckLayer*>(root->children()[0]); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -1990,7 +1990,7 @@ TEST_F(LayerTreeHostImplTest, WillDrawReturningFalseDoesNotCall) { |
host_impl_->SetViewportDamage(gfx::Rect(10, 10)); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
layer->set_will_draw_returns_false(); |
layer->ClearDidDrawCheck(); |
@@ -2022,7 +2022,7 @@ TEST_F(LayerTreeHostImplTest, DidDrawNotCalledOnHiddenLayer) { |
layer->SetBounds(gfx::Size(10, 10)); |
layer->SetContentBounds(gfx::Size(10, 10)); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_FALSE(layer->will_draw_called()); |
EXPECT_FALSE(layer->did_draw_called()); |
@@ -2075,7 +2075,7 @@ TEST_F(LayerTreeHostImplTest, WillDrawNotCalledOnOccludedLayer) { |
top_layer->SetContentBounds(big_size); |
top_layer->SetContentsOpaque(true); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_FALSE(occluded_layer->will_draw_called()); |
EXPECT_FALSE(occluded_layer->did_draw_called()); |
@@ -2114,7 +2114,7 @@ TEST_F(LayerTreeHostImplTest, DidDrawCalledOnAllLayers) { |
EXPECT_FALSE(layer1->did_draw_called()); |
EXPECT_FALSE(layer2->did_draw_called()); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
FakeLayerTreeHostImpl::RecursiveUpdateNumChildren( |
host_impl_->active_tree()->root_layer()); |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
@@ -2299,7 +2299,7 @@ TEST_F(LayerTreeHostImplTest, PrepareToDrawSucceedsAndFails) { |
static_cast<DidDrawCheckLayer*>(host_impl_->active_tree()->root_layer()); |
root->SetHasRenderSurface(true); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -2347,7 +2347,7 @@ TEST_F(LayerTreeHostImplTest, PrepareToDrawSucceedsAndFails) { |
if (testcase.high_res_required) |
host_impl_->SetRequiresHighResToDraw(); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(testcase.expected_result, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -2386,7 +2386,7 @@ TEST_F(LayerTreeHostImplTest, |
static_cast<DidDrawCheckLayer*>(host_impl_->active_tree()->root_layer()); |
root->SetHasRenderSurface(true); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -2434,7 +2434,7 @@ TEST_F(LayerTreeHostImplTest, |
if (testcase.high_res_required) |
host_impl_->SetRequiresHighResToDraw(); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(testcase.expected_result, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -3395,7 +3395,7 @@ TEST_F(LayerTreeHostImplTest, PageScaleDeltaAppliedToRootScrollLayerOnly) { |
// Make sure all the layers are drawn with the page scale delta applied, i.e., |
// the page scale delta on the root layer is applied hierarchically. |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -4065,7 +4065,7 @@ TEST_F(LayerTreeHostImplTest, |
host_impl_->OnRootLayerDelegatedScrollOffsetChanged(); |
// Check scroll delta reflected in layer. |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -4519,7 +4519,7 @@ TEST_F(LayerTreeHostImplTest, BlendingOffWhenDrawingOpaqueLayers) { |
static_cast<BlendStateCheckLayer*>(root->children()[0]); |
layer1->SetPosition(gfx::PointF(2.f, 2.f)); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
// Opaque layer, drawn without blending. |
layer1->SetContentsOpaque(true); |
@@ -4765,7 +4765,7 @@ class LayerTreeHostImplViewportCoveredTest : public LayerTreeHostImplTest { |
child_->SetQuadRect(gfx::Rect(layer_rect.size())); |
child_->SetQuadVisibleRect(gfx::Rect(layer_rect.size())); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -4786,7 +4786,7 @@ class LayerTreeHostImplViewportCoveredTest : public LayerTreeHostImplTest { |
child_->SetQuadRect(gfx::Rect(layer_rect.size())); |
child_->SetQuadVisibleRect(gfx::Rect(layer_rect.size())); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -4807,7 +4807,7 @@ class LayerTreeHostImplViewportCoveredTest : public LayerTreeHostImplTest { |
child_->SetQuadRect(gfx::Rect(layer_rect.size())); |
child_->SetQuadVisibleRect(gfx::Rect(layer_rect.size())); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -4829,7 +4829,7 @@ class LayerTreeHostImplViewportCoveredTest : public LayerTreeHostImplTest { |
child_->SetQuadRect(gfx::Rect(layer_rect.size())); |
child_->SetQuadVisibleRect(gfx::Rect(layer_rect.size())); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -4998,7 +4998,7 @@ TEST_F(LayerTreeHostImplTest, ReshapeNotCalledUntilDraw) { |
EXPECT_FALSE(provider->TestContext3d()->reshape_called()); |
provider->TestContext3d()->clear_reshape_called(); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
host_impl_->SetViewportSize(gfx::Size(10, 10)); |
host_impl_->SetDeviceScaleFactor(1.f); |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
@@ -5075,7 +5075,7 @@ TEST_F(LayerTreeHostImplTest, PartialSwapReceivesDamageRect) { |
root->AddChild(child.Pass()); |
layer_tree_host_impl->active_tree()->SetRootLayer(root.Pass()); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
// First frame, the entire screen should get swapped. |
EXPECT_EQ(DRAW_SUCCESS, layer_tree_host_impl->PrepareToDraw(&frame)); |
@@ -5134,7 +5134,7 @@ TEST_F(LayerTreeHostImplTest, RootLayerDoesntCreateExtraSurface) { |
host_impl_->active_tree()->SetRootLayer(root.Pass()); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
EXPECT_EQ(1u, frame.render_surface_layer_list->size()); |
@@ -5271,7 +5271,7 @@ TEST_F(LayerTreeHostImplTest, NoPartialSwap) { |
harness.MustDrawSolidQuad(); |
harness.MustSetNoScissor(); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -5284,7 +5284,7 @@ TEST_F(LayerTreeHostImplTest, NoPartialSwap) { |
harness.MustDrawSolidQuad(); |
harness.MustSetScissor(0, 0, 10, 10); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -5306,7 +5306,7 @@ TEST_F(LayerTreeHostImplTest, PartialSwap) { |
harness.MustSetScissor(0, 0, 10, 10); |
harness.MustDrawSolidQuad(); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -5321,7 +5321,7 @@ TEST_F(LayerTreeHostImplTest, PartialSwap) { |
harness.MustSetScissor(0, 7, 2, 3); |
harness.MustDrawSolidQuad(); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -5416,7 +5416,7 @@ TEST_F(LayerTreeHostImplTest, ContributingLayerEmptyScissorPartialSwap) { |
shared_bitmap_manager.get(), |
&stats_instrumentation_); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, my_host_impl->PrepareToDraw(&frame)); |
// Verify all quads have been computed |
@@ -5443,7 +5443,7 @@ TEST_F(LayerTreeHostImplTest, ContributingLayerEmptyScissorNoPartialSwap) { |
shared_bitmap_manager.get(), |
&stats_instrumentation_); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, my_host_impl->PrepareToDraw(&frame)); |
// Verify all quads have been computed |
@@ -5497,7 +5497,7 @@ TEST_F(LayerTreeHostImplTest, LayersFreeTextures) { |
EXPECT_EQ(0u, context3d->NumTextures()); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -5540,7 +5540,7 @@ TEST_F(LayerTreeHostImplTest, HasTransparentBackground) { |
.Times(1); |
EXPECT_CALL(*mock_context, drawElements(_, _, _, _)) |
.Times(1); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -5605,7 +5605,7 @@ class LayerTreeHostImplTestWithDelegatingRenderer |
void DrawFrameAndTestDamage(const gfx::RectF& expected_damage) { |
bool expect_to_draw = !expected_damage.IsEmpty(); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
if (!expect_to_draw) { |
@@ -5762,7 +5762,7 @@ TEST_F(LayerTreeHostImplTest, MaskLayerWithScaling) { |
host_impl_->SetViewportSize(root_size); |
host_impl_->SetDeviceScaleFactor(device_scale_factor); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -5793,7 +5793,7 @@ TEST_F(LayerTreeHostImplTest, MaskLayerWithScaling) { |
host_impl_->SetDeviceScaleFactor(device_scale_factor); |
host_impl_->active_tree()->set_needs_update_draw_properties(); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -5826,7 +5826,7 @@ TEST_F(LayerTreeHostImplTest, MaskLayerWithScaling) { |
mask_layer->SetContentsScale(device_scale_factor, device_scale_factor); |
host_impl_->active_tree()->set_needs_update_draw_properties(); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -5892,7 +5892,7 @@ TEST_F(LayerTreeHostImplTest, MaskLayerWithDifferentBounds) { |
host_impl_->SetViewportSize(root_size); |
host_impl_->SetDeviceScaleFactor(device_scale_factor); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -5922,7 +5922,7 @@ TEST_F(LayerTreeHostImplTest, MaskLayerWithDifferentBounds) { |
host_impl_->SetDeviceScaleFactor(device_scale_factor); |
host_impl_->active_tree()->set_needs_update_draw_properties(); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -5955,7 +5955,7 @@ TEST_F(LayerTreeHostImplTest, MaskLayerWithDifferentBounds) { |
mask_layer->SetContentsScale(device_scale_factor, device_scale_factor); |
host_impl_->active_tree()->set_needs_update_draw_properties(); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -5983,7 +5983,7 @@ TEST_F(LayerTreeHostImplTest, MaskLayerWithDifferentBounds) { |
mask_layer->SetContentsScale(1.f, 1.f); |
host_impl_->active_tree()->set_needs_update_draw_properties(); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -6055,7 +6055,7 @@ TEST_F(LayerTreeHostImplTest, ReflectionMaskLayerWithDifferentBounds) { |
host_impl_->SetViewportSize(root_size); |
host_impl_->SetDeviceScaleFactor(device_scale_factor); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -6084,7 +6084,7 @@ TEST_F(LayerTreeHostImplTest, ReflectionMaskLayerWithDifferentBounds) { |
host_impl_->SetDeviceScaleFactor(device_scale_factor); |
host_impl_->active_tree()->set_needs_update_draw_properties(); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -6116,7 +6116,7 @@ TEST_F(LayerTreeHostImplTest, ReflectionMaskLayerWithDifferentBounds) { |
mask_layer->SetContentsScale(device_scale_factor, device_scale_factor); |
host_impl_->active_tree()->set_needs_update_draw_properties(); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -6143,7 +6143,7 @@ TEST_F(LayerTreeHostImplTest, ReflectionMaskLayerWithDifferentBounds) { |
mask_layer->SetContentsScale(1.f, 1.f); |
host_impl_->active_tree()->set_needs_update_draw_properties(); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -6223,7 +6223,7 @@ TEST_F(LayerTreeHostImplTest, ReflectionMaskLayerForSurfaceWithUnclippedChild) { |
host_impl_->SetViewportSize(root_size); |
host_impl_->SetDeviceScaleFactor(device_scale_factor); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -6258,7 +6258,7 @@ TEST_F(LayerTreeHostImplTest, ReflectionMaskLayerForSurfaceWithUnclippedChild) { |
// cover the layer being replicated. |
content_child_layer->SetPosition(gfx::Point(-50, 0)); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -6356,7 +6356,7 @@ TEST_F(LayerTreeHostImplTest, MaskLayerForSurfaceWithClippedLayer) { |
host_impl_->SetViewportSize(root_size); |
host_impl_->SetDeviceScaleFactor(device_scale_factor); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -6441,7 +6441,7 @@ TEST_F(LayerTreeHostImplTest, FarAwayQuadsDontNeedAA) { |
host_impl_->active_tree()->UpdateDrawProperties(update_lcd_text); |
ASSERT_EQ(1u, host_impl_->active_tree()->RenderSurfaceLayerList().size()); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
ASSERT_EQ(1u, frame.render_passes.size()); |
@@ -6473,7 +6473,7 @@ class CompositorFrameMetadataTest : public LayerTreeHostImplTest { |
TEST_F(CompositorFrameMetadataTest, CompositorFrameAckCountsAsSwapComplete) { |
SetupRootLayerImpl(FakeLayerWithQuads::Create(host_impl_->active_tree(), 1)); |
{ |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, base::TimeTicks()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -6576,7 +6576,7 @@ TEST_F(LayerTreeHostImplTest, |
root_layer->AddChild(video_layer.Pass()); |
SetupRootLayerImpl(root_layer.Pass()); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -6886,7 +6886,7 @@ TEST_F(LayerTreeHostImplTest, ShutdownReleasesContext) { |
host_impl_->active_tree()->root_layer()->PassCopyRequests(&requests); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -7283,7 +7283,7 @@ TEST_F(LayerTreeHostImplTest, LatencyInfoPassedToCompositorFrameMetadata) { |
host_impl_->SetNeedsRedraw(); |
gfx::Rect full_frame_damage(host_impl_->DrawViewportSize()); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |
@@ -7333,7 +7333,7 @@ TEST_F(LayerTreeHostImplTest, SelectionBoundsPassedToCompositorFrameMetadata) { |
host_impl_->SetNeedsRedraw(); |
gfx::Rect full_frame_damage(host_impl_->DrawViewportSize()); |
- LayerTreeHostImpl::FrameData frame; |
+ FrameData frame; |
EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
host_impl_->DidDrawAllLayers(frame); |