Refactored font-client-plugin-impl 18/265718/3
authorDavid Steele <david.steele@samsung.com>
Wed, 27 Oct 2021 12:17:54 +0000 (13:17 +0100)
committerDavid Steele <david.steele@samsung.com>
Fri, 29 Oct 2021 08:33:56 +0000 (09:33 +0100)
commitc95ad6d50d9549451e01c351d8338d83a937d98a
treea9060b72d87be89ecfb1782dd411f7badf9268ef
parent8a2a615df09fcdbf3d6a31b15d518bd2a569b186
Refactored font-client-plugin-impl

Refactored cached item structs into separate classes
with own methods.

FontFaceCacheItem   <|--- FontCacheItemInterface
BitmapFontCacheItem <|-+

This simplifies a lot of the hidden type lookup within the plugin
code. There is some scope for integrating EmbeddedItem into this
interface as well.

Change-Id: I7370355ff307f9aef7b19e2bbb6ed2225e7e92b6
Signed-off-by: David Steele <david.steele@samsung.com>
27 files changed:
automated-tests/resources/fonts/bitmap/u0030.png [new file with mode: 0644]
automated-tests/resources/fonts/bitmap/u0031.png [new file with mode: 0644]
automated-tests/resources/fonts/bitmap/u0032.png [new file with mode: 0644]
automated-tests/resources/fonts/bitmap/u0033.png [new file with mode: 0644]
automated-tests/resources/fonts/bitmap/u0034.png [new file with mode: 0644]
automated-tests/resources/fonts/bitmap/u0035.png [new file with mode: 0644]
automated-tests/resources/fonts/bitmap/u0036.png [new file with mode: 0644]
automated-tests/resources/fonts/bitmap/u0037.png [new file with mode: 0644]
automated-tests/resources/fonts/bitmap/u0038.png [new file with mode: 0644]
automated-tests/resources/fonts/bitmap/u0039.png [new file with mode: 0644]
automated-tests/resources/fonts/bitmap/u003a.png [new file with mode: 0644]
automated-tests/src/dali-adaptor-internal/CMakeLists.txt
automated-tests/src/dali-adaptor-internal/utc-Dali-FontClient.cpp
dali/devel-api/text-abstraction/font-client.h
dali/internal/text/file.list
dali/internal/text/text-abstraction/plugin/bitmap-font-cache-item.cpp [new file with mode: 0644]
dali/internal/text/text-abstraction/plugin/bitmap-font-cache-item.h [new file with mode: 0644]
dali/internal/text/text-abstraction/plugin/embedded-item.cpp [new file with mode: 0644]
dali/internal/text/text-abstraction/plugin/embedded-item.h [new file with mode: 0644]
dali/internal/text/text-abstraction/plugin/font-cache-item-interface.h [new file with mode: 0644]
dali/internal/text/text-abstraction/plugin/font-client-plugin-impl.cpp
dali/internal/text/text-abstraction/plugin/font-client-plugin-impl.h
dali/internal/text/text-abstraction/plugin/font-client-utils.cpp
dali/internal/text/text-abstraction/plugin/font-client-utils.h
dali/internal/text/text-abstraction/plugin/font-face-cache-item.cpp [new file with mode: 0644]
dali/internal/text/text-abstraction/plugin/font-face-cache-item.h [new file with mode: 0644]
dali/internal/text/text-abstraction/plugin/pixel-buffer-cache-item.h [new file with mode: 0644]