Steven Kirk
560ed78e24
Make render tests pass again.
10 years ago
Steven Kirk
fc1110fa8c
Don't clear canvas when creating drawing context.
10 years ago
Steven Kirk
e450c76efe
A bit of work on Cairo, Skia and Gtk backends.
They're not yet working properly but they're drawing something and not
crashing.
10 years ago
Steven Kirk
1e4661d447
Resize swap chain on window resize.
Rather than recreating it.
10 years ago
Steven Kirk
eefc1d362f
Initialize layer backgrounds to transparent.
10 years ago
Steven Kirk
a967c9bf82
Make DPI scaling work again.
10 years ago
Steven Kirk
74c263ee8f
Handle detached visuals in dirty list.
10 years ago
Steven Kirk
932f489faa
Use the Direct2D 1.1 render target initialization.
To prevent D2D from auto-stretching our render target to the window size
(which causes problems now we're multi-threaded) we have to move to the
D2D1.1 render target initialization. I used the info here to work out
how to do this:
https://katyscode.wordpress.com/2013/01/23/migrating-existing-direct2d-applications-to-use-direct2d-1-1-functionality-in-windows-7/
- it's not exactly simple!
10 years ago
Steven Kirk
bae15f3ec4
Update dirty controls in order.
10 years ago
Steven Kirk
6d3ca92a4c
WIP: Getting resizing working.
10 years ago
Steven Kirk
ec2998728e
Store layers in Scene.
Layers are now calculated by SceneBuilder and stored in Scene. This
means we are no longer accessing `visual.Opacity` from the render thread
(and `VerifyAccess` calls have been placed in AvaloniaObject.GetValue
and friends to ensure this cannot happen). ControlCatalog is now
rendering mostly fine.
10 years ago
Steven Kirk
97ea14d58c
More work on deferred renderer.
Getting opacity layers working.
10 years ago
Steven Kirk
e222e92340
Add option to draw dirty rects.
10 years ago
Steven Kirk
d34c279ba1
WIP: Adding render layers.
10 years ago
Steven Kirk
1f985abaa6
Refactored VisualNode.
It now has two collections: Children and DrawOperations.
10 years ago
Steven Kirk
675b74225c
Remove unneeded cast.
10 years ago
Steven Kirk
a6f5631f41
Fix geometry measure.
10 years ago
Steven Kirk
04fe4a0c57
Fix RectangleNode bounds.
10 years ago
Steven Kirk
6b6474bc8d
Fix bounds clipping.
10 years ago
Steven Kirk
64287fe148
Prevent out-of-bounds in DirtyRects.Coalesce.
10 years ago
Steven Kirk
584cdbb133
Make FormattedTextImpl immutable.
Because it needs to be shared between the UI thread and the render
thread. This also required making it non-disposable like the other
graphics primitive impls.
10 years ago
Steven Kirk
9ebfa5cd0c
Make SharpDX dispose of its resources.
10 years ago
Steven Kirk
c46ca88b97
Make IGeometryImpl immutable.
As it will be shared with the UI thread and the render thread.
10 years ago
Steven Kirk
76ec613dea
Use correct bounds in VisualNode.
10 years ago
Steven Kirk
8578cce8fd
Simplification.
Previous code was me trying to work something out.
10 years ago
Steven Kirk
7dde754861
Don't keep rendering when there's nothing to render.
10 years ago
Steven Kirk
df014bdac4
Use null _dirty as meaning "needs first update".
10 years ago
Steven Kirk
43c95346b6
Fix non-compiling tests.
10 years ago
Steven Kirk
c9752d32d8
Fixed a few things.
- We don't need ConcurrentQueue in renderer
- DirtyRects coalescing was wrong
- Display number of updated rects for debug until we have dirty rect
rendering
- Animate 2 items at once in RenderTest
10 years ago
Steven Kirk
d9d5e8b6ac
Prevent reentrancy in renderer.
10 years ago
Steven Kirk
db26fe3626
Special case for hit testing in unit tests.
When not in a unit test, only update the scene from the render loop.
10 years ago
Steven Kirk
2d5a8f3809
Removed unnecessary field.
10 years ago
Steven Kirk
9f0a85a093
Move FPS drawing out of inner loop.
10 years ago
Steven Kirk
52c3daea11
Initial implementation of dirty rect drawing.
10 years ago
Steven Kirk
34227686d4
Render child visual nodes explicitly.
Render them in DeferredRenderer rather than in VisualNode.
10 years ago
Steven Kirk
3c189cbe82
Make SceneBuilder update dirty rects.
10 years ago
Steven Kirk
349ba78931
Fixed pointerover state.
And added a test for it.
10 years ago
Steven Kirk
da666b4463
Make Shape render properly again.
10 years ago
Steven Kirk
a520789d2c
Reset needsRender flag after rendering.
10 years ago
Steven Kirk
73f44bb7b4
Fix GeometryNode hit test.
And add to-do for RectangleNode geometry hit-test.
10 years ago
Steven Kirk
cef5ffed90
Docs and tweaking.
10 years ago
Steven Kirk
934e18c8ba
Initial impl of incremental update to SceneGraph.
10 years ago
Steven Kirk
59ea52e254
Clip affects rendering.
10 years ago
Steven Kirk
98f551c533
Don't need the context.Render any more.
In hit testing unit tests.
10 years ago
Steven Kirk
afda993170
Fix initial draw.
10 years ago
Steven Kirk
213e3c89c6
Fix hit testing on tab strip items.
Now that we use the scenegraph for hit testing. This fixes the tabs in
ControlCatalog.
10 years ago
Steven Kirk
86216d9420
Use scene geometry for hit-testing.
This means we now correctly hit test circles etc.
10 years ago
Steven Kirk
458007a106
Updated libs with API changes.
10 years ago
Steven Kirk
d91d1829ac
Initial implementation of scenegraph hit testing.
Based solely on control bounds as before.
10 years ago
Steven Kirk
83d45c548b
Merge branch 'remove-duplicate-testroot' into scenegraph
Conflicts:
tests/Avalonia.Visuals.UnitTests/TestRoot.cs
10 years ago