summaryrefslogtreecommitdiff
path: root/libs/hwui/tests/unit/VectorDrawableTests.cpp
AgeCommit message (Collapse)Author
2019-11-25switch to new SkPathDirection enumMike Reed
Test: make Change-Id: If88814c12d12280d362078c1d8bc7f66558f82e2
2019-04-11Update to new factories for effectsMike Reed
Test: make Change-Id: Ib342878524b51d0eacf6c60ece3c7da8bf27d2c0
2018-12-18Merge "New WebViewFunctor API"John Reck
2018-12-17Merge "Fix performance-for-range-copy warnings" am: bc29242288 am: 7adb73f332Chih-Hung Hsieh
am: 2296036a40 Change-Id: Ia99ea6c9633986e68340bc88983d06baa7a1c597
2018-12-17Fix performance-for-range-copy warningsChih-Hung Hsieh
Bug: 30413223 Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,performance* Change-Id: Ie481e88025a7a1f3abde8ff63420d5ccd8577e52
2018-12-14New WebViewFunctor APIJohn Reck
Should function alongside existing functor API. Bug: 120997728 Test: hwuiunit passes Change-Id: I8f6143d0be1111431b55016f34de319f6b8c8910
2018-12-03Remove ; from closing namespaces in libs/hwuiChris Blume
When closing a namespace a } is sufficient. It doesn't need to be }; like closing a class or enum. Within frameworks/base/libs/hwui there is a mix between } and }; when closing a namespace. There are even mixes between a .h and the corresponding .cpp files. In a separate CL I was asked to not close with };. That was a good comment. I adopted the style from nearby code. This CL cleans up the nearby code. Test: I made sure the code still built as expected. Change-Id: Ieb314a4f48d6e33752463f3be4361fdc9be97482
2018-03-26More path validation for better error messageDoris Liu
BUG: 73759524 Test: Unit test updated Change-Id: I2774450174ad6490a1d5e6c81766a2982c2aa6f1
2017-12-05Update VectorDrawables to use Skia's drawArc implementation.Derek Sollenberger
Using Skia enables drawArc to issue conic draw calls as well as fixes some of the issues around a scaled path containing a drawArc being reported as concave. Bug: 69622768 Test: hwui_unit_tests Change-Id: I4faab5403ec4ee34e1ad6fae256ae9ad3c6bb05b
2017-11-03Format the world (or just HWUI)John Reck
Test: No code changes, just ran through clang-format Change-Id: Id23aa4ec7eebc0446fe3a30260f33e7fd455bb8c
2017-05-26don't need custom shader to track ref-countsMike Reed
Test: hwui_unit_tests Change-Id: Ibe67a86489e0e65251e3c0a4ddc2f72bf528f8b5
2017-03-20Modify VectorDrawable to scale path through canvas matrixStan Iliev
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
2016-10-12Fix SkShader leak for Gradient VectorDrawable and testDoris Liu
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
2016-04-13Merge "Allow leading spaces in path string (to keep behavior consistent)" ↵Doris Liu
into nyc-dev
2016-04-13Merge "Fix translationY not being set correctly for VD during animation" ↵Doris Liu
into nyc-dev
2016-04-12Fix translationY not being set correctly for VD during animationDoris Liu
Bug: 28056917 Change-Id: Ic5b7d14ac3dff8cad1c62f08b6d3389f979a2b00
2016-04-12Allow leading spaces in path string (to keep behavior consistent)Doris Liu
Bug: 28132454 Change-Id: Iee799c13a85738db3d6940aca0fe917f284fa651
2016-04-08Improve error logging for parsing failuresDoris Liu
Bug: 27043594 Change-Id: I901b65f734c49444a78e0714e007e15e2340ab9d
2015-12-28VectorDrawable native rendering - Step 3 of MANYDoris Liu
- 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
2015-12-02Reorganize hwui test directoriesChris Craik
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