OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 Google Inc. All rights reserved. | 2 * Copyright (c) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 BlackBerry Limited. All rights reserved. | 3 * Copyright (C) 2013 BlackBerry Limited. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 #include "platform/fonts/shaping/ShapeResult.h" | 35 #include "platform/fonts/shaping/ShapeResult.h" |
36 #include "wtf/Allocator.h" | 36 #include "wtf/Allocator.h" |
37 #include "wtf/Noncopyable.h" | 37 #include "wtf/Noncopyable.h" |
38 | 38 |
39 #include <hb.h> | 39 #include <hb.h> |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
43 class Font; | 43 class Font; |
44 class GlyphBuffer; | |
45 class SimpleFontData; | 44 class SimpleFontData; |
46 class HarfBuzzShaper; | |
47 | 45 |
48 struct HarfBuzzRunGlyphData { | 46 struct HarfBuzzRunGlyphData { |
49 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 47 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
50 uint16_t glyph; | 48 uint16_t glyph; |
51 uint16_t characterIndex; | 49 uint16_t characterIndex; |
52 float advance; | 50 float advance; |
53 FloatSize offset; | 51 FloatSize offset; |
54 }; | 52 }; |
55 | 53 |
56 enum AdjustMidCluster { AdjustToStart, AdjustToEnd }; | 54 enum AdjustMidCluster { AdjustToStart, AdjustToEnd }; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 hb_script_t m_script; | 104 hb_script_t m_script; |
107 Vector<HarfBuzzRunGlyphData> m_glyphData; | 105 Vector<HarfBuzzRunGlyphData> m_glyphData; |
108 unsigned m_startIndex; | 106 unsigned m_startIndex; |
109 unsigned m_numCharacters; | 107 unsigned m_numCharacters; |
110 float m_width; | 108 float m_width; |
111 }; | 109 }; |
112 | 110 |
113 } // namespace blink | 111 } // namespace blink |
114 | 112 |
115 #endif // ShapeResultInlineHeaders_h | 113 #endif // ShapeResultInlineHeaders_h |
OLD | NEW |