1 // Copyright 2019 The PDFium Authors 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 #ifndef CORE_FXGE_RENDER_DEFINES_H_ 8 #define CORE_FXGE_RENDER_DEFINES_H_ 9 10 #define FXDC_PIXEL_WIDTH 1 11 #define FXDC_PIXEL_HEIGHT 2 12 #define FXDC_BITS_PIXEL 3 13 #define FXDC_HORZ_SIZE 4 14 #define FXDC_VERT_SIZE 5 15 #define FXDC_RENDER_CAPS 6 16 17 #define FXRC_GET_BITS 0x01 18 #define FXRC_ALPHA_PATH 0x02 19 #define FXRC_ALPHA_IMAGE 0x04 20 #define FXRC_ALPHA_OUTPUT 0x08 21 #define FXRC_BLEND_MODE 0x10 22 #define FXRC_SOFT_CLIP 0x20 23 #define FXRC_BYTEMASK_OUTPUT 0x40 24 // Assuming these are Skia-only for now. If this assumption changes, update both 25 // the #if logic here, as well as the callsites that check these capabilities. 26 #if defined(PDF_USE_SKIA) 27 #define FXRC_FILLSTROKE_PATH 0x80 28 #define FXRC_SHADING 0x100 29 #define FXRC_PREMULTIPLIED_ALPHA 0x200 30 #endif 31 32 #endif // CORE_FXGE_RENDER_DEFINES_H_ 33