| OLD | NEW |
| 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 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 | 911 |
| 912 /** | 912 /** |
| 913 * Write the region to the buffer, and return the number of bytes written. | 913 * Write the region to the buffer, and return the number of bytes written. |
| 914 * If buffer is NULL, it still returns the number of bytes. | 914 * If buffer is NULL, it still returns the number of bytes. |
| 915 */ | 915 */ |
| 916 uint32_t writeToMemory(void* buffer) const; | 916 uint32_t writeToMemory(void* buffer) const; |
| 917 /** | 917 /** |
| 918 * Initialized the region from the buffer, returning the number | 918 * Initialized the region from the buffer, returning the number |
| 919 * of bytes actually read. | 919 * of bytes actually read. |
| 920 */ | 920 */ |
| 921 uint32_t readFromMemory(const void* buffer); | 921 uint32_t readFromMemory(const void* buffer, uint32_t length); |
| 922 | 922 |
| 923 #ifdef SK_BUILD_FOR_ANDROID | 923 #ifdef SK_BUILD_FOR_ANDROID |
| 924 uint32_t getGenerationID() const; | 924 uint32_t getGenerationID() const; |
| 925 const SkPath* getSourcePath() const; | 925 const SkPath* getSourcePath() const; |
| 926 void setSourcePath(const SkPath* path); | 926 void setSourcePath(const SkPath* path); |
| 927 #endif | 927 #endif |
| 928 | 928 |
| 929 SkDEBUGCODE(void validate() const;) | 929 SkDEBUGCODE(void validate() const;) |
| 930 | 930 |
| 931 private: | 931 private: |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V14_AND_ALL_OTHER_INSTANCES_TO
O | 1016 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V14_AND_ALL_OTHER_INSTANCES_TO
O |
| 1017 friend class SkPathRef; // just for SerializationOffsets | 1017 friend class SkPathRef; // just for SerializationOffsets |
| 1018 #endif | 1018 #endif |
| 1019 friend class SkAutoPathBoundsUpdate; | 1019 friend class SkAutoPathBoundsUpdate; |
| 1020 friend class SkAutoDisableOvalCheck; | 1020 friend class SkAutoDisableOvalCheck; |
| 1021 friend class SkAutoDisableDirectionCheck; | 1021 friend class SkAutoDisableDirectionCheck; |
| 1022 friend class SkBench_AddPathTest; // perf test pathTo/reversePathTo | 1022 friend class SkBench_AddPathTest; // perf test pathTo/reversePathTo |
| 1023 }; | 1023 }; |
| 1024 | 1024 |
| 1025 #endif | 1025 #endif |
| OLD | NEW |