mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1062723 - Part 1: Add source clipping to SurfacePattern. r=Bas
--HG-- extra : rebase_source : ccec8c8cb37f52710b0758360bea73696212734f
This commit is contained in:
parent
eff76dd085
commit
1b7f994c90
@ -272,11 +272,13 @@ class SurfacePattern : public Pattern
|
||||
public:
|
||||
/// For constructor parameter description, see member data documentation.
|
||||
SurfacePattern(SourceSurface *aSourceSurface, ExtendMode aExtendMode,
|
||||
const Matrix &aMatrix = Matrix(), Filter aFilter = Filter::GOOD)
|
||||
const Matrix &aMatrix = Matrix(), Filter aFilter = Filter::GOOD,
|
||||
const IntRect &aSamplingRect = IntRect())
|
||||
: mSurface(aSourceSurface)
|
||||
, mExtendMode(aExtendMode)
|
||||
, mFilter(aFilter)
|
||||
, mMatrix(aMatrix)
|
||||
, mSamplingRect(aSamplingRect)
|
||||
{}
|
||||
|
||||
virtual PatternType GetType() const { return PatternType::SURFACE; }
|
||||
@ -286,6 +288,9 @@ public:
|
||||
outside the bounds of the image */
|
||||
Filter mFilter; //!< Resampling filter for resampling the image.
|
||||
Matrix mMatrix; //!< Transforms the pattern into user space
|
||||
|
||||
IntRect mSamplingRect; /**< Rect that must not be sampled outside of,
|
||||
or an empty rect if none has been specified. */
|
||||
};
|
||||
|
||||
class StoredPattern;
|
||||
|
Loading…
Reference in New Issue
Block a user