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

Unified Diff: core/src/fxge/skia/fx_skia_device.h

Issue 1776313002: Add bitmaps and skp output to Skia port (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: wip; add skp output to test framework Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: core/src/fxge/skia/fx_skia_device.h
diff --git a/core/src/fxge/skia/fx_skia_device.h b/core/src/fxge/skia/fx_skia_device.h
index 31c5982188344360439b327083679e3e7650d218..33149d42dbe3ffc0c04533dc4d1bafbdc1f30258 100644
--- a/core/src/fxge/skia/fx_skia_device.h
+++ b/core/src/fxge/skia/fx_skia_device.h
@@ -10,6 +10,7 @@
class SkCanvas;
class SkPaint;
class SkPath;
+class SkPictureRecorder;
struct SkIRect;
class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver {
@@ -19,6 +20,9 @@ class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver {
FX_BOOL bRgbByteOrder,
CFX_DIBitmap* pOriDevice,
FX_BOOL bGroupKnockout);
+ CFX_SkiaDeviceDriver(int size_x,
+ int size_y,
+ void* recorder);
~CFX_SkiaDeviceDriver() override;
/** Options */
@@ -139,10 +143,12 @@ class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver {
void SetClipMask(SkPath& skPath, SkPaint* spaint);
virtual uint8_t* GetBuffer() const { return m_pAggDriver->GetBuffer(); }
void PaintStroke(SkPaint* spaint, const CFX_GraphStateData* pGraphState);
-
+ void* GetRecorder() const { return m_recorder; }
private:
CFX_AggDeviceDriver* m_pAggDriver;
SkCanvas* m_canvas;
+ SkPictureRecorder* m_recorder;
dsinclair 2016/03/10 14:38:54 This should be named m_pRecorder. Can this be put
caryclark 2016/03/10 20:44:55 The lifetime of the recorder is similar to a bitma
+ int m_ditherBits;
};
#endif // defined(_SKIA_SUPPORT_)

Powered by Google App Engine
This is Rietveld 408576698