Bug 724928 - Tell Gecko not to draw areas we aren't interested in. r=kats
Alter GeckoSoftwareLayerClient.beginDrawing so that it can return a rectangle of the buffer that it's interested in. Gecko then uses this to clip the dirty region, which often saves on unnecessary drawing during flings.
This commit is contained in:
@@ -135,6 +135,8 @@ public:
|
||||
int Left() { return mLeft; }
|
||||
int Right() { return mRight; }
|
||||
int Top() { return mTop; }
|
||||
int Width() { return mRight - mLeft; }
|
||||
int Height() { return mBottom - mTop; }
|
||||
|
||||
protected:
|
||||
int mBottom;
|
||||
@@ -161,7 +163,7 @@ public:
|
||||
jobject LockBuffer();
|
||||
unsigned char *LockBufferBits();
|
||||
void UnlockBuffer();
|
||||
bool BeginDrawing(int aWidth, int aHeight, int aTileWidth, int aTileHeight, const nsAString &aMetadata, bool aHasDirectTexture);
|
||||
bool BeginDrawing(int aWidth, int aHeight, int aTileWidth, int aTileHeight, nsIntRect &aDirtyRect, const nsAString &aMetadata, bool aHasDirectTexture);
|
||||
void EndDrawing(const nsIntRect &aRect);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user