blob: 77b82b10e7e0cab7ecd0cf6fa834c29bfc45ab6e [file] [log] [blame]
// Copyright 2019 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/fxge/cfx_glyphbitmap.h"
#include <utility>
#include "core/fxge/dib/cfx_dibitmap.h"
CFX_GlyphBitmap::CFX_GlyphBitmap(int left,
int top,
RetainPtr<CFX_DIBitmap> bitmap)
: left_(left), top_(top), bitmap_(std::move(bitmap)) {}
CFX_GlyphBitmap::~CFX_GlyphBitmap() = default;
RetainPtr<CFX_DIBitmap> CFX_GlyphBitmap::GetWritableBitmap() {
return bitmap_;
}
RetainPtr<const CFX_DIBitmap> CFX_GlyphBitmap::GetBitmap() const {
return bitmap_;
}