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 HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, void **object) SK_OVERR
IDE; | 31 HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, void **object) override
; |
32 ULONG STDMETHODCALLTYPE AddRef(void) SK_OVERRIDE; | 32 ULONG STDMETHODCALLTYPE AddRef(void) override; |
33 ULONG STDMETHODCALLTYPE Release(void) SK_OVERRIDE; | 33 ULONG STDMETHODCALLTYPE Release(void) override; |
34 | 34 |
35 void STDMETHODCALLTYPE SetFillMode(D2D1_FILL_MODE fillMode) SK_OVERRIDE; | 35 void STDMETHODCALLTYPE SetFillMode(D2D1_FILL_MODE fillMode) override; |
36 void STDMETHODCALLTYPE SetSegmentFlags(D2D1_PATH_SEGMENT vertexFlags) SK_OVE
RRIDE; | 36 void STDMETHODCALLTYPE SetSegmentFlags(D2D1_PATH_SEGMENT vertexFlags) overri
de; |
37 void STDMETHODCALLTYPE BeginFigure(D2D1_POINT_2F startPoint, D2D1_FIGURE_BEG
IN figureBegin) SK_OVERRIDE; | 37 void STDMETHODCALLTYPE BeginFigure(D2D1_POINT_2F startPoint, D2D1_FIGURE_BEG
IN figureBegin) override; |
38 void STDMETHODCALLTYPE AddLines(const D2D1_POINT_2F *points, UINT pointsCoun
t) SK_OVERRIDE; | 38 void STDMETHODCALLTYPE AddLines(const D2D1_POINT_2F *points, UINT pointsCoun
t) override; |
39 void STDMETHODCALLTYPE AddBeziers(const D2D1_BEZIER_SEGMENT *beziers, UINT b
eziersCount) SK_OVERRIDE; | 39 void STDMETHODCALLTYPE AddBeziers(const D2D1_BEZIER_SEGMENT *beziers, UINT b
eziersCount) override; |
40 void STDMETHODCALLTYPE EndFigure(D2D1_FIGURE_END figureEnd) SK_OVERRIDE; | 40 void STDMETHODCALLTYPE EndFigure(D2D1_FIGURE_END figureEnd) override; |
41 HRESULT STDMETHODCALLTYPE Close() SK_OVERRIDE; | 41 HRESULT STDMETHODCALLTYPE Close() 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 |