diff options
author | caryclark <caryclark@google.com> | 2016-04-06 07:38:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-06 07:38:13 -0700 |
commit | 392f1022a3c525a053a7d143d2b23a76526a1aea (patch) | |
tree | 981fcadae0b9a0ee677a498ae348fee188f13076 /core/fxge/skia/fx_skia_device.h | |
parent | 77d148d54a44a4ed757be2d52ec37685d818a9be (diff) | |
download | pdfium-392f1022a3c525a053a7d143d2b23a76526a1aea.tar.xz |
remove agg from skia driver
Copy code from the agg driver so that the Skia
driver is no longer dependent on it.
The copied code doesn't in turn call
agg; it was in the agg driver for convenience.
Much of the copied code will eventually be replaced
by native Skia code, so there's not much point
in rewriting it to make it more efficient or
maintainable.
R=dsinclair@chromium.org,tsepez@chromium.org
Review URL: https://codereview.chromium.org/1865883002
Diffstat (limited to 'core/fxge/skia/fx_skia_device.h')
-rw-r--r-- | core/fxge/skia/fx_skia_device.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/fxge/skia/fx_skia_device.h b/core/fxge/skia/fx_skia_device.h index afc505da6e..05a102489e 100644 --- a/core/fxge/skia/fx_skia_device.h +++ b/core/fxge/skia/fx_skia_device.h @@ -84,7 +84,7 @@ class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver { void* pIccTransform = NULL, FX_BOOL bDEdge = FALSE) override; - CFX_DIBitmap* GetBackDrop() override { return m_pAggDriver->GetBackDrop(); } + CFX_DIBitmap* GetBackDrop() override { return m_pOriDevice; } FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap, uint32_t color, @@ -133,17 +133,20 @@ class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver { int alpha, FX_BOOL bAlphaMode) override; - virtual uint8_t* GetBuffer() const { return m_pAggDriver->GetBuffer(); } + virtual uint8_t* GetBuffer() const { return m_pBitmap->GetBuffer(); } void PaintStroke(SkPaint* spaint, const CFX_GraphStateData* pGraphState, const SkMatrix& matrix); SkPictureRecorder* GetRecorder() const { return m_pRecorder; } private: - CFX_AggDeviceDriver* m_pAggDriver; + CFX_DIBitmap* m_pBitmap; + CFX_DIBitmap* m_pOriDevice; SkCanvas* m_pCanvas; SkPictureRecorder* const m_pRecorder; int m_ditherBits; + FX_BOOL m_bRgbByteOrder; + FX_BOOL m_bGroupKnockout; }; #endif // defined(_SKIA_SUPPORT_) |