From e05f07dffa196d6403733b26317faa9f267d518f Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 7 Oct 2009 16:44:10 -0700 Subject: fix [2170319] gmail bulk operation checkbox latency on passion This also fixes [2152536] ANR in browser When SF is enqueuing buffers faster than SF dequeues them. The update flag in SF is not counted and under some situations SF will only dequeue the first buffer. The state at this point is not technically corrupted, it's valid, but just delayed by one buffer. In the case of the Browser ANR, because the last enqueued buffer was delayed the resizing of the current buffer couldn't happen. The system would always fall back onto its feet if anything -else- in tried to draw, because the "late" buffer would be picked up then. --- include/private/ui/SharedBufferStack.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/private/ui/SharedBufferStack.h') diff --git a/include/private/ui/SharedBufferStack.h b/include/private/ui/SharedBufferStack.h index f6824d9..bbc1822 100644 --- a/include/private/ui/SharedBufferStack.h +++ b/include/private/ui/SharedBufferStack.h @@ -289,6 +289,7 @@ public: void setStatus(status_t status); status_t reallocate(); status_t assertReallocate(int buffer); + int32_t getQueuedCount() const; Region getDirtyRegion(int buffer) const; -- cgit v1.1