Commit Graph

6 Commits

Author SHA1 Message Date
John Reck
2e48df3705 Remove DisplayList.h dependency from Canvas.h
Canvas is included in a lot of places, reduce include
dependencies

Test: make
Change-Id: Iab513de8d4bc3eb18220307acc124859dbf44030
2021-01-19 21:58:40 -05:00
John Reck
be67195c44 Convert DisplayList to a value-type wrapper
Make DisplayList its own type instead of an alias,
pushing the Skia aspect behind it mostly. Removes a bunch
of manual memory management and opens the door to DisplayList
being a union type with multiple implementations

Test: builds (somehow), boots, hwuiunit passes, CtsUiRendering passes
Change-Id: I1d7806aa3afc5d9ece08b06959920078a5814c59
2021-01-14 03:55:58 +00:00
John Reck
844516c494 Remove forward-decleration of SkiaDisplayList
Enables DisplayList to be a wrapper around SkiaDisplayList
instead of a type-alias by having the full include of
SkiaDisplayList available

Test: builds
Change-Id: Ie906e6288530134840bee81af3a89871ed6a7d25
2021-01-13 10:59:10 -05:00
John Reck
b5eeb18f0a Add initial benchmarks for CanvasOp
Also some minor other tweaks

Test: this
Change-Id: Idb8a5955839893ff000de87d4899fd130ede061c
2020-12-09 13:45:56 -05:00
John Reck
1bcacfdcab Format the world (or just HWUI)
Test: No code changes, just ran through clang-format
Change-Id: Id23aa4ec7eebc0446fe3a30260f33e7fd455bb8c
2017-11-03 10:57:44 -07:00
John Reck
3acf0382da Add benchmarks for View inflation
Also speed up RenderNode creation:

Use finalizer() instead of NativeAllocationRegistry, this
shaves ~3us off of creation currently

Avoid instanceof, instead have SurfaceView explicitly ask
for updates.

Remove unused method call.

Test: ran benchmarks
Change-Id: I3117fdf72313a4e6a9965baca9f2a8b855c19b34
2016-11-02 14:49:51 -07:00