History log of /frameworks/base/libs/hwui/tests/unit/VectorDrawableTests.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cc29a5dde1ef0a3cf0fcec10eb9d37d9e8fa3afb 15-Mar-2017 Stan Iliev <stani@google.com> Modify VectorDrawable to scale path through canvas matrix

Apply the path matrix to the canvas instead of creating a new path.
Delete logic that scales the stroke, because this is done through
the matrix as well. Merge/delete some functions.

Bug: 36392701
Test: CTS graphics tests pass with minor changes in 6 golden images.
Quick settings and settings app drawables are OK. Vector icon app
draws identical paths.
Change-Id: If623bc0a535fad95a2839f79bd997c016bcd9d4d
/frameworks/base/libs/hwui/tests/unit/VectorDrawableTests.cpp
fc9cf72339c7ce61adb11ceb3b247f112577fb6b 11-Oct-2016 Doris Liu <tianliu@google.com> Fix SkShader leak for Gradient VectorDrawable and test

This CL fixes a SkShader leak in VD when applying local matrix
to the shader. Specifically, the usage of newWithLocalMatrix(...)
increments the shader's ref count in every draw() call for
Gradient VectorDrawable, whereas there's no balancing call to
decrement the ref count in draw(). In this CL, we assume
the ownership of the shader returned from newWithLocalMatrix(...)
to ensure the correct ref count management.

Also, add test to verify that shader is no longer being leaked

BUG: 32067647
Test: this CL

Change-Id: Ic15fe46cde06a73d81b44e2d3c56b51907344cc0
/frameworks/base/libs/hwui/tests/unit/VectorDrawableTests.cpp
a184abe4b0348b7c4633fb2c9922d2ec82cee34a 13-Apr-2016 Doris Liu <tianliu@google.com> Merge "Allow leading spaces in path string (to keep behavior consistent)" into nyc-dev
351303531f440b661215cb35394331d11568ac68 13-Apr-2016 Doris Liu <tianliu@google.com> Merge "Fix translationY not being set correctly for VD during animation" into nyc-dev
32d7cda0b89a114171f14de0753674090b3d75fc 08-Apr-2016 Doris Liu <tianliu@google.com> Fix translationY not being set correctly for VD during animation

Bug: 28056917
Change-Id: Ic5b7d14ac3dff8cad1c62f08b6d3389f979a2b00
/frameworks/base/libs/hwui/tests/unit/VectorDrawableTests.cpp
b35da390601e3c24e777d72daacd8dbeb4d1d9c4 12-Apr-2016 Doris Liu <tianliu@google.com> Allow leading spaces in path string (to keep behavior consistent)

Bug: 28132454
Change-Id: Iee799c13a85738db3d6940aca0fe917f284fa651
/frameworks/base/libs/hwui/tests/unit/VectorDrawableTests.cpp
0a1a5167be26d363d4e27bdc7b816f425b7b4e66 08-Apr-2016 Doris Liu <tianliu@google.com> Improve error logging for parsing failures

Bug: 27043594
Change-Id: I901b65f734c49444a78e0714e007e15e2340ab9d
/frameworks/base/libs/hwui/tests/unit/VectorDrawableTests.cpp
4bbc2931263b232fba61807fca00e127573eff42 02-Dec-2015 Doris Liu <tianliu@google.com> VectorDrawable native rendering - Step 3 of MANY

- Refactored VPathRenderer & VectorDrawableState
- Moved all the VD rendering into native
- Set up hooks for VD's property changes in JNI for animated VD

TODO: JNI calls can be further reduced when we convert the animation
in AVD to use RenderNodeAnimator, in which case animation will be
driven from native and therefore most of the JNI hooks for changing
VD's properties during animation will no longer be needed.

Change-Id: I52021f4d7bea057b83ace54085d870dd45acae0f
/frameworks/base/libs/hwui/tests/unit/VectorDrawableTests.cpp
8160f20b0aca8c6595d4b385d673f59b6bcd16a4 02-Dec-2015 Chris Craik <ccraik@google.com> Reorganize hwui test directories

Now test-only common files reside in tests/common, and each test
executable type (macrobench, microbench, and unit) has a subdir there.

This change means the shared lib no longer has test code in it, and
sets up a means for scenes to be shared between tests.

Change-Id: I37b081f6977300e03fdd961b8e6439fde730605e
/frameworks/base/libs/hwui/tests/unit/VectorDrawableTests.cpp