blob: dd80da7c4cf03f97eeff0856ad8853724efc8ed3 [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_PAINT_PAINT_WORKLET_INPUT_H_
#define CC_PAINT_PAINT_WORKLET_INPUT_H_
#include "base/memory/ref_counted.h"
#include "cc/paint/paint_export.h"
#include "ui/gfx/geometry/size_f.h"
namespace cc {
class CC_PAINT_EXPORT PaintWorkletInput
: public base::RefCountedThreadSafe<PaintWorkletInput> {
public:
virtual gfx::SizeF GetSize() const = 0;
virtual int WorkletId() const = 0;
protected:
friend class base::RefCountedThreadSafe<PaintWorkletInput>;
virtual ~PaintWorkletInput() = default;
};
} // namespace cc
#endif // CC_PAINT_PAINT_WORKLET_INPUT_H_