summaryrefslogtreecommitdiff
path: root/core/fxge/win32/dwrite_int.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-04-25 17:35:21 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-25 17:35:21 +0000
commit7b01255ef62f8df5cdd3053fd42c5c501274186d (patch)
tree09ac126ca9ba7eae7e581f57be0f815b28a9e232 /core/fxge/win32/dwrite_int.h
parentd9da586dd3dbaa35706ac274e2fef8b73b867b22 (diff)
downloadpdfium-7b01255ef62f8df5cdd3053fd42c5c501274186d.tar.xz
Remove CDWriteExt.
It is never used. Change-Id: I09220eb16a4679c8499079c3c1375574f6fc0450 Reviewed-on: https://pdfium-review.googlesource.com/31300 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxge/win32/dwrite_int.h')
-rw-r--r--core/fxge/win32/dwrite_int.h71
1 files changed, 0 insertions, 71 deletions
diff --git a/core/fxge/win32/dwrite_int.h b/core/fxge/win32/dwrite_int.h
deleted file mode 100644
index 7fbb929c08..0000000000
--- a/core/fxge/win32/dwrite_int.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright 2014 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.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef CORE_FXGE_WIN32_DWRITE_INT_H_
-#define CORE_FXGE_WIN32_DWRITE_INT_H_
-
-#include "core/fxcrt/fx_coordinates.h"
-#include "core/fxge/dib/cfx_dibitmap.h"
-#include "core/fxge/fx_dib.h"
-
-#ifndef DECLSPEC_UUID
-#if defined(__cplusplus)
-#define DECLSPEC_UUID(x) __declspec(uuid(x))
-#else
-#define DECLSPEC_UUID(x)
-#endif
-#endif
-#ifndef DECLSPEC_NOVTABLE
-#if defined(__cplusplus)
-#define DECLSPEC_NOVTABLE __declspec(novtable)
-#else
-#define DECLSPEC_NOVTABLE
-#endif
-#endif
-#if (WINVER < 0x0500)
-#ifndef _MAC
-DECLARE_HANDLE(HMONITOR);
-#endif
-#endif
-class CDWriteExt {
- public:
- CDWriteExt();
- ~CDWriteExt();
-
- void Load();
- void Unload();
-
- bool IsAvailable() { return !!m_pDWriteFactory; }
-
- void* DwCreateFontFaceFromStream(uint8_t* pData,
- uint32_t size,
- int simulation_style);
- bool DwCreateRenderingTarget(const RetainPtr<CFX_DIBitmap>& pSrc,
- void** renderTarget);
- void DwDeleteRenderingTarget(void* renderTarget);
- bool DwRendingString(void* renderTarget,
- CFX_ClipRgn* pClipRgn,
- FX_RECT& stringRect,
- CFX_Matrix* pMatrix,
- void* font,
- float font_size,
- FX_ARGB text_color,
- int glyph_count,
- unsigned short* glyph_indices,
- float baselineOriginX,
- float baselineOriginY,
- void* glyph_offsets,
- float* glyph_advances);
- void DwDeleteFont(void* pFont);
-
- protected:
- void* m_hModule;
- void* m_pDWriteFactory;
- void* m_pDwFontContext;
- void* m_pDwTextRenderer;
-};
-
-#endif // CORE_FXGE_WIN32_DWRITE_INT_H_