#ifndef CC_SLIM_FILTER_H_
#define CC_SLIM_FILTER_H_
#include "base/component_export.h"
namespace cc::slim {
class COMPONENT_EXPORT(CC_SLIM) Filter {
public:
enum Type {
kBrightness,
kSaturation,
};
Filter(const Filter&);
Filter& operator=(const Filter&);
~Filter();
static Filter CreateBrightness(float amount) { return {kBrightness, amount}; }
static Filter CreateSaturation(float amount) { return {kSaturation, amount}; }
bool operator==(const Filter& other) const;
bool operator!=(const Filter& other) const { return !(*this == other); }
Type type() const { return type_; }
float amount() const { return amount_; }
private:
Filter(Type type, float amount);
Type type_ = kBrightness;
float amount_ = 0.0f;
};
}
#endif