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

Side by Side Diff: Source/core/platform/graphics/skia/SkiaFontWin.h

Issue 24422003: Merge FontPlatformData::setupPaint and setupPaintForFont on Win (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: w/gdi fix Created 7 years, 2 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/chromium/UniscribeHelper.cpp ('k') | Source/core/platform/graphics/skia/SkiaFontWin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698