Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2452)

Unified Diff: Source/platform/fonts/GlyphBuffer.h

Issue 325283002: Consolidate Glyph and GlyphBufferGlyph. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/GlyphBuffer.h
diff --git a/Source/platform/fonts/GlyphBuffer.h b/Source/platform/fonts/GlyphBuffer.h
index a6be12c52a14904a74660694ed61c0b9b3d7d31c..c7eba85abe69bb4fa57f80c7d18b4b1b16dc9e86 100644
--- a/Source/platform/fonts/GlyphBuffer.h
+++ b/Source/platform/fonts/GlyphBuffer.h
@@ -42,8 +42,6 @@ namespace WebCore {
class SimpleFontData;
-typedef Glyph GlyphBufferGlyph;
-
// CG uses CGSize instead of FloatSize so that the result of advances()
// can be passed directly to CGContextShowGlyphsWithAdvances in FontMac.mm
#if OS(MACOSX)
@@ -73,9 +71,9 @@ public:
m_advances.clear();
}
- GlyphBufferGlyph* glyphs(unsigned from) { return m_glyphs.data() + from; }
+ Glyph* glyphs(unsigned from) { return m_glyphs.data() + from; }
GlyphBufferAdvance* advances(unsigned from) { return m_advances.data() + from; }
- const GlyphBufferGlyph* glyphs(unsigned from) const { return m_glyphs.data() + from; }
+ const Glyph* glyphs(unsigned from) const { return m_glyphs.data() + from; }
const GlyphBufferAdvance* advances(unsigned from) const { return m_advances.data() + from; }
const SimpleFontData* fontDataAt(unsigned index) const { return m_fontData[index]; }
@@ -134,7 +132,7 @@ private:
m_fontData[index1] = m_fontData[index2];
m_fontData[index2] = f;
- GlyphBufferGlyph g = m_glyphs[index1];
+ Glyph g = m_glyphs[index1];
m_glyphs[index1] = m_glyphs[index2];
m_glyphs[index2] = g;
@@ -144,7 +142,7 @@ private:
}
Vector<const SimpleFontData*, 2048> m_fontData;
- Vector<GlyphBufferGlyph, 2048> m_glyphs;
+ Vector<Glyph, 2048> m_glyphs;
Vector<GlyphBufferAdvance, 2048> m_advances;
};
« no previous file with comments | « no previous file | Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698