[scene] Rename a scene window method
This change renames invalidateQuadsCache() to discardQuads() because the latter name is shorter and it aligns with pre-existing method names.