pebble-dev / RebbleOS

open source operating system for low-power smartwatches
Other
355 stars 38 forks source link

graphics_capture_frame_buffer should use backing buffer living in app RAM #134

Open jwise opened 3 years ago

jwise commented 3 years ago

On PebbleOS, graphics_capture_frame_buffer allocates a backing buffer that lives in app RAM that only has a copy of the unobstructed portion of the framebuffer. This prevents apps from overwriting (or, indeed, stealing) notification / overlay data. This will also be necessary once we turn on the MPU.