Cherry-pick: aw: Skip hardware onDraw when visible rect is empty

Clean cherry-pick of crrev.com/693c6a04c69d69a1240e4b83e2ec7fea459acda4

BUG: 17403173

Original description:

Framework does not clamp onDraw to only the visible area. However must
still request functor in this case to support rt-side animation, and to
obtain the correct draw matrix. This means HardwareRenderer must be able
to handle not having a parent frame available.

Review URL: https://codereview.chromium.org/551023002

Change-Id: I83b2b9c8bf553a5b11f0a87af8fe5b4329a9fabc
Cr-Commit-Position: refs/heads/master@{#294093}
2 files changed