[PATCH 5/9] d2d1: Stub ID2D1DeviceContext

Lucian Poston lucian.poston at gmail.com
Tue Nov 21 02:41:09 CST 2017


https://bugs.winehq.org/show_bug.cgi?id=44052

Signed-off-by: Lucian Poston <lucian.poston at gmail.com>
---
 dlls/d2d1/Makefile.in      |    1 +
 dlls/d2d1/device_context.c | 1040 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 1041 insertions(+)
 create mode 100644 dlls/d2d1/device_context.c

diff --git a/dlls/d2d1/Makefile.in b/dlls/d2d1/Makefile.in
index 88bdab98dc..39753bd384 100644
--- a/dlls/d2d1/Makefile.in
+++ b/dlls/d2d1/Makefile.in
@@ -9,6 +9,7 @@ C_SRCS = \
 	brush.c \
 	dc_render_target.c \
 	device.c \
+	device_context.c \
 	factory.c \
 	geometry.c \
 	hwnd_render_target.c \
diff --git a/dlls/d2d1/device_context.c b/dlls/d2d1/device_context.c
new file mode 100644
index 0000000000..5b679c2af8
--- /dev/null
+++ b/dlls/d2d1/device_context.c
@@ -0,0 +1,1040 @@
+/*
+ * Copyright 2017 Wine Project
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "config.h"
+#include "wine/port.h"
+
+#include "d2d1_private.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(d2d);
+
+struct d2d_device_context
+{
+    ID2D1DeviceContext ID2D1DeviceContext_iface;
+    LONG refcount;
+};
+
+static inline struct d2d_device_context *impl_from_ID2D1DeviceContext(ID2D1DeviceContext *iface)
+{
+    return CONTAINING_RECORD(iface, struct d2d_device_context, ID2D1DeviceContext_iface);
+}
+
+static HRESULT WINAPI d2d_device_context_QueryInterface(
+        ID2D1DeviceContext *iface,
+        REFIID riid,
+        void **ppvObject)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static ULONG WINAPI d2d_device_context_AddRef(
+        ID2D1DeviceContext *iface)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return 0;
+}
+
+static ULONG WINAPI d2d_device_context_Release(
+        ID2D1DeviceContext *iface)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return 0;
+}
+
+static void WINAPI d2d_device_context_GetFactory(
+        ID2D1DeviceContext *iface,
+        ID2D1Factory **factory)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static HRESULT WINAPI d2d_device_context_CreateBitmap(
+        ID2D1DeviceContext *iface,
+        D2D1_SIZE_U size,
+        const void *src_data,
+        UINT32 pitch,
+        const D2D1_BITMAP_PROPERTIES *desc,
+        ID2D1Bitmap **bitmap)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_CreateBitmapFromWicBitmap(
+        ID2D1DeviceContext *iface,
+        IWICBitmapSource *bitmap_source,
+        const D2D1_BITMAP_PROPERTIES *desc,
+        ID2D1Bitmap **bitmap)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_CreateSharedBitmap(
+        ID2D1DeviceContext *iface,
+        REFIID iid,
+        void *data,
+        const D2D1_BITMAP_PROPERTIES *desc,
+        ID2D1Bitmap **bitmap)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_CreateBitmapBrush(
+        ID2D1DeviceContext *iface,
+        ID2D1Bitmap *bitmap,
+        const D2D1_BITMAP_BRUSH_PROPERTIES *bitmap_brush_desc,
+        const D2D1_BRUSH_PROPERTIES *brush_desc,
+        ID2D1BitmapBrush **brush)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_CreateSolidColorBrush(
+        ID2D1DeviceContext *iface,
+        const D2D1_COLOR_F *color,
+        const D2D1_BRUSH_PROPERTIES *desc,
+        ID2D1SolidColorBrush **brush)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_CreateGradientStopCollection(
+        ID2D1DeviceContext *iface,
+        const D2D1_GRADIENT_STOP *stops,
+        UINT32 stop_count,
+        D2D1_GAMMA gamma,
+        D2D1_EXTEND_MODE extend_mode,
+        ID2D1GradientStopCollection **gradient)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_CreateLinearGradientBrush(
+        ID2D1DeviceContext *iface,
+        const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES *gradient_brush_desc,
+        const D2D1_BRUSH_PROPERTIES *brush_desc,
+        ID2D1GradientStopCollection *gradient,
+        ID2D1LinearGradientBrush **brush)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_CreateRadialGradientBrush(
+        ID2D1DeviceContext *iface,
+        const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES *gradient_brush_desc,
+        const D2D1_BRUSH_PROPERTIES *brush_desc,
+        ID2D1GradientStopCollection *gradient,
+        ID2D1RadialGradientBrush **brush)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_CreateCompatibleRenderTarget(
+        ID2D1DeviceContext *iface,
+        const D2D1_SIZE_F *size,
+        const D2D1_SIZE_U *pixel_size,
+        const D2D1_PIXEL_FORMAT *format,
+        D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options,
+        ID2D1BitmapRenderTarget **render_target)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_CreateLayer(
+        ID2D1DeviceContext *iface,
+        const D2D1_SIZE_F *size,
+        ID2D1Layer **layer)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_CreateMesh(
+        ID2D1DeviceContext *iface,
+        ID2D1Mesh **mesh)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static void WINAPI d2d_device_context_DrawLine(
+        ID2D1DeviceContext *iface,
+        D2D1_POINT_2F p0,
+        D2D1_POINT_2F p1,
+        ID2D1Brush *brush,
+        float stroke_width,
+        ID2D1StrokeStyle *stroke_style)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_DrawRectangle(
+        ID2D1DeviceContext *iface,
+        const D2D1_RECT_F *rect,
+        ID2D1Brush *brush,
+        float stroke_width,
+        ID2D1StrokeStyle *stroke_style)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_FillRectangle(
+        ID2D1DeviceContext *iface,
+        const D2D1_RECT_F *rect,
+        ID2D1Brush *brush)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_DrawRoundedRectangle(
+        ID2D1DeviceContext *iface,
+        const D2D1_ROUNDED_RECT *rect,
+        ID2D1Brush *brush,
+        float stroke_width,
+        ID2D1StrokeStyle *stroke_style)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_FillRoundedRectangle(
+        ID2D1DeviceContext *iface,
+        const D2D1_ROUNDED_RECT *rect,
+        ID2D1Brush *brush)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_DrawEllipse(
+        ID2D1DeviceContext *iface,
+        const D2D1_ELLIPSE *ellipse,
+        ID2D1Brush *brush,
+        float stroke_width,
+        ID2D1StrokeStyle *stroke_style)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_FillEllipse(
+        ID2D1DeviceContext *iface,
+        const D2D1_ELLIPSE *ellipse,
+        ID2D1Brush *brush)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_DrawGeometry(
+        ID2D1DeviceContext *iface,
+        ID2D1Geometry *geometry,
+        ID2D1Brush *brush,
+        float stroke_width,
+        ID2D1StrokeStyle *stroke_style)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_FillGeometry(
+        ID2D1DeviceContext *iface,
+        ID2D1Geometry *geometry,
+        ID2D1Brush *brush,
+        ID2D1Brush *opacity_brush)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_FillMesh(
+        ID2D1DeviceContext *iface,
+        ID2D1Mesh *mesh,
+        ID2D1Brush *brush)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_FillOpacityMask(
+        ID2D1DeviceContext *iface,
+        ID2D1Bitmap *mask,
+        ID2D1Brush *brush,
+        D2D1_OPACITY_MASK_CONTENT content,
+        const D2D1_RECT_F *dst_rect,
+        const D2D1_RECT_F *src_rect)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_DrawBitmap(
+        ID2D1DeviceContext *iface,
+        ID2D1Bitmap *bitmap,
+        const D2D1_RECT_F *dst_rect,
+        float opacity,
+        D2D1_BITMAP_INTERPOLATION_MODE interpolation_mode,
+        const D2D1_RECT_F *src_rect)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_DrawText(
+        ID2D1DeviceContext *iface,
+        const WCHAR *string,
+        UINT32 string_len,
+        IDWriteTextFormat *text_format,
+        const D2D1_RECT_F *layout_rect,
+        ID2D1Brush *brush,
+        D2D1_DRAW_TEXT_OPTIONS options,
+        DWRITE_MEASURING_MODE measuring_mode)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_DrawTextLayout(
+        ID2D1DeviceContext *iface,
+        D2D1_POINT_2F origin,
+        IDWriteTextLayout *layout,
+        ID2D1Brush *brush,
+        D2D1_DRAW_TEXT_OPTIONS options)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_DrawGlyphRun(
+        ID2D1DeviceContext *iface,
+        D2D1_POINT_2F baseline_origin,
+        const DWRITE_GLYPH_RUN *glyph_run,
+        ID2D1Brush *brush,
+        DWRITE_MEASURING_MODE measuring_mode)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_SetTransform(
+        ID2D1DeviceContext *iface,
+        const D2D1_MATRIX_3X2_F *transform)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_GetTransform(
+        ID2D1DeviceContext *iface,
+        D2D1_MATRIX_3X2_F *transform)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_SetAntialiasMode(
+        ID2D1DeviceContext *iface,
+        D2D1_ANTIALIAS_MODE antialias_mode)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static D2D1_ANTIALIAS_MODE WINAPI d2d_device_context_GetAntialiasMode(
+        ID2D1DeviceContext *iface)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return D2D1_ANTIALIAS_MODE_PER_PRIMITIVE;
+}
+
+static void WINAPI d2d_device_context_SetTextAntialiasMode(
+        ID2D1DeviceContext *iface,
+        D2D1_TEXT_ANTIALIAS_MODE antialias_mode)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static D2D1_TEXT_ANTIALIAS_MODE WINAPI d2d_device_context_GetTextAntialiasMode(
+        ID2D1DeviceContext *iface)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return D2D1_TEXT_ANTIALIAS_MODE_DEFAULT;
+}
+
+static void WINAPI d2d_device_context_SetTextRenderingParams(
+        ID2D1DeviceContext *iface,
+        IDWriteRenderingParams *text_rendering_params)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_GetTextRenderingParams(
+        ID2D1DeviceContext *iface,
+        IDWriteRenderingParams **text_rendering_params)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_SetTags(
+        ID2D1DeviceContext *iface,
+        D2D1_TAG tag1,
+        D2D1_TAG tag2)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_GetTags(
+        ID2D1DeviceContext *iface,
+        D2D1_TAG *tag1,
+        D2D1_TAG *tag2)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_PushLayer(
+        ID2D1DeviceContext *iface,
+        const D2D1_LAYER_PARAMETERS *layer_parameters,
+        ID2D1Layer *layer)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_PopLayer(
+        ID2D1DeviceContext *iface)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static HRESULT WINAPI d2d_device_context_Flush(
+        ID2D1DeviceContext *iface,
+        D2D1_TAG *tag1,
+        D2D1_TAG *tag2)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static void WINAPI d2d_device_context_SaveDrawingState(
+        ID2D1DeviceContext *iface,
+        ID2D1DrawingStateBlock *state_block)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_RestoreDrawingState(
+        ID2D1DeviceContext *iface,
+        ID2D1DrawingStateBlock *state_block)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_PushAxisAlignedClip(
+        ID2D1DeviceContext *iface,
+        const D2D1_RECT_F *clip_rect,
+        D2D1_ANTIALIAS_MODE antialias_mode)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_PopAxisAlignedClip(
+        ID2D1DeviceContext *iface)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_Clear(
+        ID2D1DeviceContext *iface,
+        const D2D1_COLOR_F *color)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_BeginDraw(
+        ID2D1DeviceContext *iface)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static HRESULT WINAPI d2d_device_context_EndDraw(
+        ID2D1DeviceContext *iface,
+        D2D1_TAG *tag1,
+        D2D1_TAG *tag2)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static D2D1_PIXEL_FORMAT * WINAPI d2d_device_context_GetPixelFormat(
+        ID2D1DeviceContext *iface,
+        D2D1_PIXEL_FORMAT *__ret)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return NULL;
+}
+
+static void WINAPI d2d_device_context_SetDpi(
+        ID2D1DeviceContext *iface,
+        float dpi_x,
+        float dpi_y)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_GetDpi(
+        ID2D1DeviceContext *iface,
+        float *dpi_x,
+        float *dpi_y)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static D2D1_SIZE_F * WINAPI d2d_device_context_GetSize(
+        ID2D1DeviceContext *iface,
+        D2D1_SIZE_F *__ret)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return NULL;
+}
+
+static D2D1_SIZE_U * WINAPI d2d_device_context_GetPixelSize(
+        ID2D1DeviceContext *iface,
+        D2D1_SIZE_U *__ret)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return NULL;
+}
+
+static UINT32 WINAPI d2d_device_context_GetMaximumBitmapSize(
+        ID2D1DeviceContext *iface)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return 0;
+}
+
+static BOOL WINAPI d2d_device_context_IsSupported(
+        ID2D1DeviceContext *iface,
+        const D2D1_RENDER_TARGET_PROPERTIES *desc)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return FALSE;
+}
+
+static HRESULT WINAPI d2d_device_context_ID2D1DeviceContext_CreateBitmap(
+        ID2D1DeviceContext *iface,
+        D2D1_SIZE_U size,
+        const void *srcData,
+        UINT32 pitch,
+        const D2D1_BITMAP_PROPERTIES1 *bitmapProperties,
+        ID2D1Bitmap1 **bitmap)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_ID2D1DeviceContext_CreateBitmapFromWicBitmap(
+        ID2D1DeviceContext *iface,
+        IWICBitmapSource *wicBitmapSource,
+        const D2D1_BITMAP_PROPERTIES1 *bitmapProperties,
+        ID2D1Bitmap1 **bitmap)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_CreateColorContext(
+        ID2D1DeviceContext *iface,
+        D2D1_COLOR_SPACE space,
+        const BYTE *Profile,
+        UINT32 profileSize,
+        ID2D1ColorContext **colorContext)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_CreateColorContextFromFilename(
+        ID2D1DeviceContext *iface,
+        PCWSTR Filename,
+        ID2D1ColorContext **colorContext)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_CreateColorContextFromWicColorContext(
+        ID2D1DeviceContext *iface,
+        IWICColorContext *wicColorContext,
+        ID2D1ColorContext **colorContext)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_CreateBitmapFromDxgiSurface(
+        ID2D1DeviceContext *iface,
+        IDXGISurface *surface,
+        const D2D1_BITMAP_PROPERTIES1 *bitmapProperties,
+        ID2D1Bitmap1 **bitmap)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_CreateEffect(
+        ID2D1DeviceContext *iface,
+        REFCLSID effectId,
+        ID2D1Effect **effect)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_ID2D1DeviceContext_CreateGradientStopCollection(
+        ID2D1DeviceContext *iface,
+        const D2D1_GRADIENT_STOP *gradientStops,
+        UINT gradientStopsCount,
+        D2D1_COLOR_SPACE preInterpolationSpace,
+        D2D1_COLOR_SPACE postInterpolationSpace,
+        D2D1_BUFFER_PRECISION bufferPrecision,
+        D2D1_EXTEND_MODE extendMode,
+        D2D1_COLOR_INTERPOLATION_MODE colorInterpolationMode,
+        ID2D1GradientStopCollection1 **gradientStopCollection)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_CreateImageBrush(
+        ID2D1DeviceContext *iface,
+        ID2D1Image *image,
+        const D2D1_IMAGE_BRUSH_PROPERTIES *imageBrushProperties,
+        const D2D1_BRUSH_PROPERTIES *brushProperties,
+        ID2D1ImageBrush **imageBrush)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_ID2D1DeviceContext_CreateBitmapBrush(
+        ID2D1DeviceContext *iface,
+        ID2D1Bitmap *bitmap,
+        D2D1_BITMAP_BRUSH_PROPERTIES1 *bitmapBrushProperties,
+        D2D1_BRUSH_PROPERTIES *brushProperties,
+        ID2D1BitmapBrush1 **bitmapBrush)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_CreateCommandList(
+        ID2D1DeviceContext *iface,
+        ID2D1CommandList **commandList)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static BOOL WINAPI d2d_device_context_IsDxgiFormatSupported(
+        ID2D1DeviceContext *iface,
+        DXGI_FORMAT format)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return FALSE;
+}
+
+static BOOL WINAPI d2d_device_context_IsBufferPrecisionSupported(
+        ID2D1DeviceContext *iface,
+        D2D1_BUFFER_PRECISION bufferPrecision)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return FALSE;
+}
+
+static void WINAPI d2d_device_context_GetImageLocalBounds(
+        ID2D1DeviceContext *iface,
+        ID2D1Image *image,
+        D2D1_RECT_F *localBounds)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static HRESULT WINAPI d2d_device_context_GetImageWorldBounds(
+        ID2D1DeviceContext *iface,
+        ID2D1Image *image,
+        D2D1_RECT_F *worldBounds)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_GetGlyphRunWorldBounds(
+        ID2D1DeviceContext *iface,
+        D2D1_POINT_2F baselineOrigin,
+        const DWRITE_GLYPH_RUN *glyphRun,
+        DWRITE_MEASURING_MODE measuringMode,
+        D2D1_RECT_F *bounds)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static void WINAPI d2d_device_context_GetDevice(
+        ID2D1DeviceContext *iface,
+        ID2D1Device **device)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_SetTarget(
+        ID2D1DeviceContext *iface,
+        ID2D1Image *target)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_GetTarget(
+        ID2D1DeviceContext *iface,
+        ID2D1Image **target)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_SetRenderingControls(
+        ID2D1DeviceContext *iface,
+        const D2D1_RENDERING_CONTROLS *renderingControls)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_GetRenderingControls(
+        ID2D1DeviceContext *iface,
+        D2D1_RENDERING_CONTROLS *renderingControls)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_SetPrimitiveBlend(
+        ID2D1DeviceContext *iface,
+        D2D1_PRIMITIVE_BLEND primitiveBlend)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static D2D1_PRIMITIVE_BLEND WINAPI d2d_device_context_GetPrimitiveBlend(
+        ID2D1DeviceContext *iface)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return D2D1_PRIMITIVE_BLEND_SOURCE_OVER;
+}
+
+static void WINAPI d2d_device_context_SetUnitMode(
+        ID2D1DeviceContext *iface,
+        D2D1_UNIT_MODE unitMode)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static D2D1_UNIT_MODE WINAPI d2d_device_context_GetUnitMode(
+        ID2D1DeviceContext *iface)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return D2D1_UNIT_MODE_DIPS;
+}
+
+static void WINAPI d2d_device_context_ID2D1DeviceContext_DrawGlyphRun(
+        ID2D1DeviceContext *iface,
+        D2D1_POINT_2F baselineOrigin,
+        const DWRITE_GLYPH_RUN *glyphRun,
+        const DWRITE_GLYPH_RUN_DESCRIPTION *glyphRunDescription,
+        ID2D1Brush *foregroundBrush,
+        DWRITE_MEASURING_MODE measuringMode)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_DrawImage(
+        ID2D1DeviceContext *iface,
+        ID2D1Image *image,
+        const D2D1_POINT_2F *targetOffset,
+        const D2D1_RECT_F *imageRectangle,
+        D2D1_INTERPOLATION_MODE interpolationMode,
+        D2D1_COMPOSITE_MODE compositeMode)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_DrawGdiMetafile(
+        ID2D1DeviceContext *iface,
+        ID2D1GdiMetafile *gdiMetafile,
+        const D2D1_POINT_2F *targetOffset)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_ID2D1DeviceContext_DrawBitmap(
+        ID2D1DeviceContext *iface,
+        ID2D1Bitmap *bitmap,
+        D2D1_RECT_F *destinationRectangle,
+        float opacity,
+        D2D1_INTERPOLATION_MODE interpolationMode,
+        const D2D1_RECT_F sourceRectangle,
+        const D2D1_MATRIX_4X4_F perspectiveTransform)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static void WINAPI d2d_device_context_ID2D1DeviceContext_PushLayer(
+        ID2D1DeviceContext *iface,
+        const D2D1_LAYER_PARAMETERS1 *layerParameters,
+        ID2D1Layer *layer)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static HRESULT WINAPI d2d_device_context_InvalidateEffectInputRectangle(
+        ID2D1DeviceContext *iface,
+        ID2D1Effect *effect,
+        UINT32 input,
+        const D2D1_RECT_F *inputRectangle)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_GetEffectInvalidRectangleCount(
+        ID2D1DeviceContext *iface,
+        ID2D1Effect *effect,
+        UINT32 *rectangleCount)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_GetEffectInvalidRectangles(
+        ID2D1DeviceContext *iface,
+        ID2D1Effect *effect,
+        D2D1_RECT_F *rectangles,
+        UINT32 rectanglesCount)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI d2d_device_context_GetEffectRequiredInputRectangles(
+        ID2D1DeviceContext *iface,
+        ID2D1Effect *renderEffect,
+        const D2D1_RECT_F *renderImageRectangle,
+        const D2D1_EFFECT_INPUT_DESCRIPTION *inputDescriptions,
+        D2D1_RECT_F *requiredInputRects,
+        UINT32 inputCount)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+    return E_NOTIMPL;
+}
+
+static void WINAPI d2d_device_context_ID2D1DeviceContext_FillOpacityMask(
+        ID2D1DeviceContext *iface,
+        ID2D1Bitmap *opacityMask,
+        ID2D1Brush *brush,
+        const D2D1_RECT_F *destinationRectangle,
+        const D2D1_RECT_F *sourceRectangle)
+{
+    struct d2d_device_context *This = impl_from_ID2D1DeviceContext(iface);
+    FIXME("%p stub!\n", This);
+}
+
+static const struct ID2D1DeviceContextVtbl d2d_device_context_vtbl =
+{
+    d2d_device_context_QueryInterface,
+    d2d_device_context_AddRef,
+    d2d_device_context_Release,
+    d2d_device_context_GetFactory,
+    d2d_device_context_CreateBitmap,
+    d2d_device_context_CreateBitmapFromWicBitmap,
+    d2d_device_context_CreateSharedBitmap,
+    d2d_device_context_CreateBitmapBrush,
+    d2d_device_context_CreateSolidColorBrush,
+    d2d_device_context_CreateGradientStopCollection,
+    d2d_device_context_CreateLinearGradientBrush,
+    d2d_device_context_CreateRadialGradientBrush,
+    d2d_device_context_CreateCompatibleRenderTarget,
+    d2d_device_context_CreateLayer,
+    d2d_device_context_CreateMesh,
+    d2d_device_context_DrawLine,
+    d2d_device_context_DrawRectangle,
+    d2d_device_context_FillRectangle,
+    d2d_device_context_DrawRoundedRectangle,
+    d2d_device_context_FillRoundedRectangle,
+    d2d_device_context_DrawEllipse,
+    d2d_device_context_FillEllipse,
+    d2d_device_context_DrawGeometry,
+    d2d_device_context_FillGeometry,
+    d2d_device_context_FillMesh,
+    d2d_device_context_FillOpacityMask,
+    d2d_device_context_DrawBitmap,
+    d2d_device_context_DrawText,
+    d2d_device_context_DrawTextLayout,
+    d2d_device_context_DrawGlyphRun,
+    d2d_device_context_SetTransform,
+    d2d_device_context_GetTransform,
+    d2d_device_context_SetAntialiasMode,
+    d2d_device_context_GetAntialiasMode,
+    d2d_device_context_SetTextAntialiasMode,
+    d2d_device_context_GetTextAntialiasMode,
+    d2d_device_context_SetTextRenderingParams,
+    d2d_device_context_GetTextRenderingParams,
+    d2d_device_context_SetTags,
+    d2d_device_context_GetTags,
+    d2d_device_context_PushLayer,
+    d2d_device_context_PopLayer,
+    d2d_device_context_Flush,
+    d2d_device_context_SaveDrawingState,
+    d2d_device_context_RestoreDrawingState,
+    d2d_device_context_PushAxisAlignedClip,
+    d2d_device_context_PopAxisAlignedClip,
+    d2d_device_context_Clear,
+    d2d_device_context_BeginDraw,
+    d2d_device_context_EndDraw,
+    d2d_device_context_GetPixelFormat,
+    d2d_device_context_SetDpi,
+    d2d_device_context_GetDpi,
+    d2d_device_context_GetSize,
+    d2d_device_context_GetPixelSize,
+    d2d_device_context_GetMaximumBitmapSize,
+    d2d_device_context_IsSupported,
+    d2d_device_context_ID2D1DeviceContext_CreateBitmap,
+    d2d_device_context_ID2D1DeviceContext_CreateBitmapFromWicBitmap,
+    d2d_device_context_CreateColorContext,
+    d2d_device_context_CreateColorContextFromFilename,
+    d2d_device_context_CreateColorContextFromWicColorContext,
+    d2d_device_context_CreateBitmapFromDxgiSurface,
+    d2d_device_context_CreateEffect,
+    d2d_device_context_ID2D1DeviceContext_CreateGradientStopCollection,
+    d2d_device_context_CreateImageBrush,
+    d2d_device_context_ID2D1DeviceContext_CreateBitmapBrush,
+    d2d_device_context_CreateCommandList,
+    d2d_device_context_IsDxgiFormatSupported,
+    d2d_device_context_IsBufferPrecisionSupported,
+    d2d_device_context_GetImageLocalBounds,
+    d2d_device_context_GetImageWorldBounds,
+    d2d_device_context_GetGlyphRunWorldBounds,
+    d2d_device_context_GetDevice,
+    d2d_device_context_SetTarget,
+    d2d_device_context_GetTarget,
+    d2d_device_context_SetRenderingControls,
+    d2d_device_context_GetRenderingControls,
+    d2d_device_context_SetPrimitiveBlend,
+    d2d_device_context_GetPrimitiveBlend,
+    d2d_device_context_SetUnitMode,
+    d2d_device_context_GetUnitMode,
+    d2d_device_context_ID2D1DeviceContext_DrawGlyphRun,
+    d2d_device_context_DrawImage,
+    d2d_device_context_DrawGdiMetafile,
+    d2d_device_context_ID2D1DeviceContext_DrawBitmap,
+    d2d_device_context_ID2D1DeviceContext_PushLayer,
+    d2d_device_context_InvalidateEffectInputRectangle,
+    d2d_device_context_GetEffectInvalidRectangleCount,
+    d2d_device_context_GetEffectInvalidRectangles,
+    d2d_device_context_GetEffectRequiredInputRectangles,
+    d2d_device_context_ID2D1DeviceContext_FillOpacityMask,
+};
-- 
2.13.6




More information about the wine-devel mailing list