OSDN Git Service

Proper refcounting for Minikin objects
authorRaph Levien <raph@google.com>
Mon, 5 May 2014 23:08:07 +0000 (16:08 -0700)
committerRaph Levien <raph@google.com>
Mon, 12 May 2014 17:41:43 +0000 (10:41 -0700)
commit15cf4757dc0099301662f8a26da561434cc07cfa
tree3324728c5fa71e1823e2bc2b9383a38f6bbe0218
parent9a5b61ccc83303ceeec2059f58c1977af9faa9e3
Proper refcounting for Minikin objects

This patch introduces proper lifecycle maintenance (based on reference
counting) for Minkin objects, particularly FontFamily and
FontCollection. The patch depends on the corresponding Ref and Unref
methods being available in Minikin.

Change-Id: I91935e953d5a522e1adc496f2ce3a598be35de2b
core/jni/android/graphics/FontFamily.cpp
core/jni/android/graphics/TypefaceImpl.cpp
graphics/java/android/graphics/FontFamily.java