mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 738413 - Part 1: Add OpaqueRect API to Azure DrawTargets. r=roc
This commit is contained in:
parent
53e0262149
commit
c8b3f6e810
14
gfx/2d/2D.h
14
gfx/2d/2D.h
@ -779,9 +779,23 @@ public:
|
||||
void *GetUserData(UserDataKey *key) {
|
||||
return mUserData.Get(key);
|
||||
}
|
||||
|
||||
/* Within this rectangle all pixels will be opaque by the time the result of
|
||||
* this DrawTarget is first used for drawing. Either by the underlying surface
|
||||
* being used as an input to external drawing, or Snapshot() being called.
|
||||
* This rectangle is specified in device space.
|
||||
*/
|
||||
void SetOpaqueRect(const IntRect &aRect) {
|
||||
mOpaqueRect = aRect;
|
||||
}
|
||||
|
||||
const IntRect &GetOpaqueRect() const {
|
||||
return mOpaqueRect;
|
||||
}
|
||||
protected:
|
||||
UserData mUserData;
|
||||
Matrix mTransform;
|
||||
IntRect mOpaqueRect;
|
||||
bool mTransformDirty : 1;
|
||||
|
||||
SurfaceFormat mFormat;
|
||||
|
Loading…
Reference in New Issue
Block a user