Bug 738413 - Part 1: Add OpaqueRect API to Azure DrawTargets. r=roc

This commit is contained in:
Bas Schouten 2012-05-03 23:31:02 +02:00
Родитель 15a5cf90ea
Коммит 9a990c8ad4
1 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -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;