[Title] Limitation of the tile size on partial update
[Issue#] N/A
[Problem] Aquarium and Toon shading test result regressed due to partial update.
[Cause] Partial update takes even longer than repainting whole tile.
[Solution] Added the threshold value of tile size for tile partial update.
Change-Id: I03a3885d560a1c42a4688042ef3dac4ed02c2afc
static inline bool needUpdateBackBufferPartially(const IntRect& entireRect, const IntRect& dirtyRect)
{
+ //FIXME: apply partial update only for tiles whoes size is larger than 384*384.
+ //because otherwise, i.e. for small tiles, partial update takes even longer time than repainting whole tile.
+ //we need to tune the threshold tile size through more testing.
+ if (entireRect.width() * entireRect.height() < 147456)
+ return false;
+
if (entireRect.size() != dirtyRect.size())
return true;
return false;