Even if the first background layer has none for image, we may have
subsequent layers with images. The previous implementation did an early
exit if both images in the first layer were null.
Implement VisuallyEqual without using operator== to fix this issue for
all layers without missing the optimization that different background
positions do not trigger a repaint if the background image for the layer
is none.
Bug: 793773
Change-Id: I846c75b2c4c273bcebecdf84685d834d946926b1
Reviewed-on: https://chromium-review.googlesource.com/822074
Commit-Queue: Rune Lillesveen <[email protected]>
Reviewed-by: Fredrik Söderquist <[email protected]>
Cr-Commit-Position: refs/heads/master@{#523412}