summaryrefslogtreecommitdiffstats
path: root/include/minikin
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-04-16 15:27:12 -0700
committerJohn Reck <jreck@google.com>2015-04-27 17:23:29 +0000
commit8920e81717c6e51b92ff8f4479a1f959af260556 (patch)
tree3b2e119d4c5dbd14500898fabefa8467897d8608 /include/minikin
parent68ae337aa05f598af18b09fe4125146d4d67db83 (diff)
downloadandroid_frameworks_minikin-8920e81717c6e51b92ff8f4479a1f959af260556.tar.gz
android_frameworks_minikin-8920e81717c6e51b92ff8f4479a1f959af260556.tar.bz2
android_frameworks_minikin-8920e81717c6e51b92ff8f4479a1f959af260556.zip
Move Bitmap to a different namespace
namespace naming collision. Move minikin's Bitmap out of android:: and into minikin:: Change-Id: I5ae3925f81b848dc79576429ab55243b96f7fed2
Diffstat (limited to 'include/minikin')
-rw-r--r--include/minikin/Layout.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/minikin/Layout.h b/include/minikin/Layout.h
index 930407a..cdf4aac 100644
--- a/include/minikin/Layout.h
+++ b/include/minikin/Layout.h
@@ -24,7 +24,7 @@
#include <minikin/FontCollection.h>
#include <minikin/MinikinFontFreeType.h>
-namespace android {
+namespace minikin {
// The Bitmap class is for debugging. We'll probably move it out
// of here into a separate lightweight software rendering module
@@ -34,13 +34,17 @@ public:
Bitmap(int width, int height);
~Bitmap();
void writePnm(std::ofstream& o) const;
- void drawGlyph(const GlyphBitmap& bitmap, int x, int y);
+ void drawGlyph(const android::GlyphBitmap& bitmap, int x, int y);
private:
int width;
int height;
uint8_t* buf;
};
+} // namespace minikin
+
+namespace android {
+
struct LayoutGlyph {
// index into mFaces and mHbFonts vectors. We could imagine
// moving this into a run length representation, because it's
@@ -89,7 +93,7 @@ public:
void doLayout(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
int bidiFlags, const FontStyle &style, const MinikinPaint &paint);
- void draw(Bitmap*, int x0, int y0, float size) const;
+ void draw(minikin::Bitmap*, int x0, int y0, float size) const;
// Deprecated. Nont needed. Remove when callers are removed.
static void init();