frameworks/base: build drawing Cache only if not drawing with render node

If layer is software rendered, its cache
will be built twice, if invalidated during draw.
Check for drawing with rendernode.

Change-Id: Ic95ea1d7ce7087528789dc11c1ca766a3f4d5ead
1 file changed