diff options
| author | Derek Sollenberger <djsollen@google.com> | 2014-12-09 10:54:16 -0500 |
|---|---|---|
| committer | Derek Sollenberger <djsollen@google.com> | 2014-12-09 18:36:42 +0000 |
| commit | ee648e517f09cccf59010a7423240a38aaeb2c04 (patch) | |
| tree | 76571a17e882b02ba9c4f26850c373849a8b3a07 /docs/html/sdk/api_diff/15/changes | |
| parent | cdcabe4cd6510e1009c01f5266da74b0ae1f1b32 (diff) | |
Remove unnecessary/erroneous reference counting
The SkBitmap* used by HWUI holds a reference to the PixelRef (which
in turn holds the colorTable) so keeping an additional ref is not
only unnecessary, but also potentially problematic.
If a bitmap changes its pixelRef after it has been added to a displayList,
then we end up with unbalanced ref/unref calls that cause the newly added
PixelRef to be unref'd and prematurely deleted, while the original PixelRef
is leaked.
bug: 18659976
Change-Id: I34a06152e7bb2d733249a207dafd36b9b5dc0712
Diffstat (limited to 'docs/html/sdk/api_diff/15/changes')
0 files changed, 0 insertions, 0 deletions
