1 // Copyright 2017 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef CORE_FXGE_DIB_IFX_SCANLINECOMPOSER_H_ 8 #define CORE_FXGE_DIB_IFX_SCANLINECOMPOSER_H_ 9 10 #include "core/fxge/fx_dib.h" 11 12 class IFX_ScanlineComposer { 13 public: ~IFX_ScanlineComposer()14 virtual ~IFX_ScanlineComposer() {} 15 16 virtual void ComposeScanline(int line, 17 const uint8_t* scanline, 18 const uint8_t* scan_extra_alpha) = 0; 19 20 virtual bool SetInfo(int width, 21 int height, 22 FXDIB_Format src_format, 23 uint32_t* pSrcPalette) = 0; 24 }; 25 26 #endif // CORE_FXGE_DIB_IFX_SCANLINECOMPOSER_H_ 27