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

Side by Side Diff: Source/platform/fonts/shaping/SimpleShaper.h

Issue 676523003: Offset-only GlyphBuffer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: minor cleanup Created 6 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2008, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Holger Hans Peter Freyther 3 * Copyright (C) 2008 Holger Hans Peter Freyther
4 * Copyright (C) 2014 Google Inc. All rights reserved. 4 * Copyright (C) 2014 Google Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 struct CharacterData { 76 struct CharacterData {
77 UChar32 character; 77 UChar32 character;
78 unsigned clusterLength; 78 unsigned clusterLength;
79 int characterOffset; 79 int characterOffset;
80 }; 80 };
81 81
82 GlyphData glyphDataForCharacter(CharacterData&, bool normalizeSpace = false) ; 82 GlyphData glyphDataForCharacter(CharacterData&, bool normalizeSpace = false) ;
83 float characterWidth(UChar32, const GlyphData&) const; 83 float characterWidth(UChar32, const GlyphData&) const;
84 void cacheFallbackFont(const SimpleFontData*, const SimpleFontData* primaryF ont); 84 void cacheFallbackFont(const SimpleFontData*, const SimpleFontData* primaryF ont);
85 float adjustSpacing(float, const CharacterData&, const SimpleFontData&, Glyp hBuffer*); 85 float adjustSpacing(float, const CharacterData&);
86 void updateGlyphBounds(const GlyphData&, float width, bool firstCharacter); 86 void updateGlyphBounds(const GlyphData&, float width, bool firstCharacter);
87 87
88 template <typename TextIterator> 88 template <typename TextIterator>
89 unsigned advanceInternal(TextIterator&, GlyphBuffer*); 89 unsigned advanceInternal(TextIterator&, GlyphBuffer*);
90 90
91 HashSet<const SimpleFontData*>* m_fallbackFonts; 91 HashSet<const SimpleFontData*>* m_fallbackFonts;
92 GlyphBounds* m_bounds; 92 GlyphBounds* m_bounds;
93 bool m_forTextEmphasis : 1; 93 bool m_forTextEmphasis : 1;
94 }; 94 };
95 95
96 } // namespace blink 96 } // namespace blink
97 97
98 #endif 98 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698