diff options
author | Ruiqi Mao <ruiqimao@google.com> | 2018-07-03 11:38:15 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-03 16:07:44 +0000 |
commit | b6307340e8a6a9d3a7517def7f5eaaadffd07d14 (patch) | |
tree | 7337790911d8e791d495f37f637382f3fb5acad3 /src/gpu/GrRenderTargetContext.h | |
parent | b7b73f5bbec55020c873cab6f4e11444b4011c34 (diff) |
added skeletal animation support to GPU backend
added caching of SkVertices
Docs-Preview: https://skia.org/?cl=138596
Bug: skia:
Change-Id: Ia750f55f5f6d0de250d9e9c5619f4d1ac856f9f5
Reviewed-on: https://skia-review.googlesource.com/138596
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Ruiqi Mao <ruiqimao@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetContext.h')
-rw-r--r-- | src/gpu/GrRenderTargetContext.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/GrRenderTargetContext.h b/src/gpu/GrRenderTargetContext.h index 783b351b06..ee0d183981 100644 --- a/src/gpu/GrRenderTargetContext.h +++ b/src/gpu/GrRenderTargetContext.h @@ -218,12 +218,16 @@ public: * @param paint describes how to color pixels. * @param viewMatrix transformation matrix * @param vertices specifies the mesh to draw. + * @param bones bone deformation matrices. + * @param boneCount number of bone matrices. * @param overridePrimType primitive type to draw. If NULL, derive prim type from vertices. */ void drawVertices(const GrClip&, GrPaint&& paint, const SkMatrix& viewMatrix, sk_sp<SkVertices> vertices, + const SkMatrix bones[], + int boneCount, GrPrimitiveType* overridePrimType = nullptr); /** |