pdfium/core/fxge/dib/scanlinecomposer_iface.h
Lei Zhang 37935952b7 Move third_party/base/span.h to core/fxcrt
Fix some GN build rules to make the build work after moving.

Bug: pdfium:2127
Change-Id: Ic8cf0860dc5df8a510ecb34de1ffd10514d86c26
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/116650
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Thomas Sepez <tsepez@google.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
2024-02-16 04:39:56 +00:00

30 lines
945 B
C++

// Copyright 2017 The PDFium Authors
// 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_SCANLINECOMPOSER_IFACE_H_
#define CORE_FXGE_DIB_SCANLINECOMPOSER_IFACE_H_
#include "core/fxcrt/data_vector.h"
#include "core/fxcrt/span.h"
#include "core/fxge/dib/fx_dib.h"
class ScanlineComposerIface {
public:
virtual ~ScanlineComposerIface() = default;
virtual void ComposeScanline(int line,
pdfium::span<const uint8_t> scanline) = 0;
// `src_format` cannot be `FXDIB_Format::k1bppMask` or
// `FXDIB_Format::k1bppRgb`.
virtual bool SetInfo(int width,
int height,
FXDIB_Format src_format,
DataVector<uint32_t> src_palette) = 0;
};
#endif // CORE_FXGE_DIB_SCANLINECOMPOSER_IFACE_H_