Skip to content

Commit

Permalink
frameworks/native: Reset dirtyRect after every queuebuffer call.
Browse files Browse the repository at this point in the history
Sometimes HWR does not generate dirtyRect even when it updates the
buffer. To avoid incorrect DR calculation in such cases reset
cached dirtyRect after every queueBuffer call.

Change-Id: Iad9a2b1ecb4cf2a3789f2734a2d0e928dc56c9f0
  • Loading branch information
Jeykumar Sankaran authored and hyperb1iss committed Jun 30, 2014
1 parent 5fb19b1 commit af8b05e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/gui/Surface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ int Surface::queueBuffer(android_native_buffer_t* buffer, int fenceFd) {
&numPendingBuffers);

mConsumerRunningBehind = (numPendingBuffers >= 2);

mDirtyRect.clear();
return err;
}

Expand Down

0 comments on commit af8b05e

Please sign in to comment.