blob: 03459644c75993859ce6c644f2c444c60aa775df [file] [log] [blame]
// Copyright 2022 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.
#include "core/fxge/cfx_defaultrenderdevice.h"
#include <utility>
#include "core/fxge/dib/cfx_dibitmap.h"
bool CFX_DefaultRenderDevice::Attach(RetainPtr<CFX_DIBitmap> pBitmap) {
return AttachWithRgbByteOrder(std::move(pBitmap), false);
}
bool CFX_DefaultRenderDevice::AttachWithRgbByteOrder(
RetainPtr<CFX_DIBitmap> pBitmap,
bool bRgbByteOrder) {
return AttachImpl(std::move(pBitmap), bRgbByteOrder, nullptr, false);
}
bool CFX_DefaultRenderDevice::AttachWithBackdropAndGroupKnockout(
RetainPtr<CFX_DIBitmap> pBitmap,
RetainPtr<CFX_DIBitmap> pBackdropBitmap,
bool bGroupKnockout) {
return AttachImpl(std::move(pBitmap), false, std::move(pBackdropBitmap),
bGroupKnockout);
}