summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-10 17:47:16 +0000
committerpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-10 17:47:16 +0000
commit48ff9f9e3567568e953f56c8156fd376361c3edd (patch)
treef1e81ff357409f90537039d5ce64c4226c71da94 /webkit
parent71f97014a63166729984c801564822b1701a6950 (diff)
downloadchromium_src-48ff9f9e3567568e953f56c8156fd376361c3edd.zip
chromium_src-48ff9f9e3567568e953f56c8156fd376361c3edd.tar.gz
chromium_src-48ff9f9e3567568e953f56c8156fd376361c3edd.tar.bz2
more cross-platform graphics changes
Review URL: http://codereview.chromium.org/1704 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1993 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/port/platform/graphics/SkGraphicsContext.cpp4
-rw-r--r--webkit/port/platform/graphics/SkGraphicsContext.h5
2 files changed, 4 insertions, 5 deletions
diff --git a/webkit/port/platform/graphics/SkGraphicsContext.cpp b/webkit/port/platform/graphics/SkGraphicsContext.cpp
index 51d7e51..3a1b3c7 100644
--- a/webkit/port/platform/graphics/SkGraphicsContext.cpp
+++ b/webkit/port/platform/graphics/SkGraphicsContext.cpp
@@ -243,9 +243,9 @@ void SkGraphicsContext::paintComplexText(UniscribeStateTextRun& state,
canvas_->endPlatformPaint();
}
-bool SkGraphicsContext::paintText(HFONT hfont,
+bool SkGraphicsContext::paintText(FontHandle hfont,
int number_glyph,
- const WORD* glyphs,
+ const uint16* glyphs,
const int* advances,
const SkPoint& origin) {
SkColor color(paint_context_->fillColor());
diff --git a/webkit/port/platform/graphics/SkGraphicsContext.h b/webkit/port/platform/graphics/SkGraphicsContext.h
index 9301620..40bf38b 100644
--- a/webkit/port/platform/graphics/SkGraphicsContext.h
+++ b/webkit/port/platform/graphics/SkGraphicsContext.h
@@ -5,6 +5,7 @@
#ifndef SkGraphicsContext_h
#define SkGraphicsContext_h
+#include "base/basictypes.h"
#include "base/gfx/platform_canvas.h"
#include "SkPorterDuff.h"
@@ -76,13 +77,11 @@ class SkGraphicsContext {
int from,
int to,
int ascent);
-#if defined(OS_WIN)
bool paintText(FontHandle hfont,
int number_glyph,
- const WORD* glyphs,
+ const uint16* glyphs,
const int* advances,
const SkPoint& origin);
-#endif
// TODO(maruel): I'm still unsure how I will serialize this call.
void paintSkPaint(const SkRect& rect, const SkPaint& paint);