summaryrefslogtreecommitdiff
path: root/config_host/config_skia.h.in
blob: 602e18a3f67b4e504deca622dc451f02b9eee6a3 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*

Settings for the Skia library. We compile the Skia library with these
settings and also LO code uses this header to ensure the settings
are the same.
*/

#ifndef CONFIG_SKIA_H
#define CONFIG_SKIA_H

// This is a setting that should be set manually and it affects LO
// code rather than Skia itself. It basically controls setting
// BackendCapabilities::mbSupportsBitmap32, i.e. whether one LO bitmap
// contains all the 32bits of an image including the alpha (premultiplied).
//
// Since Skia does not natively support 24bpp, the preferred setup is
// that the setting should be enabled, it makes the code faster and cleaner.
//
// Unfortunately VCL historically splits alpha into a whole separate
// bitmap and works with 24bpp+8bpp, which is generally more complicated,
// more error-prone and just worse, but that's how LO code has been
// written and so there are many places in LO that expect this and
// do not work correctly with true 32bpp bitmaps.
//
// So ultimately the 24+8 split should be dumped (preferably in all of LO,
// not just the Skia-related code), but until all of LO works correctly
// with 32bpp keep this disabled in order to avoid such breakages.

//#define SKIA_USE_BITMAP32 1
#define SKIA_USE_BITMAP32 0


// GPU support (set by configure).
#undef SK_GANESH
// Vulkan support enabled (set by configure).
#undef SK_VULKAN
// Metal support enabled (set by configure).
#undef SK_METAL

// Memory allocator for Vulkan.
#define SK_USE_VMA 1

#define SK_CODEC_DECODES_PNG 1
#define SK_ENCODE_PNG 1

// These are just to avoid warnings (some headers use them even with GL disabled).
#define SK_ASSUME_GL 1
#define SK_ASSUME_GL_ES 0

#define SK_ENABLE_SKSL 1

// See https://codereview.chromium.org/2089583002 . This makes raster drawing
// faster in some cases, it was made conditional because of some tests failing,
// but if I'm reading the review correctly the code is in fact fine and just
// those tests needed updating, which presumably has never happened.
#define SK_DRAWBITMAPRECT_FAST_OFFSET 1

// Default to BGRA. Skia already defaults to that on Windows, and it seems
// the default X11 visual is actually also BGRA.
#define SK_R32_SHIFT 16

// Enable Skia's internal checks depending on DBG_UTIL mode.
// ENABLE_SKIA_DEBUG controls whether to build with or without optimizations, and
// is set by using --enable-skia=debug.
#ifdef DBG_UTIL

#define SK_DEBUG

#define SK_ENABLE_DUMP_GPU

#else

#define SK_RELEASE

#endif // DBG_UTIL

// TODO ?
//#define SK_R32_SHIFT 16

#endif
span title='2023-05-09 10:34:40 +0200'>2023-05-09tdf#154877 sw: generalise ExtendedSelectAll()Michael Stahl 2023-04-28tdf#86630 sw page number wizard: mirror right/leftJustin Luth 2023-04-17tdf#130199 sw Confirm deletion of hidden sectionsBalazs Varga 2023-03-20tdf#136760 sw a11y: Provide page-relative cursor pos via doc attrMichael Weghorn 2023-02-10tdf#153205 related: Fix selection problems caused by cursor shellJim Raykowski 2023-01-30tdf#151548 sw content controls: keyboard navigation with tab keyJustin Luth 2023-01-27tdf#114973 sw: enable SelectAll with hidden para at start/endMichael Stahl 2023-01-24related tdf#151548 formfield navigation: loop to beginning/endJustin Luth 2022-09-27sw: fix inserting fields between 2 adjacent input fieldsMichael Stahl 2022-09-23tdf#149952 sw a11y: Don't send a11y events for internal-only cursorMichael Weghorn 2022-08-23sw: enable Replace with Protect BookmarksMichael Stahl 2022-08-14rename SwPaM::GetNode to GetPointNode/GetContentNodeNoel Grandin 2022-08-11no need to allocate SwCallLink on the heapNoel Grandin 2022-08-10sw: fix infinite recursion in SwEditWin::GetSurroundingTextSelection()Michael Stahl 2022-08-07make ParkCursor take a SwNode, not an SwNodeIndexNoel Grandin 2022-07-26sal_uLong->sal_Int32 in the Find/Search methodsNoel Grandin 2022-07-26convert CRSR_SKIP_* to typed enumNoel Grandin 2022-07-15sw content control, dropdown: allow selecting via the keyboardMiklos Vajna 2022-05-12sw content controls: fixes for the ending dummy charMiklos Vajna 2022-04-07sw content controls: select the content on click when showing placeholderMiklos Vajna 2022-03-07sw_redlinehide: more issues with SwEditWin Surrounding functionsMichael Stahl 2021-12-09tdf#146144 sw: add tooltip to table rows with change trackingLászló Németh