OSDN Git Service

Avoid allocation in methods of Outline
authorChris Craik <ccraik@google.com>
Thu, 17 Mar 2016 01:46:09 +0000 (18:46 -0700)
committerChris Craik <ccraik@google.com>
Thu, 17 Mar 2016 01:51:01 +0000 (18:51 -0700)
commit2c7f9a8fb955022a1ae2581dbcc71e176247229a
tree33b6fa8485e7b04501eba1bc10efe58b8b9404f9
parent83d0078f9571b3967ba73ca3651c60d55cd4096c
Avoid allocation in methods of Outline

bug:26516265

Outlines are generally cached by the View system and reused, so optimize
for performance/allocation avoidance, rather than size.

Change-Id: I578d24c1255f1c1d8ebb30f3223fbe4ade4c67b4
graphics/java/android/graphics/Outline.java