commit | f0497270f6cf378d0d8b3517a6cdd76bf61bd6ae | [log] [tgz] |
---|---|---|
author | Alec Mouri <alecmouri@google.com> | Mon Mar 11 15:53:11 2019 -0700 |
committer | Alec Mouri <alecmouri@google.com> | Wed Mar 13 15:11:01 2019 -0700 |
tree | f15b3a7456c57ca89a56c8dd7681abd6b0a6b16f | |
parent | dd50a3cf4c9f41bf0e4952246cd559da5cfb503a [diff] |
Add locking within RenderEngine during rendering Multiple threads are allowed to access RenderEngine, which poses several issues: 1. The image cache needs to be synchronized 2. It's theoretically possible for a thread other than the SF main-thread to call drawLayers, which can cause undesirable behavior. Bug: 128306587 Test: manual tests Change-Id: Ic18b71924aa3c4d72f02f95ebf928257fb9e50ed