mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 740061. Remove unused invalidate(rect). r=kats
This commit is contained in:
parent
55780e3e28
commit
aaa63d8381
@ -92,18 +92,15 @@ public abstract class TileLayer extends Layer {
|
||||
}
|
||||
|
||||
/**
|
||||
* Invalidates the given rect so that it will be uploaded again. Only valid inside a
|
||||
* Invalidates the entire buffer so that it will be uploaded again. Only valid inside a
|
||||
* transaction.
|
||||
*/
|
||||
public void invalidate(Rect rect) {
|
||||
if (!inTransaction())
|
||||
throw new RuntimeException("invalidate() is only valid inside a transaction");
|
||||
mDirtyRect.union(rect);
|
||||
}
|
||||
|
||||
public void invalidate() {
|
||||
if (!inTransaction())
|
||||
throw new RuntimeException("invalidate() is only valid inside a transaction");
|
||||
IntSize bufferSize = mImage.getSize();
|
||||
invalidate(new Rect(0, 0, bufferSize.width, bufferSize.height));
|
||||
mDirtyRect.union(new Rect(0, 0, bufferSize.width, bufferSize.height));
|
||||
}
|
||||
|
||||
public boolean isDirty() {
|
||||
|
Loading…
Reference in New Issue
Block a user