OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2008, Google Inc. All rights reserved. | 2 * Copyright (c) 2008, 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 const int* advances, | 51 const int* advances, |
52 const GOFFSET* offsets, | 52 const GOFFSET* offsets, |
53 const SkPoint& origin, | 53 const SkPoint& origin, |
54 const SkRect& textRect); | 54 const SkRect& textRect); |
55 | 55 |
56 // Note that the offsets parameter is optional. If not null it represents a | 56 // Note that the offsets parameter is optional. If not null it represents a |
57 // per glyph offset (such as returned by ScriptPlace Windows API function). | 57 // per glyph offset (such as returned by ScriptPlace Windows API function). |
58 // Note: this is less efficient than calling the version with FontPlatformData, | 58 // Note: this is less efficient than calling the version with FontPlatformData, |
59 // as that caches the SkTypeface object. | 59 // as that caches the SkTypeface object. |
60 void paintSkiaText(GraphicsContext*, | 60 void paintSkiaText(GraphicsContext*, |
61 HFONT, | 61 const FontPlatformData&, |
62 int numGlyphs, | 62 HFONT, |
63 const WORD* glyphs, | 63 int numGlyphs, |
64 const int* advances, | 64 const WORD* glyphs, |
65 const GOFFSET* offsets, | 65 const int* advances, |
66 const SkPoint& origin, | 66 const GOFFSET* offsets, |
67 const SkRect& textRect); | 67 const SkPoint& origin, |
| 68 const SkRect& textRect); |
68 | 69 |
69 } // namespace WebCore | 70 } // namespace WebCore |
70 | 71 |
71 #endif // SkiaFontWin_h | 72 #endif // SkiaFontWin_h |
OLD | NEW |