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

Clean cherry-pick of

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:

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