1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_CLIENT_H_
6 #define CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_CLIENT_H_
8 #include "cc/output/begin_frame_args.h"
9 #include "cc/trees/layer_tree_host_impl.h"
13 class FakeLayerTreeHostImplClient
: public LayerTreeHostImplClient
{
15 // LayerTreeHostImplClient implementation.
16 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE
{}
17 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE
{}
18 virtual void CommitVSyncParameters(base::TimeTicks timebase
,
19 base::TimeDelta interval
) OVERRIDE
{}
20 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time
) OVERRIDE
{}
21 virtual void SetMaxSwapsPendingOnImplThread(int max
) OVERRIDE
{}
22 virtual void DidSwapBuffersOnImplThread() OVERRIDE
{}
23 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE
{}
24 virtual void BeginFrame(const BeginFrameArgs
& args
) OVERRIDE
{}
25 virtual void OnCanDrawStateChanged(bool can_draw
) OVERRIDE
{}
26 virtual void NotifyReadyToActivate() OVERRIDE
{}
27 virtual void SetNeedsRedrawOnImplThread() OVERRIDE
{}
28 virtual void SetNeedsRedrawRectOnImplThread(
29 const gfx::Rect
& damage_rect
) OVERRIDE
{}
30 virtual void SetNeedsAnimateOnImplThread() OVERRIDE
{}
31 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE
{}
32 virtual void SetNeedsCommitOnImplThread() OVERRIDE
{}
33 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE
{}
34 virtual void PostAnimationEventsToMainThreadOnImplThread(
35 scoped_ptr
<AnimationEventsVector
> events
) OVERRIDE
{}
36 virtual bool ReduceContentsTextureMemoryOnImplThread(
38 int priority_cutoff
) OVERRIDE
;
39 virtual bool IsInsideDraw() OVERRIDE
;
40 virtual void RenewTreePriority() OVERRIDE
{}
41 virtual void PostDelayedScrollbarFadeOnImplThread(
42 const base::Closure
& start_fade
,
43 base::TimeDelta delay
) OVERRIDE
{}
44 virtual void DidActivateSyncTree() OVERRIDE
{}
45 virtual void DidManageTiles() OVERRIDE
{}
50 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_CLIENT_H_