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

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

Issue 571973003: add dumpHex() option to SkPath (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove dummy function Created 6 years, 3 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
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 SkPoint fMoveTo; 924 SkPoint fMoveTo;
925 SkPoint fLastPt; 925 SkPoint fLastPt;
926 }; 926 };
927 927
928 /** 928 /**
929 * 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
930 * account the FillType. 930 * account the FillType.
931 */ 931 */
932 bool contains(SkScalar x, SkScalar y) const; 932 bool contains(SkScalar x, SkScalar y) const;
933 933
934 void dump(SkWStream* , bool forceClose) const; 934 void dump(SkWStream* , bool forceClose, bool dumpAsHex) const;
935 void dump() const; 935 void dump() const;
936 void dumpHex() const;
936 937
937 /** 938 /**
938 * Write the path to the buffer, and return the number of bytes written. 939 * Write the path to the buffer, and return the number of bytes written.
939 * If buffer is NULL, it still returns the number of bytes. 940 * If buffer is NULL, it still returns the number of bytes.
940 */ 941 */
941 size_t writeToMemory(void* buffer) const; 942 size_t writeToMemory(void* buffer) const;
942 /** 943 /**
943 * Initializes the path from the buffer 944 * Initializes the path from the buffer
944 * 945 *
945 * @param buffer Memory to read from 946 * @param buffer Memory to read from
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 } 1042 }
1042 1043
1043 friend class SkAutoPathBoundsUpdate; 1044 friend class SkAutoPathBoundsUpdate;
1044 friend class SkAutoDisableOvalCheck; 1045 friend class SkAutoDisableOvalCheck;
1045 friend class SkAutoDisableDirectionCheck; 1046 friend class SkAutoDisableDirectionCheck;
1046 friend class SkBench_AddPathTest; // perf test reversePathTo 1047 friend class SkBench_AddPathTest; // perf test reversePathTo
1047 friend class PathTest_Private; // unit test reversePathTo 1048 friend class PathTest_Private; // unit test reversePathTo
1048 }; 1049 };
1049 1050
1050 #endif 1051 #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