1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
JUCE/modules/juce_graphics
reuk 415aed4bea
Direct2DImage: Sync CPU storage when creating a BitmapData view over a subsection of the image
When syncing from CPU->GPU storage, we currently copy the entire image
contents. The contents of the CPU backup completely replace the old GPU
image. Therefore, if any pixels need to retain their existing values, we
need to read those pixels before overwriting them. This in turn implies
that, when a BitmapData refers to a subsection of the image, we should
always flush GPU->CPU storage first, so that the subsequent CPU->GPU
sync doesn't clobber pixels outside of the BitmapData region with
outdated values.

It's clear that copying the entire image back and forth could be
suboptimal when writing to image subsections, but to optimise this
process we'd have to keep track of dirty image regions or similar, which
may in turn pessimise more common cases.
2025-05-27 18:01:53 +01:00
..
colour PixelRGB: Fix pixel order issue when creating CGImages on iOS 2024-12-03 11:28:07 +00:00
contexts Add GlyphArrangementOptions for addFittedText and drawFittedText 2025-05-09 13:39:11 +02:00
detail TextEditor: Fix lines being invisible beyond the word wrap width 2025-05-21 17:47:20 +02:00
effects Effects: Use preferred temporary image type for DropShadow temporary image 2025-04-24 13:58:23 +01:00
fonts ShapedTextOptions: Rename maxWidth to wordWrapWidth 2025-05-21 17:47:20 +02:00
geometry Reword isSingularity() brief to avoid Doxygen line break 2025-05-09 12:57:02 +01:00
image_formats Zlib: Fix unknown-symbols errors when building with clang, windows, C++20/23 2025-03-03 14:41:32 +00:00
images Image: Respect pixelStride when converting between image formats 2025-05-19 13:32:52 +01:00
native Direct2DImage: Sync CPU storage when creating a BitmapData view over a subsection of the image 2025-05-27 18:01:53 +01:00
placement Update licensing information 2024-04-16 11:39:35 +01:00
unicode Fix bidi ordering 2025-05-12 16:49:05 +02:00
juce_graphics.cpp Add GlyphArrangementOptions for addFittedText and drawFittedText 2025-05-09 13:39:11 +02:00
juce_graphics.h iOS: Fix compiling juce_audio_devices when juce_graphics isn't added 2025-05-16 18:08:54 +02:00
juce_graphics.mm Update licensing information 2024-04-16 11:39:35 +01:00
juce_graphics_Harfbuzz.cpp HarfBuzz: Silence nontrivial-memcall warnings 2025-03-19 11:06:17 +00:00
juce_graphics_Sheenbidi.c SheenBidi: Disable implicit-fallthrough warning for clang/gcc 2024-12-08 22:25:11 +00:00