Remove unnecessary re-renderings in snakview

This is a part of the fix for bug 61739 and a prerequisite for fixing bug 62527.

Change-Id: I59981f22a2827833be861dffbe50e6dc52c68ab9
Merge "Remove unnecessary re-renderings in snakview"