7a10b332a3
Bug: b/63909536 SkAnimatedImage is a simple drawable for animating a GIF. Thread-safety is left up to the client. At most two bitmaps are stored in the drawable; one for the current frame and one for a frame that may need to be restored. The backup frame prevents some cases where we would otherwise have to re-decode from the beginning of the image. The API lets the client set the time value, and decodes to match that time. TODO: - Callback for when the animation is complete - Ability to use SkAndroidCodec - Modify the loop count (or leave that up to client?) - Better and/or client-specific caching Other changes: - Add a sample which animates a GIF - Reenable SK_CODEC_PRINTF for debug builds and Android Change-Id: I945ffbccdb6008f2a05ed4d9b2af869a261fb300 Reviewed-on: https://skia-review.googlesource.com/93420 Reviewed-by: Derek Sollenberger <djsollen@google.com> Commit-Queue: Leon Scroggins <scroggo@google.com>
107 lines
3.8 KiB
Plaintext
107 lines
3.8 KiB
Plaintext
# Copyright 2016 Google Inc.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# Things are easiest for everyone if these source paths are absolute.
|
|
_samplecode = get_path_info("../samplecode", "abspath")
|
|
|
|
samples_sources = [
|
|
"$_samplecode/ClockFaceView.cpp",
|
|
"$_samplecode/PerlinPatch.cpp",
|
|
"$_samplecode/Sample2PtRadial.cpp",
|
|
"$_samplecode/SampleAAClip.cpp",
|
|
"$_samplecode/SampleAAGeometry.cpp",
|
|
"$_samplecode/SampleAARectModes.cpp",
|
|
"$_samplecode/SampleAARects.cpp",
|
|
"$_samplecode/SampleAll.cpp",
|
|
"$_samplecode/SampleAndroidShadows.cpp",
|
|
"$_samplecode/SampleAnimatedImage.cpp",
|
|
"$_samplecode/SampleAnimatedText.cpp",
|
|
"$_samplecode/SampleAnimBlur.cpp",
|
|
"$_samplecode/SampleArc.cpp",
|
|
"$_samplecode/SampleAtlas.cpp",
|
|
"$_samplecode/SampleBigBlur.cpp",
|
|
"$_samplecode/SampleBigGradient.cpp",
|
|
"$_samplecode/SampleBitmapRect.cpp",
|
|
"$_samplecode/SampleBlur.cpp",
|
|
"$_samplecode/SampleCCPRGeometry.cpp",
|
|
"$_samplecode/SampleCamera.cpp",
|
|
"$_samplecode/SampleChart.cpp",
|
|
"$_samplecode/SampleChineseFling.cpp",
|
|
"$_samplecode/SampleCircle.cpp",
|
|
"$_samplecode/SampleClip.cpp",
|
|
"$_samplecode/SampleClipDrawMatch.cpp",
|
|
"$_samplecode/SampleClock.cpp",
|
|
"$_samplecode/SampleCode.cpp",
|
|
"$_samplecode/SampleColorFilter.cpp",
|
|
"$_samplecode/SampleComplexClip.cpp",
|
|
"$_samplecode/SampleConcavePaths.cpp",
|
|
"$_samplecode/SampleCowboy.cpp",
|
|
"$_samplecode/SampleDegenerateTwoPtRadials.cpp",
|
|
"$_samplecode/SampleDither.cpp",
|
|
"$_samplecode/SampleEffects.cpp",
|
|
"$_samplecode/SampleEmboss.cpp",
|
|
"$_samplecode/SampleFatBits.cpp",
|
|
"$_samplecode/SampleFillType.cpp",
|
|
"$_samplecode/SampleFilter2.cpp",
|
|
"$_samplecode/SampleFilterFuzz.cpp",
|
|
"$_samplecode/SampleFilterQuality.cpp",
|
|
"$_samplecode/SampleFontScalerTest.cpp",
|
|
"$_samplecode/SampleFuzz.cpp",
|
|
"$_samplecode/SampleGradients.cpp",
|
|
"$_samplecode/SampleHairCurves.cpp",
|
|
"$_samplecode/SampleHairline.cpp",
|
|
"$_samplecode/SampleHairModes.cpp",
|
|
"$_samplecode/SampleHT.cpp",
|
|
"$_samplecode/SampleIdentityScale.cpp",
|
|
"$_samplecode/SampleLayerMask.cpp",
|
|
"$_samplecode/SampleLayers.cpp",
|
|
"$_samplecode/SampleLCD.cpp",
|
|
"$_samplecode/SampleLines.cpp",
|
|
"$_samplecode/SampleManyRects.cpp",
|
|
"$_samplecode/SampleMeasure.cpp",
|
|
"$_samplecode/SampleMegaStroke.cpp",
|
|
"$_samplecode/SamplePatch.cpp",
|
|
"$_samplecode/SamplePath.cpp",
|
|
"$_samplecode/SamplePathText.cpp",
|
|
"$_samplecode/SamplePathClip.cpp",
|
|
"$_samplecode/SamplePathEffects.cpp",
|
|
"$_samplecode/SamplePathFinder.cpp",
|
|
"$_samplecode/SamplePathFuzz.cpp",
|
|
"$_samplecode/SamplePathOverstroke.cpp",
|
|
"$_samplecode/SamplePdfFileViewer.cpp",
|
|
"$_samplecode/SamplePoints.cpp",
|
|
"$_samplecode/SamplePolyToPoly.cpp",
|
|
"$_samplecode/SampleQuadStroker.cpp",
|
|
"$_samplecode/SampleRectanizer.cpp",
|
|
"$_samplecode/SampleRegion.cpp",
|
|
"$_samplecode/SampleRepeatTile.cpp",
|
|
"$_samplecode/SampleShaders.cpp",
|
|
"$_samplecode/SampleShaderText.cpp",
|
|
"$_samplecode/SampleShadowColor.cpp",
|
|
"$_samplecode/SampleShadowReference.cpp",
|
|
"$_samplecode/SampleShadowUtils.cpp",
|
|
"$_samplecode/SampleShip.cpp",
|
|
"$_samplecode/SampleSlides.cpp",
|
|
"$_samplecode/SampleStringArt.cpp",
|
|
"$_samplecode/SampleStrokePath.cpp",
|
|
"$_samplecode/SampleStrokeRect.cpp",
|
|
"$_samplecode/SampleSubpixelTranslate.cpp",
|
|
"$_samplecode/SampleSGInval.cpp",
|
|
"$_samplecode/SampleSVGFile.cpp",
|
|
"$_samplecode/SampleSVGPong.cpp",
|
|
"$_samplecode/SampleText.cpp",
|
|
"$_samplecode/SampleTextAlpha.cpp",
|
|
"$_samplecode/SampleTextBox.cpp",
|
|
"$_samplecode/SampleTextOnPath.cpp",
|
|
"$_samplecode/SampleTextureDomain.cpp",
|
|
"$_samplecode/SampleTiling.cpp",
|
|
"$_samplecode/SampleUnpremul.cpp",
|
|
"$_samplecode/SampleVertices.cpp",
|
|
"$_samplecode/SampleWritePixels.cpp",
|
|
"$_samplecode/SampleXfer.cpp",
|
|
"$_samplecode/SampleXfermodesBlur.cpp",
|
|
"$_samplecode/vertexdump.cpp",
|
|
]
|