<div><br><div class="gmail_quote"><div dir="auto">On Tue, 29 May 2018 at 10:01, Henri Verbeet <<a href="mailto:hverbeet@gmail.com">hverbeet@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 26 May 2018 at 11:17, Nikolay Sivov <<a href="mailto:nsivov@codeweavers.com" target="_blank">nsivov@codeweavers.com</a>> wrote:<br>
> Signed-off-by: Nikolay Sivov <<a href="mailto:nsivov@codeweavers.com" target="_blank">nsivov@codeweavers.com</a>><br>
> ---<br>
>  dlls/d2d1/device.c | 784 ++++++++++++++++++++++++++++++++++++++++++++-<br>
>  1 file changed, 782 insertions(+), 2 deletions(-)<br>
><br>
> diff --git a/dlls/d2d1/device.c b/dlls/d2d1/device.c<br>
> index 67b3fab906..63941dca3d 100644<br>
> --- a/dlls/d2d1/device.c<br>
> +++ b/dlls/d2d1/device.c<br>
> @@ -38,11 +38,23 @@ struct d2d_draw_text_layout_ctx<br>
>      D2D1_DRAW_TEXT_OPTIONS options;<br>
>  };<br>
><br>
> +struct d2d_device_context<br>
> +{<br>
> +    ID2D1DeviceContext ID2D1DeviceContext_iface;<br>
> +    LONG refcount;<br>
> +    struct d2d_device *device;<br>
> +};<br>
> +<br>
Since ID2D1DeviceContext extends ID2D1RenderTarget, should this<br>
implementation really be separate from the d2d_d3d_render_target<br>
implementation?<br></blockquote><div dir="auto"><br></div><div dir="auto">Context can render in two ways - populating command list, or rendering to a bitmap object. I was thinking we should create a dxgi target when rendering to a bitmap and forward calls to it. For command lists we don’t need to create a real target.</div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
</blockquote></div></div>