commit | eb11aed042ddfb6bede3a99b3c6ee514df0019ac | [log] [tgz] |
---|---|---|
author | Kevin Lubick <kjlubick@google.com> | Fri Jul 14 11:13:03 2023 -0400 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Mon Jul 17 15:18:50 2023 +0000 |
tree | a246598dccb1e0e7b85c12b105d12b0a336b8b3f | |
parent | ebe5dc69b9838b84bc4a551e5b48d01a74830208 [diff] |
Remove SkCanvas::flush() call from skottielib Follow-up to https://skia-review.googlesource.com/c/skia/+/716476 Change-Id: I4c67a667f3187d1c108608efa9cdf8df3cf55b3e Bug: skia:14317 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/723413 Reviewed-by: Jorge Betancourt <jmbetancourt@google.com> Commit-Queue: Kevin Lubick <kjlubick@google.com>
diff --git a/platform_tools/android/apps/skottie/skottielib/src/main/cpp/native-lib.cpp b/platform_tools/android/apps/skottie/skottielib/src/main/cpp/native-lib.cpp index df12675..d8d05f7 100644 --- a/platform_tools/android/apps/skottie/skottielib/src/main/cpp/native-lib.cpp +++ b/platform_tools/android/apps/skottie/skottielib/src/main/cpp/native-lib.cpp
@@ -247,8 +247,7 @@ SkAutoCanvasRestore acr(canvas, true); SkRect bounds = SkRect::MakeWH(width, height); skottieAnimation->mAnimation->render(canvas, &bounds); - - canvas->flush(); + dContext->flushAndSubmit(); return true; }