зеркало из https://github.com/mozilla/gecko-dev.git
Bug 984761 - Allow setting the primitive type of FilterPrimitiveDescriptions after construction. r=roc
This commit is contained in:
Родитель
17a4ded987
Коммит
e7ded060a1
|
@ -1535,6 +1535,13 @@ FilterSupport::ComputeSourceNeededRegions(const FilterDescription& aFilter,
|
|||
|
||||
// FilterPrimitiveDescription
|
||||
|
||||
FilterPrimitiveDescription::FilterPrimitiveDescription()
|
||||
: mType(PrimitiveType::Empty)
|
||||
, mOutputColorSpace(ColorSpace::SRGB)
|
||||
, mIsTainted(false)
|
||||
{
|
||||
}
|
||||
|
||||
FilterPrimitiveDescription::FilterPrimitiveDescription(PrimitiveType aType)
|
||||
: mType(aType)
|
||||
, mOutputColorSpace(ColorSpace::SRGB)
|
||||
|
|
|
@ -288,11 +288,13 @@ public:
|
|||
kPrimitiveIndexStrokePaint = -4
|
||||
};
|
||||
|
||||
FilterPrimitiveDescription();
|
||||
FilterPrimitiveDescription(PrimitiveType aType);
|
||||
FilterPrimitiveDescription(const FilterPrimitiveDescription& aOther);
|
||||
FilterPrimitiveDescription& operator=(const FilterPrimitiveDescription& aOther);
|
||||
|
||||
PrimitiveType Type() const { return mType; }
|
||||
void SetType(PrimitiveType aType) { mType = aType; }
|
||||
const AttributeMap& Attributes() const { return mAttributes; }
|
||||
AttributeMap& Attributes() { return mAttributes; }
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче