Steven Kirk
fc5c814cfa
Correctly snap dirty rects to device pixels.
6 years ago
Nikita Tsukanov
6311b913e1
Second ctor
6 years ago
Nikita Tsukanov
07288d2087
Reduce allocations
6 years ago
Nikita Tsukanov
b201e8c591
Show the effective rendered frame count instead of render timer tick count
6 years ago
Nikita Tsukanov
4af87777c5
Preemptively schedule a scene update when rendering an updated SceneInvalidated
Effective FPS is now 60 instead of 30
6 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
7 years ago
ahopper
9207d439c4
local copies of .Count
7 years ago
ahopper
44c5b43402
Reduce deferred renderer enumerator allocations
7 years ago
Steven Kirk
a8e75384b7
Added IImage interface.
`IImage` represents a base interface for raster and vector images. `IBitmap` now implements this interface and `DrawingContext` accepts this interface in `DrawImage`.
The interface defines a `Draw` method which introduces a level of indirection for drawing the image through the image itself.
Renamed `IDrawingContextImpl.DrawImage` to `DrawBitmap` as this only handles drawing bitmap images. `Bitmap` now calls this method directly on the platform implementation.
7 years ago
Dariusz Komosinski
9e812f24b9
Add HitTestFirst that allows for hit testing first matching visual. Implement better enumerator that can be used for both first and multiple hits.
7 years ago
Benedikt Schroeder
527d8376d7
Combine draw and fill rectangle drawing operation
7 years ago
Dariusz Komosinski
5814bd7163
Remove direct logging functions.
7 years ago
Steven Kirk
25e0ed5365
Revert "Handle reparenting controls in SceneBuilder."
This reverts commit db8751d711 .
The change was incorrect, it causes #3019 .
7 years ago
Steven Kirk
db8751d711
Handle reparenting controls in SceneBuilder.
Renamed `VisualNode.SortChildren` -> `UpdateChildren` and make it remove nodes for controls that are no longer children.
7 years ago
Dariusz Komosinski
c755334dde
Review feedback.
7 years ago
Dariusz Komosinski
671361c805
Remove extra lambda allocations from render loop.
7 years ago
Steven Kirk
0e7f4cac81
Ensure control is invalidated on ZIndex change.
7 years ago
Steven Kirk
bc5a101faf
Render changes to child order/zindex.
Fixes #2714 .
7 years ago
Steven Kirk
32d7938c7c
Added failing tests for #2714 .
7 years ago
Nikita Tsukanov
d52d3417ae
Backported eb07c4b - jitter fix
7 years ago
Steven Kirk
ece1b3e334
Initial import of ItemsRepeater from the WinUI library.
https://github.com/microsoft/microsoft-ui-xaml
7 years ago
Nikita Tsukanov
eb07c4b80b
[Win32] Fix GL-rendering jitter on resize
7 years ago
Steven Kirk
2661e939b1
Reset dirty rects before calling SceneInvalidated.
When cleared after calling `SceneInvalidated`, any control invalidated during `SceneInvalidated` was be lost.
Fixes #2518 .
7 years ago
José Pedro
d055e9e4b9
Removed unused field.
Removed unused usings.
Whitespace cleanup.
7 years ago
Steven Kirk
2a77f4426a
Snap dirty rects in DeferredRenderer to device pixels.
Fixes #2015 .
8 years ago
danwalmsley
e9f59a90e8
ensure scene is always disposed
8 years ago
danwalmsley
b2f250acb4
Oops
8 years ago
Dan Walmsley
a24c291756
potential fix for nre in deferred renderer.
8 years ago
Nikita Tsukanov
591ecc4ded
[RENDER] Don't crash on Paint call when renderer is already disposed
8 years ago
Nikita Tsukanov
ad018c604c
[RENDERER] Postpone layers and render target dispose until lock can be acquired
8 years ago
Steven Kirk
38a3db18cb
Added IRenderer.SceneInvalidated event.
And use this event to trigger an update of the mouse pointer-over state.
8 years ago
Dan Walmsley
025c973435
[RENDER] Don't crash if UpdateScene produced a null scene
8 years ago
Nikita Tsukanov
37c65262ac
[RENDER] Don't copy "resized" layer contents + properly remove unneded layers
8 years ago
Nikita Tsukanov
5e698a4ab2
Fixed other tests
8 years ago
Nikita Tsukanov
36915d6c94
Reworked rendering
8 years ago
Nikita Tsukanov
02200eb4d3
Use proper locks for _scene manipulation
8 years ago
Nikita Tsukanov
31b6a0d16c
Wait for scene to be consumed before producing a new one. Fixes TONS of variour rendering artifacts
8 years ago
Nikita Tsukanov
ec628116f6
Force RenderComposite on UI thread
8 years ago
Nikita Tsukanov
06dd72e9c8
Enforce DeferredRenderer to produce a frame when requested by OS
8 years ago
Jeremy Koritzinsky
5fce271ff8
PR Feedback
8 years ago
Steven Kirk
a0e8dca6e9
Use PixelSize for device-dependent sizes.
8 years ago
Jeremy Koritzinsky
6fe8dba8d9
Remove timing class and create Clock classes that can hook into the render loop.
8 years ago
Jeremy Koritzinsky
c5898b98af
Remove unused field.
8 years ago
Steven Kirk
0b4e6b8471
Make centralized RenderLoop.
- Renamed `RenderLoop` to `RenderTimer`
- Added new `RenderLoop` which `DeferredRenderer`s register themselves with for updates
8 years ago
Miha Markič
0a38876590
Spellchecks all projects except for Base, Controls, Samples and Testing
8 years ago
Jumar Macato
1f8400a6ff
Fix ghosting artifacts on both Renderers #1687
8 years ago
Nelson Carrillo
88bfdf87ea
Skia backend cleanup.
8 years ago
Jeremy Koritzinsky
53bf2431ed
Clean up OnRenderLoopTick code.
9 years ago
Jeremy Koritzinsky
8817910549
Add ref-counting for the scene instance in DeferredRenderer to ensure that we don't dispose a scene while it is being rendered.
Also rename Scene.Clone to Scene.CloneScene to prevent confusion between IRef<Scene>.Clone and Scene.Clone.
9 years ago
Jeremy Koritzinsky
ae7e7829d4
Fixed incorrect cast in DeferredRenderer's IVisualBrushRenderer implementation.
9 years ago