1 // Copyright 2019 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 #include "core/fpdfapi/render/cpdf_windowsrenderdevice.h"
8 
9 #include "core/fxcodec/basic/basicmodule.h"
10 #include "core/fxcodec/fax/faxmodule.h"
11 #include "core/fxcodec/flate/flatemodule.h"
12 #include "core/fxcodec/jpeg/jpegmodule.h"
13 #include "core/fxge/win32/cfx_psrenderer.h"
14 
15 namespace {
16 
17 constexpr EncoderIface kEncoderIface = {
18     BasicModule::A85Encode, FaxModule::FaxEncode, FlateModule::Encode,
19     JpegModule::JpegEncode, BasicModule::RunLengthEncode};
20 
21 }  // namespace
22 
CPDF_WindowsRenderDevice(HDC hDC)23 CPDF_WindowsRenderDevice::CPDF_WindowsRenderDevice(HDC hDC)
24     : CFX_WindowsRenderDevice(hDC, &kEncoderIface) {}
25 
26 CPDF_WindowsRenderDevice::~CPDF_WindowsRenderDevice() = default;
27