OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkDWriteToPath_DEFINED | 8 #ifndef SkDWriteToPath_DEFINED |
9 #define SkDWriteToPath_DEFINED | 9 #define SkDWriteToPath_DEFINED |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 SkPath* fPath; | 21 SkPath* fPath; |
22 | 22 |
23 SkDWriteGeometrySink(const SkDWriteGeometrySink&); | 23 SkDWriteGeometrySink(const SkDWriteGeometrySink&); |
24 SkDWriteGeometrySink& operator=(const SkDWriteGeometrySink&); | 24 SkDWriteGeometrySink& operator=(const SkDWriteGeometrySink&); |
25 | 25 |
26 protected: | 26 protected: |
27 explicit SkDWriteGeometrySink(SkPath* path); | 27 explicit SkDWriteGeometrySink(SkPath* path); |
28 virtual ~SkDWriteGeometrySink(); | 28 virtual ~SkDWriteGeometrySink(); |
29 | 29 |
30 public: | 30 public: |
31 virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, void **object)
SK_OVERRIDE; | 31 HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, void **object) SK_OVERR
IDE; |
32 virtual ULONG STDMETHODCALLTYPE AddRef(void) SK_OVERRIDE; | 32 ULONG STDMETHODCALLTYPE AddRef(void) SK_OVERRIDE; |
33 virtual ULONG STDMETHODCALLTYPE Release(void) SK_OVERRIDE; | 33 ULONG STDMETHODCALLTYPE Release(void) SK_OVERRIDE; |
34 | 34 |
35 virtual void STDMETHODCALLTYPE SetFillMode(D2D1_FILL_MODE fillMode) SK_OVERR
IDE; | 35 void STDMETHODCALLTYPE SetFillMode(D2D1_FILL_MODE fillMode) SK_OVERRIDE; |
36 virtual void STDMETHODCALLTYPE SetSegmentFlags(D2D1_PATH_SEGMENT vertexFlags
) SK_OVERRIDE; | 36 void STDMETHODCALLTYPE SetSegmentFlags(D2D1_PATH_SEGMENT vertexFlags) SK_OVE
RRIDE; |
37 virtual void STDMETHODCALLTYPE BeginFigure(D2D1_POINT_2F startPoint, D2D1_FI
GURE_BEGIN figureBegin) SK_OVERRIDE; | 37 void STDMETHODCALLTYPE BeginFigure(D2D1_POINT_2F startPoint, D2D1_FIGURE_BEG
IN figureBegin) SK_OVERRIDE; |
38 virtual void STDMETHODCALLTYPE AddLines(const D2D1_POINT_2F *points, UINT po
intsCount) SK_OVERRIDE; | 38 void STDMETHODCALLTYPE AddLines(const D2D1_POINT_2F *points, UINT pointsCoun
t) SK_OVERRIDE; |
39 virtual void STDMETHODCALLTYPE AddBeziers(const D2D1_BEZIER_SEGMENT *beziers
, UINT beziersCount) SK_OVERRIDE; | 39 void STDMETHODCALLTYPE AddBeziers(const D2D1_BEZIER_SEGMENT *beziers, UINT b
eziersCount) SK_OVERRIDE; |
40 virtual void STDMETHODCALLTYPE EndFigure(D2D1_FIGURE_END figureEnd) SK_OVERR
IDE; | 40 void STDMETHODCALLTYPE EndFigure(D2D1_FIGURE_END figureEnd) SK_OVERRIDE; |
41 virtual HRESULT STDMETHODCALLTYPE Close() SK_OVERRIDE; | 41 HRESULT STDMETHODCALLTYPE Close() SK_OVERRIDE; |
42 | 42 |
43 static HRESULT Create(SkPath* path, IDWriteGeometrySink** geometryToPath); | 43 static HRESULT Create(SkPath* path, IDWriteGeometrySink** geometryToPath); |
44 }; | 44 }; |
45 | 45 |
46 #endif | 46 #endif |
OLD | NEW |