summaryrefslogtreecommitdiff
path: root/core/fxge/skia/fx_skia_device.h
diff options
context:
space:
mode:
authorCary Clark <caryclark@google.com>2016-03-24 10:23:13 -0400
committerCary Clark <caryclark@google.com>2016-03-24 10:23:13 -0400
commitcf6bffb79f6e62d096908e6629daba5525728272 (patch)
tree06eb3f3712074025024a48b0f9f67a2c6eb2b144 /core/fxge/skia/fx_skia_device.h
parentea10a0dcae1b593fa9d85ae867c19be5c34ca8ed (diff)
downloadpdfium-cf6bffb79f6e62d096908e6629daba5525728272.tar.xz
fix windows build; add blend modes
Use FreeType instead of Direct Write on Windows. Since PDFium currently uses the graphics engine to draw but not to measure, the graphics engine needs to always use FreeType to get consistent metrics. Add a translation from PDF's blend modes to Skia's xfer modes. Turn on subpixel positioning for text to get more precise glyph placement. Pass the alpha through to get proper bitmap transparency. Address earlier nits. R=dsinclair@chromium.org, tsepez@chromium.org, dsinclair Review URL: https://codereview.chromium.org/1812263002 .
Diffstat (limited to 'core/fxge/skia/fx_skia_device.h')
-rw-r--r--core/fxge/skia/fx_skia_device.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fxge/skia/fx_skia_device.h b/core/fxge/skia/fx_skia_device.h
index 8a92f37e34..012e370717 100644
--- a/core/fxge/skia/fx_skia_device.h
+++ b/core/fxge/skia/fx_skia_device.h
@@ -129,7 +129,9 @@ class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver {
void* pIccTransform = NULL) override;
virtual uint8_t* GetBuffer() const { return m_pAggDriver->GetBuffer(); }
- void PaintStroke(SkPaint* spaint, const CFX_GraphStateData* pGraphState, const SkMatrix& matrix);
+ void PaintStroke(SkPaint* spaint,
+ const CFX_GraphStateData* pGraphState,
+ const SkMatrix& matrix);
SkPictureRecorder* GetRecorder() const { return m_pRecorder; }
private: