forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake_layer_tree_host_impl_client.h
53 lines (45 loc) · 2.03 KB
/
fake_layer_tree_host_impl_client.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_CLIENT_H_
#define CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_CLIENT_H_
#include "cc/output/begin_frame_args.h"
#include "cc/trees/layer_tree_host_impl.h"
namespace cc {
class FakeLayerTreeHostImplClient : public LayerTreeHostImplClient {
public:
// LayerTreeHostImplClient implementation.
void DidLoseCompositorFrameSinkOnImplThread() override {}
void SetBeginFrameSource(BeginFrameSource* source) override {}
void DidReceiveCompositorFrameAckOnImplThread() override {}
void OnCanDrawStateChanged(bool can_draw) override {}
void NotifyReadyToActivate() override {}
void NotifyReadyToDraw() override {}
void SetNeedsRedrawOnImplThread() override {}
void SetNeedsOneBeginImplFrameOnImplThread() override {}
void SetNeedsCommitOnImplThread() override {}
void SetNeedsPrepareTilesOnImplThread() override {}
void SetVideoNeedsBeginFrames(bool needs_begin_frames) override {}
void PostAnimationEventsToMainThreadOnImplThread(
std::unique_ptr<MutatorEvents> events) override;
bool IsInsideDraw() override;
void RenewTreePriority() override {}
void PostDelayedAnimationTaskOnImplThread(const base::Closure& task,
base::TimeDelta delay) override {}
void DidActivateSyncTree() override {}
void WillPrepareTiles() override {}
void DidPrepareTiles() override {}
void DidCompletePageScaleAnimationOnImplThread() override {}
void OnDrawForCompositorFrameSink(bool resourceless_software_draw) override {}
void NeedsImplSideInvalidation() override;
void reset_did_request_impl_side_invalidation() {
did_request_impl_side_invalidation_ = false;
}
bool did_request_impl_side_invalidation() const {
return did_request_impl_side_invalidation_;
}
private:
bool did_request_impl_side_invalidation_ = false;
};
} // namespace cc
#endif // CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_CLIENT_H_