diff options
author | Derek Sollenberger <djsollen@google.com> | 2018-01-22 10:25:26 -0500 |
---|---|---|
committer | Leon Scroggins <scroggo@google.com> | 2018-01-24 13:11:39 +0000 |
commit | 2d14213849d6df70d0fa80319ab4ffc08743a683 (patch) | |
tree | 7a0a91fc95fda72f4d7fd360db5eb1cd31989bc1 /libs/hwui/RecordingCanvas.h | |
parent | e1350ba9ea74b5389c4bf154ca24c0f35bca56ad (diff) |
Initial implmentation of AnimatedImageDrawables on the RenderThread.
The current implementation schedules the next frame of the images
to be decoded after the current frame completes but potentially
schedules tasks that will result in a no-op execution if a new
frame is not yet needed.
Test: HwAccelerationTest
Change-Id: I0510cb5a1b801abd651327e924deb586af0306d6
Diffstat (limited to 'libs/hwui/RecordingCanvas.h')
-rw-r--r-- | libs/hwui/RecordingCanvas.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/hwui/RecordingCanvas.h b/libs/hwui/RecordingCanvas.h index dd06ada9da3d..e663402a80f3 100644 --- a/libs/hwui/RecordingCanvas.h +++ b/libs/hwui/RecordingCanvas.h @@ -183,8 +183,7 @@ public: virtual void drawNinePatch(Bitmap& bitmap, const android::Res_png_9patch& chunk, float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) override; - virtual void drawAnimatedImage(SkAnimatedImage*, float left, float top, - const SkPaint* paint) override; + virtual double drawAnimatedImage(AnimatedImageDrawable*) override; // Text virtual bool drawTextAbsolutePos() const override { return false; } |