Chromium Code Reviews| Index: cc/trees/layer_tree_host_impl.h |
| diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h |
| index 188efaf8ed8a276aee4297bf3ddb5649c12c759d..c29dd5253cfa59e835909b92d6b491927eb30499 100644 |
| --- a/cc/trees/layer_tree_host_impl.h |
| +++ b/cc/trees/layer_tree_host_impl.h |
| @@ -96,8 +96,6 @@ class LayerTreeHostImplClient { |
| virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0; |
| virtual void DidSwapBuffersOnImplThread() = 0; |
| virtual void DidSwapBuffersCompleteOnImplThread() = 0; |
| - virtual void OnResourcelessSoftareDrawStateChanged( |
| - bool resourceless_draw) = 0; |
| virtual void OnCanDrawStateChanged(bool can_draw) = 0; |
| virtual void NotifyReadyToActivate() = 0; |
| virtual void NotifyReadyToDraw() = 0; |
| @@ -124,7 +122,7 @@ class LayerTreeHostImplClient { |
| virtual void DidCompletePageScaleAnimationOnImplThread() = 0; |
| // Called when output surface asks for a draw. |
| - virtual void OnDrawForOutputSurface() = 0; |
| + virtual void OnDrawForOutputSurface(bool resourceless_software_draw) = 0; |
| virtual void PostFrameTimingEventsOnImplThread( |
| scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
| @@ -304,6 +302,8 @@ class CC_EXPORT LayerTreeHostImpl |
| void ResetTreesForTesting(); |
| size_t SourceAnimationFrameNumberForTesting() const; |
| + void SetExternalViewportForTesting(const gfx::Rect& external_viewport); |
|
danakj
2015/12/10 22:33:54
I really like all the changes in this patch except
|
| + void SetResourcelessSoftwareDrawForTesting(bool resourceless_software_draw); |
| void RegisterScrollbarAnimationController(int scroll_layer_id); |
| void UnregisterScrollbarAnimationController(int scroll_layer_id); |
| @@ -349,20 +349,19 @@ class CC_EXPORT LayerTreeHostImpl |
| void CommitVSyncParameters(base::TimeTicks timebase, |
| base::TimeDelta interval) override; |
| void SetNeedsRedrawRect(const gfx::Rect& rect) override; |
| - void SetExternalDrawConstraints( |
| - const gfx::Transform& transform, |
| - const gfx::Rect& viewport, |
| - const gfx::Rect& clip, |
| - const gfx::Rect& viewport_rect_for_tile_priority, |
| - const gfx::Transform& transform_for_tile_priority, |
| - bool resourceless_software_draw) override; |
| + void SetExternalTilePriorityConstraints( |
| + const gfx::Rect& viewport_rect, |
| + const gfx::Transform& transform) override; |
| void DidLoseOutputSurface() override; |
| void DidSwapBuffers() override; |
| void DidSwapBuffersComplete() override; |
| void ReclaimResources(const CompositorFrameAck* ack) override; |
| void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override; |
| void SetTreeActivationCallback(const base::Closure& callback) override; |
| - void OnDraw() override; |
| + void OnDraw(const gfx::Transform& transform, |
| + const gfx::Rect& viewport, |
| + const gfx::Rect& clip, |
| + bool resourceless_software_draw) override; |
| // Called from LayerTreeImpl. |
| void OnCanDrawStateChangedForTree(); |