blob: e2fce4b2ec68dce65957e1e85f27ffec06520549 [file] [log] [blame]
// Copyright 2018 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_TEST_PAINT_WORKLET_INPUT_H_
#define CC_TEST_TEST_PAINT_WORKLET_INPUT_H_
#include "cc/paint/paint_worklet_input.h"
namespace cc {
class TestPaintWorkletInput : public PaintWorkletInput {
public:
explicit TestPaintWorkletInput(const gfx::SizeF& size);
gfx::SizeF GetSize() const override;
int WorkletId() const override;
const std::vector<PaintWorkletInput::PropertyKey>& GetPropertyKeys()
const override;
protected:
~TestPaintWorkletInput() override;
private:
gfx::SizeF container_size_;
std::vector<PaintWorkletInput::PropertyKey> property_keys_;
};
} // namespace cc
#endif // CC_TEST_TEST_PAINT_WORKLET_INPUT_H_