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
cc / test / test_paint_worklet_layer_painter.h [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_TEST_TEST_PAINT_WORKLET_LAYER_PAINTER_H_
#define CC_TEST_TEST_PAINT_WORKLET_LAYER_PAINTER_H_
#include <utility>
#include "cc/paint/paint_worklet_layer_painter.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace cc {
class TestPaintWorkletLayerPainter : public PaintWorkletLayerPainter {
public:
TestPaintWorkletLayerPainter();
~TestPaintWorkletLayerPainter() override;
void DispatchWorklets(PaintWorkletJobMap, DoneCallback) override;
bool HasOngoingDispatch() const override;
DoneCallback TakeDoneCallback() { return std::move(done_callback_); }
private:
DoneCallback done_callback_;
};
} // namespace cc
#endif // CC_TEST_TEST_PAINT_WORKLET_LAYER_PAINTER_H_