summaryrefslogtreecommitdiff
path: root/core/fxge/dib/ifx_scanlinecomposer.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge/dib/ifx_scanlinecomposer.h')
-rw-r--r--core/fxge/dib/ifx_scanlinecomposer.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/core/fxge/dib/ifx_scanlinecomposer.h b/core/fxge/dib/ifx_scanlinecomposer.h
new file mode 100644
index 0000000000..4df01dda23
--- /dev/null
+++ b/core/fxge/dib/ifx_scanlinecomposer.h
@@ -0,0 +1,26 @@
+// Copyright 2017 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#ifndef CORE_FXGE_DIB_IFX_SCANLINECOMPOSER_H_
+#define CORE_FXGE_DIB_IFX_SCANLINECOMPOSER_H_
+
+#include "core/fxge/fx_dib.h"
+
+class IFX_ScanlineComposer {
+ public:
+ virtual ~IFX_ScanlineComposer() {}
+
+ virtual void ComposeScanline(int line,
+ const uint8_t* scanline,
+ const uint8_t* scan_extra_alpha = nullptr) = 0;
+
+ virtual bool SetInfo(int width,
+ int height,
+ FXDIB_Format src_format,
+ uint32_t* pSrcPalette) = 0;
+};
+
+#endif // CORE_FXGE_DIB_IFX_SCANLINECOMPOSER_H_