Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: include/core/SkPath.h

Issue 351833003: add path dump test (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: generate a single line feed (or none if empty) Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/core/SkClipStack.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPath_DEFINED 10 #ifndef SkPath_DEFINED
11 #define SkPath_DEFINED 11 #define SkPath_DEFINED
12 12
13 #include "SkInstCnt.h" 13 #include "SkInstCnt.h"
14 #include "SkMatrix.h" 14 #include "SkMatrix.h"
15 #include "SkPathRef.h" 15 #include "SkPathRef.h"
16 #include "SkTDArray.h" 16 #include "SkTDArray.h"
17 #include "SkRefCnt.h" 17 #include "SkRefCnt.h"
18 18
19 class SkReader32; 19 class SkReader32;
20 class SkWriter32; 20 class SkWriter32;
21 class SkAutoPathBoundsUpdate; 21 class SkAutoPathBoundsUpdate;
22 class SkString; 22 class SkString;
23 class SkRRect; 23 class SkRRect;
24 class SkWStream;
24 25
25 /** \class SkPath 26 /** \class SkPath
26 27
27 The SkPath class encapsulates compound (multiple contour) geometric paths 28 The SkPath class encapsulates compound (multiple contour) geometric paths
28 consisting of straight line segments, quadratic curves, and cubic curves. 29 consisting of straight line segments, quadratic curves, and cubic curves.
29 */ 30 */
30 class SK_API SkPath { 31 class SK_API SkPath {
31 public: 32 public:
32 SK_DECLARE_INST_COUNT_ROOT(SkPath); 33 SK_DECLARE_INST_COUNT_ROOT(SkPath);
33 34
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 SkPoint fMoveTo; 924 SkPoint fMoveTo;
924 SkPoint fLastPt; 925 SkPoint fLastPt;
925 }; 926 };
926 927
927 /** 928 /**
928 * Returns true if the point { x, y } is contained by the path, taking into 929 * Returns true if the point { x, y } is contained by the path, taking into
929 * account the FillType. 930 * account the FillType.
930 */ 931 */
931 bool contains(SkScalar x, SkScalar y) const; 932 bool contains(SkScalar x, SkScalar y) const;
932 933
933 void dump(bool forceClose, const char title[] = NULL) const; 934 void dump(SkWStream* , bool forceClose) const;
934 void dump() const; 935 void dump() const;
935 936
936 /** 937 /**
937 * Write the path to the buffer, and return the number of bytes written. 938 * Write the path to the buffer, and return the number of bytes written.
938 * If buffer is NULL, it still returns the number of bytes. 939 * If buffer is NULL, it still returns the number of bytes.
939 */ 940 */
940 size_t writeToMemory(void* buffer) const; 941 size_t writeToMemory(void* buffer) const;
941 /** 942 /**
942 * Initializes the path from the buffer 943 * Initializes the path from the buffer
943 * 944 *
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 } 1041 }
1041 1042
1042 friend class SkAutoPathBoundsUpdate; 1043 friend class SkAutoPathBoundsUpdate;
1043 friend class SkAutoDisableOvalCheck; 1044 friend class SkAutoDisableOvalCheck;
1044 friend class SkAutoDisableDirectionCheck; 1045 friend class SkAutoDisableDirectionCheck;
1045 friend class SkBench_AddPathTest; // perf test reversePathTo 1046 friend class SkBench_AddPathTest; // perf test reversePathTo
1046 friend class PathTest_Private; // unit test reversePathTo 1047 friend class PathTest_Private; // unit test reversePathTo
1047 }; 1048 };
1048 1049
1049 #endif 1050 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkClipStack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698