aboutsummaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_rendertiling.h
blob: b687f749052099f545ea3c76038df5c1d6386dc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2020 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_FPDFAPI_RENDER_CPDF_RENDERTILING_H_
#define CORE_FPDFAPI_RENDER_CPDF_RENDERTILING_H_

#include "core/fxcrt/retain_ptr.h"
#include "core/fxge/dib/cfx_dibitmap.h"

class CFX_Matrix;
class CPDF_Form;
class CPDF_PageObject;
class CPDF_RenderStatus;
class CPDF_TilingPattern;
struct FX_RECT;

class CPDF_RenderTiling {
 public:
  static RetainPtr<CFX_DIBitmap> Draw(CPDF_RenderStatus* pRenderStatus,
                                      CPDF_PageObject* pPageObj,
                                      CPDF_TilingPattern* pPattern,
                                      CPDF_Form* pPatternForm,
                                      const CFX_Matrix& mtObj2Device,
                                      const FX_RECT& clip_box,
                                      bool bStroke);

  CPDF_RenderTiling() = delete;
  CPDF_RenderTiling(const CPDF_RenderTiling&) = delete;
  CPDF_RenderTiling& operator=(const CPDF_RenderTiling&) = delete;
};

#endif  // CORE_FPDFAPI_RENDER_CPDF_RENDERTILING_H_