summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorNathaniel Nifong <nifong@google.com>2019-11-25 09:34:21 -0500
committerNathaniel Nifong <nifong@google.com>2019-12-11 14:56:31 -0500
commit2945bfff9e59d7014fc60161595161d7b8270f4d (patch)
tree6cfafc6b79673b0a55781092b71341342ad04a1c /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentf252a82ee7440c56297dd3ed101a657e7c3a4483 (diff)
When saving MSKP files, record layers as SkPictures with annotations.
No change when saving single frame SKP files. Layer redraws (full or partial) that occur at the beginning of frames are recorded as SkPictures written as the first commands in the frame, each preceded by an annotation recording the node id of the layer drawn to, and the dirty area of the draw. When rendered layers are used, the drawImageRect command is preceded by an annotation that provides the node id of the relevant layer. the skia debugger or skpbench could then use this information to play back the animation's layers. Test: tested by capturing both multi and single frame files on apps that use and do not use layers. normal rendering isn't affected, and capturing works as intended. Change-Id: Ic8f6947ebcc168334b6b740b3d63fc1788509b54
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions