summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-10-10initial implementation of Skia drawing on screen in Windowsprivate/llunak/skiaLuboš Luňák16-5/+215
Change-Id: I1562bd2cfd1862947042bef3343aefd851a65002
2019-10-10make WinSalVirtualDevice::SetSize() always call Init() for all Impl'sLuboš Luňák1-6/+1
I don't see why this should be OpenGL-only. For WinSalGraphicsImpl it's a no-op anyway, and for other Impl's it may be useful to find out that they have been in fact resized. For Skia this is necessary because Init() the first time may get called with empty size. Change-Id: I4a8fa0fc633b415735d3633e89f208ab1c1f1229
2019-10-10make X11/Skia render to screen using Skia codeLuboš Luňák4-44/+51
Change-Id: I3056afe2ba0a15e0798d209ab9bd833c773948be
2019-10-10build also the tools/sk_app part of SkiaLuboš Luňák3-1/+41
That's basically code that allows intergrating the library with X11 etc. Change-Id: I3f5506ef4ecc334b4e93c4450fb1aa4c53dbfefc
2019-10-04ok, skia on linux actually really needs -DSK_R32_SHIFT=16Luboš Luňák2-1/+1
Otherwise the RGB order is swapped. Interestingly SkSurface::makeImageSnapshot() then returns the non-native 32bit format, but that doesn't seem to actually matter. Change-Id: I5ab2f339e1a8d3a73bf0a76c640051e0e96e5d59
2019-10-04implement skia x11 cairo text drawingLuboš Luňák3-13/+14
Change-Id: Id7d29980d2ea82b98e478e24b7e3189c31fa7257
2019-10-04move opengl and skia cairotextrender.cxx to their dirsLuboš Luňák9-13/+15
Change-Id: I67a87db644dc6fd7d69d615f7b4c388c3a1d97f6
2019-10-04filter arguments to MSVC to avoid the annoying D9025 warningLuboš Luňák4-9/+21
GCC/Clang do not bother with warning about overriding e.g. -O2 with -O0, AFAICT it's quite a common practice, and I really don't see any good reason for the warning, and even less so for not even being able to disable it. Without this, enabling SSE2/AVX2 would warn about overriding the default -arch:SSE (that's hardcoded by configure to be part of the compiler command). Change-Id: I9f9109b77de90085486bc2a98f1b453a41755e60
2019-10-04common gbuild function for getting the correct windows compilerLuboš Luňák1-6/+11
Change-Id: Ia4001a4a3a0ac8490ab7104a25ccd688d18b8aa1
2019-10-04do not abort build on PCH CXXFLAGS mismatch if set explicitlyLuboš Luňák2-14/+34
All the various gb_CppunitTest_add_cxxobjects variants actually allow passing additional CXXFLAGS. However, currently that would abort the build if PCH is used, because PCH requires the same CXXFLAGS. But if those extra CXXFLAGS are set explicitly, just skip using the PCH for that one file, as the mismatch is intentional. Change-Id: Iec4eed6d5f94c3e97ee461241203a84d21e8113c
2019-10-03always use gb_LinkTarget__get_cxxflags for cxxobjectsLuboš Luňák4-19/+16
E.g. gb_LinkTarget_add_exception_object adds it explicitly, but gb_LinkTarget_add_cxxobject itself does not, even though other variants (c,objc,objcxx) do it. This means that when compiling tools/qa/cppunit/test_cpuid.cxx it doesn't get the correct -O/-g flags, because CppunitTest_tools_test.mk uses gb_CppunitTest_add_cxxobjects to add $(INTRINSICS_CXXFLAGS). And that in its own actually should use the add_exception_objects variant, it didn't presumably because that one used to have cxxflags passing broken until I fixed it in 4bbdab901eb3c7d32d28910fb830f4b0422eee91. The usage in Library_cpp_uno.mk even explicitly works around the lack of debug symbols. Change-Id: Idc794e95bb817cd2ba2942b8e1f04f80d6722f97
2019-10-02make the X11/Skia backend finally capable of drawing on screenLuboš Luňák4-9/+133
Change-Id: I5c847c1036c671137ee27053691189093b1dafae
2019-10-02WIP avoid checking Bitmap checksums in a testLuboš Luňák1-61/+14
TODO: The data is somewhat random, because on all the data in a scanline is necessarily filled in, but checksumming counts it all. But then, this should work, as even copying a bitmap should generally just copy all the data, so why is this broken? Change-Id: Ie9efa01b191c817543bb79278125e6ddd5b0d83e
2019-10-02correct SkPaint usage when paintingLuboš Luňák2-12/+50
Handle SALCOLOR_NONE properly. Also avoid reusing a global SkPaint, creating a new one is as cheap as making a copy, and this way it's less error-prone. Change-Id: I12659cdc58b02f5105029b2b89d1b0c147c7a471
2019-10-02flush SkSurface's SkCanvas before getting data from itLuboš Luňák1-0/+3
It seems this is necessary, otherwise there may be pending operations. Change-Id: I93650bbd622d8ab8b6535a950afd2b6ac6a87db7
2019-10-02implement Skia setClipRegion()Luboš Luňák1-3/+44
Change-Id: I9e525936bba50b565704ee1b60d7464a7397dc80
2019-10-02adjust a confusing testLuboš Luňák1-2/+2
GetPrefSize() at this point is Size(0,0), so the test was testing topleft corner. And getPixel() takes Y,X , so even then it wasn't testing the center. Change-Id: Ie2e489a693fae2b7ea41075ebe6fa3ef405545d5
2019-10-01better handling of bit depths in skia codeLuboš Luňák3-40/+71
Change-Id: Ifb3103cc3494bc55a562d4b6a16b59a044782416
2019-10-01fix skia bitmap copyingLuboš Luňák1-1/+1
Change-Id: I6eef23a0feaf577e1007ef197fc2fbaf138994b0
2019-10-01implement skia copyBits()Luboš Luňák4-11/+24
Change-Id: I6706de1daaac60ce493b60af129e7a8e92c73bed
2019-09-30fix test for CanvasBitmap not handling N32BitTcMask bpp properlyLuboš Luňák1-1/+4
Change-Id: Ic331d33e0f0feca1fde4425fdb4106b1a769194d
2019-09-30WIP link to libclang-cppLuboš Luňák1-2/+1
Change-Id: I44e014d35100f6135d71ffa247c5e4e3d554fce0
2019-09-26make skia also build on WindowsLuboš Luňák7-275/+166
Change-Id: I21ee875f9e16ef42b5f1cc78b090f782ed57f525
2019-09-24more SkiaSalgraphicsImpl drawingLuboš Luňák1-24/+54
Change-Id: Ie17e8180a07ea96eff5f98b7a59efb8f576801ff
2019-09-24Skia alpha handling improvementsLuboš Luňák7-121/+200
CppunitTest_vcl_bitmap_render_test now passes. Change-Id: I88863c63de84f28b5dfeeaf73d3879bc7cbba1b2
2019-09-24Skia supports 32bit bitmapsLuboš Luňák2-0/+15
And I'd say OpenGL does as well, but enabling this for OpenGL makes some tests fail, so let's keep this only for Skia. Change-Id: Ibbbb460cd053f4a6caa4e3a8a9c6ec52e19dcd38
2019-09-23add missing constLuboš Luňák1-1/+1
Change-Id: I20baebc41bd833764bbe828dd63df5218a12ce20
2019-09-23better support for <8 bpp in SkiaSalBitmapLuboš Luňák5-9/+85
Change-Id: Ife79abfb9c36925405fd0b7da40f5274c0339117
2019-09-23move opengl's code for converting 1,2,4bpp to 24bppLuboš Luňák3-135/+149
To be reused by the Skia code. Change-Id: If3befdbd86d98a2d931c7a366c47be57a0ae6c59
2019-09-23add .cxx file for SalBitmapLuboš Luňák4-23/+47
And move the non-trivial virtual UpdateChecksum() there. Change-Id: I6776a51373e375e12f1ec9588a9c49410ae5124a
2019-09-23WIP add forgotten skia/gdiimpl.hxx changesLuboš Luňák1-2/+38
Change-Id: I9bd809fe1e1896a119cd4c3c72e1fd41fa4bed41
2019-09-23more work on SkiaSalGraphicsImpl, mainly drawBitmapLuboš Luňák2-11/+41
Change-Id: I153f71abe4612e2561e41ee923eb28e46cc31a98
2019-09-23Skia dump() should be constLuboš Luňák3-3/+3
Change-Id: I01302255daf37222ad13f9151b1a80aacb784a3c
2019-09-23initial work on Skia SalGraphicsLuboš Luňák4-41/+122
Change-Id: I3a86052ac1243e1dcdf63c7d003a7cd7c678faa8
2019-09-23(merge?) move skiagdiimpl.hxx to skia/Luboš Luňák4-3/+3
Change-Id: Ide61571d9298e657119b42a16cc9b62777c20e53
2019-09-23move openglgdiimpl.hxx to opengl/Luboš Luňák8-13/+13
That's where all the other opengl headers are. Change-Id: I1f8bbfb7018a6c28c87e4dfa2acbf4efde62894b
2019-09-20basic functional implementation of Skia SalBmpLuboš Luňák4-20/+175
Change-Id: I8e81c44554663a99cd4b262e37f4841ba0687cf1
2019-09-20(merge) improve salbmp.hxx styleLuboš Luňák1-16/+19
Change-Id: Ib75a6a63e55c559b34033f2afb59f18d15e17700
2019-09-20WIP enable feature skia (hardcoded)Luboš Luňák2-0/+8
Change-Id: I05ffdb03ab116b5dd35d8c4e87d4a47ac5412ee2
2019-09-19skia build improvements (PCH, debug)Luboš Luňák4-2/+1031
Change-Id: I6fa3eb3601e7576e431e6028c7527ecae63ec60b
2019-09-19build also skia's Vulkan backendLuboš Luňák1-43/+44
Change-Id: I87c85da763ed9cdab8da59631f8a9c1f961803a0
2019-09-19build also skia's GL backendLuboš Luňák2-272/+274
Change-Id: I20eaaf9ebbbf84043a899aeeab224dff9274d644
2019-09-18build Skia also with SkCodec* code enabledLuboš Luňák1-25/+29
This can be useful e.g. for dumping PNGs when debugging. Change-Id: I448e425df52eac5c07442e4a8eda788918557506
2019-08-16WIP skia now actually buildsLuboš Luňák10-77/+1006
Change-Id: I4f1253f1ad4496b1578f9d6838662c1fbba377db
2019-08-15WIP empty Skia vcl implementationLuboš Luňák11-126/+665
Change-Id: I3849c7895a3a8747f5874a91c023a38a26d18179
2019-08-15add missing #includeLuboš Luňák1-0/+3
Change-Id: Ib0576a5d90d4e1d7dd97104d4be3a253a80c9392
2019-07-30WIP skia integrationLuboš Luňák18-6/+635
Change-Id: I3c810d8eaf242527e6274cb59c7caaa7da30bb23
2019-07-30WIP continue skia supportLuboš Luňák4-36/+47
Change-Id: I3e85b1386803cdd0f690a958a5975321a1fc9b34
2019-07-30support also zstd in UnpackedTarballLuboš Luňák1-0/+3
Change-Id: I08b02dedd6518cf9bacfb78475183173448b213b
2019-07-30Build skia library in LibreOfficeTomaž Vajngerl12-0/+390
Change-Id: Iaa8156270dd764814a5ddbeb2fd617acae3ae561