Commit ef95533d authored by mithro@mithis.com's avatar mithro@mithis.com

Removing base::TimeTicks argument to DrawLayers as it isn't really used.

R=skyostil,brianderson
BUG=346230

Review URL: https://codereview.chromium.org/340743002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282456 0039d316-1c4b-4281-b951-d872f2087c98
parent bf3253e0
...@@ -165,7 +165,7 @@ TEST_F(DelegatedRendererLayerImplTestSimple, AddsContributingRenderPasses) { ...@@ -165,7 +165,7 @@ TEST_F(DelegatedRendererLayerImplTestSimple, AddsContributingRenderPasses) {
EXPECT_EQ(gfx::Rect(7, 7, 7, 7).ToString(), EXPECT_EQ(gfx::Rect(7, 7, 7, 7).ToString(),
frame.render_passes[2]->output_rect.ToString()); frame.render_passes[2]->output_rect.ToString());
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -201,7 +201,7 @@ TEST_F(DelegatedRendererLayerImplTestSimple, ...@@ -201,7 +201,7 @@ TEST_F(DelegatedRendererLayerImplTestSimple,
EXPECT_EQ(gfx::Rect(0, 0, 6, 6).ToString(), EXPECT_EQ(gfx::Rect(0, 0, 6, 6).ToString(),
frame.render_passes[1]->quad_list[0]->rect.ToString()); frame.render_passes[1]->quad_list[0]->rect.ToString());
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -228,7 +228,7 @@ TEST_F(DelegatedRendererLayerImplTestSimple, AddsQuadsToTargetRenderPass) { ...@@ -228,7 +228,7 @@ TEST_F(DelegatedRendererLayerImplTestSimple, AddsQuadsToTargetRenderPass) {
EXPECT_EQ(gfx::Rect(0, 0, 15, 15).ToString(), EXPECT_EQ(gfx::Rect(0, 0, 15, 15).ToString(),
frame.render_passes[3]->quad_list[1]->rect.ToString()); frame.render_passes[3]->quad_list[1]->rect.ToString());
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -259,7 +259,7 @@ TEST_F(DelegatedRendererLayerImplTestSimple, ...@@ -259,7 +259,7 @@ TEST_F(DelegatedRendererLayerImplTestSimple,
EXPECT_TRANSFORMATION_MATRIX_EQ( EXPECT_TRANSFORMATION_MATRIX_EQ(
gfx::Transform(), frame.render_passes[1]->quad_list[0]->quadTransform()); gfx::Transform(), frame.render_passes[1]->quad_list[0]->quadTransform());
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -291,7 +291,7 @@ TEST_F(DelegatedRendererLayerImplTestSimple, RenderPassTransformIsModified) { ...@@ -291,7 +291,7 @@ TEST_F(DelegatedRendererLayerImplTestSimple, RenderPassTransformIsModified) {
transform * seven_eight, transform * seven_eight,
frame.render_passes[2]->transform_to_root_target); frame.render_passes[2]->transform_to_root_target);
host_impl_->DrawLayers(&frame, base::TimeTicks::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -303,7 +303,7 @@ TEST_F(DelegatedRendererLayerImplTestSimple, DoesNotOwnARenderSurface) { ...@@ -303,7 +303,7 @@ TEST_F(DelegatedRendererLayerImplTestSimple, DoesNotOwnARenderSurface) {
// has no need to be a RenderSurface for the quads it carries. // has no need to be a RenderSurface for the quads it carries.
EXPECT_FALSE(delegated_renderer_layer_->render_surface()); EXPECT_FALSE(delegated_renderer_layer_->render_surface());
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -318,7 +318,7 @@ TEST_F(DelegatedRendererLayerImplTestSimple, DoesOwnARenderSurfaceForOpacity) { ...@@ -318,7 +318,7 @@ TEST_F(DelegatedRendererLayerImplTestSimple, DoesOwnARenderSurfaceForOpacity) {
// render surface. // render surface.
EXPECT_TRUE(delegated_renderer_layer_->render_surface()); EXPECT_TRUE(delegated_renderer_layer_->render_surface());
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -336,7 +336,7 @@ TEST_F(DelegatedRendererLayerImplTestSimple, ...@@ -336,7 +336,7 @@ TEST_F(DelegatedRendererLayerImplTestSimple,
// render surface. // render surface.
EXPECT_TRUE(delegated_renderer_layer_->render_surface()); EXPECT_TRUE(delegated_renderer_layer_->render_surface());
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -383,7 +383,7 @@ TEST_F(DelegatedRendererLayerImplTestOwnSurface, AddsRenderPasses) { ...@@ -383,7 +383,7 @@ TEST_F(DelegatedRendererLayerImplTestOwnSurface, AddsRenderPasses) {
EXPECT_EQ(gfx::Rect(7, 7, 7, 7).ToString(), EXPECT_EQ(gfx::Rect(7, 7, 7, 7).ToString(),
frame.render_passes[2]->output_rect.ToString()); frame.render_passes[2]->output_rect.ToString());
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -420,7 +420,7 @@ TEST_F(DelegatedRendererLayerImplTestOwnSurface, ...@@ -420,7 +420,7 @@ TEST_F(DelegatedRendererLayerImplTestOwnSurface,
EXPECT_EQ(gfx::Rect(0, 0, 6, 6).ToString(), EXPECT_EQ(gfx::Rect(0, 0, 6, 6).ToString(),
frame.render_passes[1]->quad_list[0]->rect.ToString()); frame.render_passes[1]->quad_list[0]->rect.ToString());
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -445,7 +445,7 @@ TEST_F(DelegatedRendererLayerImplTestOwnSurface, AddsQuadsToTargetRenderPass) { ...@@ -445,7 +445,7 @@ TEST_F(DelegatedRendererLayerImplTestOwnSurface, AddsQuadsToTargetRenderPass) {
EXPECT_EQ(gfx::Rect(7, 7, 7, 7).ToString(), EXPECT_EQ(gfx::Rect(7, 7, 7, 7).ToString(),
frame.render_passes[3]->quad_list[0]->rect.ToString()); frame.render_passes[3]->quad_list[0]->rect.ToString());
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -474,7 +474,7 @@ TEST_F(DelegatedRendererLayerImplTestOwnSurface, ...@@ -474,7 +474,7 @@ TEST_F(DelegatedRendererLayerImplTestOwnSurface,
EXPECT_TRANSFORMATION_MATRIX_EQ( EXPECT_TRANSFORMATION_MATRIX_EQ(
gfx::Transform(), frame.render_passes[1]->quad_list[0]->quadTransform()); gfx::Transform(), frame.render_passes[1]->quad_list[0]->quadTransform());
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -727,7 +727,7 @@ TEST_F(DelegatedRendererLayerImplTestTransform, QuadsUnclipped_NoSurface) { ...@@ -727,7 +727,7 @@ TEST_F(DelegatedRendererLayerImplTestTransform, QuadsUnclipped_NoSurface) {
expected, expected,
contrib_delegated_shared_quad_state->content_to_target_transform); contrib_delegated_shared_quad_state->content_to_target_transform);
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -786,7 +786,7 @@ TEST_F(DelegatedRendererLayerImplTestTransform, QuadsClipped_NoSurface) { ...@@ -786,7 +786,7 @@ TEST_F(DelegatedRendererLayerImplTestTransform, QuadsClipped_NoSurface) {
expected, expected,
contrib_delegated_shared_quad_state->content_to_target_transform); contrib_delegated_shared_quad_state->content_to_target_transform);
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -834,7 +834,7 @@ TEST_F(DelegatedRendererLayerImplTestTransform, QuadsUnclipped_Surface) { ...@@ -834,7 +834,7 @@ TEST_F(DelegatedRendererLayerImplTestTransform, QuadsUnclipped_Surface) {
expected, expected,
contrib_delegated_shared_quad_state->content_to_target_transform); contrib_delegated_shared_quad_state->content_to_target_transform);
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -881,7 +881,7 @@ TEST_F(DelegatedRendererLayerImplTestTransform, QuadsClipped_Surface) { ...@@ -881,7 +881,7 @@ TEST_F(DelegatedRendererLayerImplTestTransform, QuadsClipped_Surface) {
expected, expected,
contrib_delegated_shared_quad_state->content_to_target_transform); contrib_delegated_shared_quad_state->content_to_target_transform);
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -920,7 +920,7 @@ TEST_F(DelegatedRendererLayerImplTestTransform, MismatchedDeviceScaleFactor) { ...@@ -920,7 +920,7 @@ TEST_F(DelegatedRendererLayerImplTestTransform, MismatchedDeviceScaleFactor) {
EXPECT_TRANSFORMATION_MATRIX_EQ( EXPECT_TRANSFORMATION_MATRIX_EQ(
expected, root_delegated_shared_quad_state->content_to_target_transform); expected, root_delegated_shared_quad_state->content_to_target_transform);
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -1112,7 +1112,7 @@ TEST_F(DelegatedRendererLayerImplTestClip, ...@@ -1112,7 +1112,7 @@ TEST_F(DelegatedRendererLayerImplTestClip,
// Quads are clipped to the delegated renderer layer. // Quads are clipped to the delegated renderer layer.
EXPECT_TRUE(root_delegated_shared_quad_state->is_clipped); EXPECT_TRUE(root_delegated_shared_quad_state->is_clipped);
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -1141,7 +1141,7 @@ TEST_F(DelegatedRendererLayerImplTestClip, ...@@ -1141,7 +1141,7 @@ TEST_F(DelegatedRendererLayerImplTestClip,
// Quads came with a clip rect. // Quads came with a clip rect.
EXPECT_TRUE(root_delegated_shared_quad_state->is_clipped); EXPECT_TRUE(root_delegated_shared_quad_state->is_clipped);
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -1171,7 +1171,7 @@ TEST_F(DelegatedRendererLayerImplTestClip, ...@@ -1171,7 +1171,7 @@ TEST_F(DelegatedRendererLayerImplTestClip,
// Quads are clipped to the delegated renderer layer. // Quads are clipped to the delegated renderer layer.
EXPECT_TRUE(root_delegated_shared_quad_state->is_clipped); EXPECT_TRUE(root_delegated_shared_quad_state->is_clipped);
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -1200,7 +1200,7 @@ TEST_F(DelegatedRendererLayerImplTestClip, ...@@ -1200,7 +1200,7 @@ TEST_F(DelegatedRendererLayerImplTestClip,
// Quads came with a clip rect. // Quads came with a clip rect.
EXPECT_TRUE(root_delegated_shared_quad_state->is_clipped); EXPECT_TRUE(root_delegated_shared_quad_state->is_clipped);
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -1229,7 +1229,7 @@ TEST_F(DelegatedRendererLayerImplTestClip, ...@@ -1229,7 +1229,7 @@ TEST_F(DelegatedRendererLayerImplTestClip,
// clip rect is ignored, and they are not set as clipped. // clip rect is ignored, and they are not set as clipped.
EXPECT_FALSE(root_delegated_shared_quad_state->is_clipped); EXPECT_FALSE(root_delegated_shared_quad_state->is_clipped);
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -1259,7 +1259,7 @@ TEST_F(DelegatedRendererLayerImplTestClip, ...@@ -1259,7 +1259,7 @@ TEST_F(DelegatedRendererLayerImplTestClip,
// Quads came with a clip rect. // Quads came with a clip rect.
EXPECT_TRUE(root_delegated_shared_quad_state->is_clipped); EXPECT_TRUE(root_delegated_shared_quad_state->is_clipped);
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -1288,7 +1288,7 @@ TEST_F(DelegatedRendererLayerImplTestClip, ...@@ -1288,7 +1288,7 @@ TEST_F(DelegatedRendererLayerImplTestClip,
// clip rect is ignored, and they are not set as clipped. // clip rect is ignored, and they are not set as clipped.
EXPECT_FALSE(root_delegated_shared_quad_state->is_clipped); EXPECT_FALSE(root_delegated_shared_quad_state->is_clipped);
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -1319,7 +1319,7 @@ TEST_F(DelegatedRendererLayerImplTestClip, QuadsClipped_LayerClipped_Surface) { ...@@ -1319,7 +1319,7 @@ TEST_F(DelegatedRendererLayerImplTestClip, QuadsClipped_LayerClipped_Surface) {
// Quads came with a clip rect. // Quads came with a clip rect.
EXPECT_TRUE(root_delegated_shared_quad_state->is_clipped); EXPECT_TRUE(root_delegated_shared_quad_state->is_clipped);
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
...@@ -1372,7 +1372,7 @@ TEST_F(DelegatedRendererLayerImplTest, InvalidRenderPassDrawQuad) { ...@@ -1372,7 +1372,7 @@ TEST_F(DelegatedRendererLayerImplTest, InvalidRenderPassDrawQuad) {
EXPECT_EQ(DrawQuad::SOLID_COLOR, EXPECT_EQ(DrawQuad::SOLID_COLOR,
frame.render_passes[0]->quad_list[0]->material); frame.render_passes[0]->quad_list[0]->material);
host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); host_impl_->DrawLayers(&frame);
host_impl_->DidDrawAllLayers(frame); host_impl_->DidDrawAllLayers(frame);
} }
......
...@@ -167,9 +167,8 @@ class LayerTreeHostImplForTesting : public LayerTreeHostImpl { ...@@ -167,9 +167,8 @@ class LayerTreeHostImplForTesting : public LayerTreeHostImpl {
return test_hooks_->PrepareToDrawOnThread(this, frame, draw_result); return test_hooks_->PrepareToDrawOnThread(this, frame, draw_result);
} }
virtual void DrawLayers(FrameData* frame, virtual void DrawLayers(FrameData* frame) OVERRIDE {
base::TimeTicks frame_begin_time) OVERRIDE { LayerTreeHostImpl::DrawLayers(frame);
LayerTreeHostImpl::DrawLayers(frame, frame_begin_time);
test_hooks_->DrawLayersOnThread(this); test_hooks_->DrawLayersOnThread(this);
} }
......
...@@ -1413,8 +1413,7 @@ static void LayerTreeHostImplDidBeginTracingCallback(LayerImpl* layer) { ...@@ -1413,8 +1413,7 @@ static void LayerTreeHostImplDidBeginTracingCallback(LayerImpl* layer) {
layer->DidBeginTracing(); layer->DidBeginTracing();
} }
void LayerTreeHostImpl::DrawLayers(FrameData* frame, void LayerTreeHostImpl::DrawLayers(FrameData* frame) {
base::TimeTicks frame_begin_time) {
TRACE_EVENT0("cc", "LayerTreeHostImpl::DrawLayers"); TRACE_EVENT0("cc", "LayerTreeHostImpl::DrawLayers");
DCHECK(CanDraw()); DCHECK(CanDraw());
...@@ -1427,7 +1426,7 @@ void LayerTreeHostImpl::DrawLayers(FrameData* frame, ...@@ -1427,7 +1426,7 @@ void LayerTreeHostImpl::DrawLayers(FrameData* frame,
DCHECK(!frame->render_passes.empty()); DCHECK(!frame->render_passes.empty());
fps_counter_->SaveTimeStamp(frame_begin_time, fps_counter_->SaveTimeStamp(CurrentFrameTimeTicks(),
!output_surface_->context_provider()); !output_surface_->context_provider());
bool on_main_thread = false; bool on_main_thread = false;
rendering_stats_instrumentation_->IncrementFrameCount( rendering_stats_instrumentation_->IncrementFrameCount(
......
...@@ -196,7 +196,7 @@ class CC_EXPORT LayerTreeHostImpl ...@@ -196,7 +196,7 @@ class CC_EXPORT LayerTreeHostImpl
// DidDrawAllLayers must also be called, regardless of whether DrawLayers is // DidDrawAllLayers must also be called, regardless of whether DrawLayers is
// called between the two. // called between the two.
virtual DrawResult PrepareToDraw(FrameData* frame); virtual DrawResult PrepareToDraw(FrameData* frame);
virtual void DrawLayers(FrameData* frame, base::TimeTicks frame_begin_time); virtual void DrawLayers(FrameData* frame);
// Must be called if and only if PrepareToDraw was called. // Must be called if and only if PrepareToDraw was called.
void DidDrawAllLayers(const FrameData& frame); void DidDrawAllLayers(const FrameData& frame);
......
This diff is collapsed.
...@@ -345,7 +345,7 @@ void SingleThreadProxy::CompositeImmediately(base::TimeTicks frame_begin_time) { ...@@ -345,7 +345,7 @@ void SingleThreadProxy::CompositeImmediately(base::TimeTicks frame_begin_time) {
layer_tree_host_->DidBeginMainFrame(); layer_tree_host_->DidBeginMainFrame();
LayerTreeHostImpl::FrameData frame; LayerTreeHostImpl::FrameData frame;
if (DoComposite(frame_begin_time, &frame)) { if (DoComposite(&frame)) {
{ {
DebugScopedSetMainThreadBlocked main_thread_blocked(this); DebugScopedSetMainThreadBlocked main_thread_blocked(this);
DebugScopedSetImplThread impl(this); DebugScopedSetImplThread impl(this);
...@@ -406,7 +406,6 @@ void SingleThreadProxy::UpdateBackgroundAnimateTicking() { ...@@ -406,7 +406,6 @@ void SingleThreadProxy::UpdateBackgroundAnimateTicking() {
} }
bool SingleThreadProxy::DoComposite( bool SingleThreadProxy::DoComposite(
base::TimeTicks frame_begin_time,
LayerTreeHostImpl::FrameData* frame) { LayerTreeHostImpl::FrameData* frame) {
TRACE_EVENT0("cc", "SingleThreadProxy::DoComposite"); TRACE_EVENT0("cc", "SingleThreadProxy::DoComposite");
DCHECK(!layer_tree_host_->output_surface_lost()); DCHECK(!layer_tree_host_->output_surface_lost());
...@@ -431,7 +430,7 @@ bool SingleThreadProxy::DoComposite( ...@@ -431,7 +430,7 @@ bool SingleThreadProxy::DoComposite(
if (!layer_tree_host_impl_->IsContextLost()) { if (!layer_tree_host_impl_->IsContextLost()) {
layer_tree_host_impl_->PrepareToDraw(frame); layer_tree_host_impl_->PrepareToDraw(frame);
layer_tree_host_impl_->DrawLayers(frame, frame_begin_time); layer_tree_host_impl_->DrawLayers(frame);
layer_tree_host_impl_->DidDrawAllLayers(*frame); layer_tree_host_impl_->DidDrawAllLayers(*frame);
} }
lost_output_surface = layer_tree_host_impl_->IsContextLost(); lost_output_surface = layer_tree_host_impl_->IsContextLost();
......
...@@ -96,8 +96,7 @@ class CC_EXPORT SingleThreadProxy : public Proxy, ...@@ -96,8 +96,7 @@ class CC_EXPORT SingleThreadProxy : public Proxy,
LayerTreeHostSingleThreadClient* client); LayerTreeHostSingleThreadClient* client);
void DoCommit(scoped_ptr<ResourceUpdateQueue> queue); void DoCommit(scoped_ptr<ResourceUpdateQueue> queue);
bool DoComposite(base::TimeTicks frame_begin_time, bool DoComposite(LayerTreeHostImpl::FrameData* frame);
LayerTreeHostImpl::FrameData* frame);
void DidSwapFrame(); void DidSwapFrame();
bool ShouldComposite() const; bool ShouldComposite() const;
......
...@@ -1082,8 +1082,7 @@ DrawResult ThreadProxy::DrawSwapInternal(bool forced_draw) { ...@@ -1082,8 +1082,7 @@ DrawResult ThreadProxy::DrawSwapInternal(bool forced_draw) {
} }
if (draw_frame) { if (draw_frame) {
impl().layer_tree_host_impl->DrawLayers( impl().layer_tree_host_impl->DrawLayers(&frame);
&frame, impl().scheduler->LastBeginImplFrameTime());
result = DRAW_SUCCESS; result = DRAW_SUCCESS;
impl().animations_frozen_until_next_draw = false; impl().animations_frozen_until_next_draw = false;
} else if (result == DRAW_ABORTED_CHECKERBOARD_ANIMATIONS && } else if (result == DRAW_ABORTED_CHECKERBOARD_ANIMATIONS &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment