Refactor AnimationFrameTimeHistogram to use mockable static natives

This CL adds the necessary dependencies to use the JNI annotation
processor in base/java and converts AnimationFrameTimeHistogram to
use mockable static methods.

This abstraction should have little overhead once R8 is used instead
of proguard but for now it still adds methods.

Bug: 898261
Change-Id: I73141dfeb5916c40aafc3c58ae606fe0af7a392e
Reviewed-on: https://chromium-review.googlesource.com/c/1347202
Reviewed-by: agrieve <agrieve@chromium.org>
Reviewed-by: Eric Stevenson <estevenson@chromium.org>
Commit-Queue: Aiden Benner <abenner@google.com>
Cr-Commit-Position: refs/heads/master@{#610514}
4 files changed