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

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

Issue 1058613007: clang/win: Attempt to fix component build after r194273. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 if (runIndex < m_harfBuzzRuns.size()) { 72 if (runIndex < m_harfBuzzRuns.size()) {
73 startIndex = m_harfBuzzRuns[runIndex]->startIndex(); 73 startIndex = m_harfBuzzRuns[runIndex]->startIndex();
74 numGlyphs = m_harfBuzzRuns[runIndex]->numGlyphs(); 74 numGlyphs = m_harfBuzzRuns[runIndex]->numGlyphs();
75 script = m_harfBuzzRuns[runIndex]->script(); 75 script = m_harfBuzzRuns[runIndex]->script();
76 return true; 76 return true;
77 } 77 }
78 return false; 78 return false;
79 } 79 }
80 80
81 private: 81 private:
82 class HarfBuzzRun { 82 class PLATFORM_EXPORT HarfBuzzRun {
83 public: 83 public:
84 HarfBuzzRun(const HarfBuzzRun&); 84 HarfBuzzRun(const HarfBuzzRun&);
85 ~HarfBuzzRun(); 85 ~HarfBuzzRun();
86 86
87 static PassOwnPtr<HarfBuzzRun> create(const SimpleFontData* fontData, un signed startIndex, unsigned numCharacters, hb_direction_t direction, hb_script_t script) 87 static PassOwnPtr<HarfBuzzRun> create(const SimpleFontData* fontData, un signed startIndex, unsigned numCharacters, hb_direction_t direction, hb_script_t script)
88 { 88 {
89 return adoptPtr(new HarfBuzzRun(fontData, startIndex, numCharacters, direction, script)); 89 return adoptPtr(new HarfBuzzRun(fontData, startIndex, numCharacters, direction, script));
90 } 90 }
91 91
92 void applyShapeResult(hb_buffer_t*); 92 void applyShapeResult(hb_buffer_t*);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 int m_toIndex; 161 int m_toIndex;
162 162
163 float m_totalWidth; 163 float m_totalWidth;
164 164
165 friend struct CachedShapingResults; 165 friend struct CachedShapingResults;
166 }; 166 };
167 167
168 } // namespace blink 168 } // namespace blink
169 169
170 #endif // HarfBuzzShaper_h 170 #endif // HarfBuzzShaper_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698