cc: Avoid issuing COMMANDS_COMPLETED queries unless necessary.

Minor change to the Fence API that allows GLRenderer to not
issue sync queries unless some resource that depend on them
was used to produce a frame.

Also includes some minor renaming cleanup related to usage of
Fences in ResourceProvider code.

Change-Id: I45165a8f6a91b3ad56c5db02489ea83a782d6b05
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284318
Implement support for SmartClip in AwContents.

Bug: 18222974
Change-Id: I42e787b6205ec3c3764ec5076e2391e4ec4e4deb
Merge remote-tracking branch 'cm/cm-12.0' into HEAD