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

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

Issue 1005103003: Small change to add a callto retrieve a malloc SkDescriptor from SkPaint (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: change name Created 5 years, 9 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/SkPaint.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 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 SkPaint_DEFINED 8 #ifndef SkPaint_DEFINED
9 #define SkPaint_DEFINED 9 #define SkPaint_DEFINED
10 10
11 #include "SkColor.h" 11 #include "SkColor.h"
12 #include "SkDrawLooper.h" 12 #include "SkDrawLooper.h"
13 #include "SkFilterQuality.h" 13 #include "SkFilterQuality.h"
14 #include "SkMatrix.h" 14 #include "SkMatrix.h"
15 #include "SkXfermode.h" 15 #include "SkXfermode.h"
16 16
17 // TODO: clean up Skia internals so we can remove this and only keep it for clie nts 17 // TODO: clean up Skia internals so we can remove this and only keep it for clie nts
18 #define SK_SUPPORT_LEGACY_FILTERLEVEL_ENUM 18 #define SK_SUPPORT_LEGACY_FILTERLEVEL_ENUM
19 19
20 class SkAnnotation; 20 class SkAnnotation;
21 class SkAutoGlyphCache; 21 class SkAutoGlyphCache;
22 class SkColorFilter; 22 class SkColorFilter;
23 class SkData;
23 class SkDescriptor; 24 class SkDescriptor;
24 struct SkDeviceProperties; 25 struct SkDeviceProperties;
25 class SkReadBuffer; 26 class SkReadBuffer;
26 class SkWriteBuffer; 27 class SkWriteBuffer;
27 class SkGlyph; 28 class SkGlyph;
28 struct SkRect; 29 struct SkRect;
29 class SkGlyphCache; 30 class SkGlyphCache;
30 class SkImageFilter; 31 class SkImageFilter;
31 class SkMaskFilter; 32 class SkMaskFilter;
32 class SkPath; 33 class SkPath;
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 } fBitfields; 1074 } fBitfields;
1074 uint32_t fBitfieldsUInt; 1075 uint32_t fBitfieldsUInt;
1075 }; 1076 };
1076 1077
1077 SkDrawCacheProc getDrawCacheProc() const; 1078 SkDrawCacheProc getDrawCacheProc() const;
1078 SkMeasureCacheProc getMeasureCacheProc(bool needFullMetrics) const; 1079 SkMeasureCacheProc getMeasureCacheProc(bool needFullMetrics) const;
1079 1080
1080 SkScalar measure_text(SkGlyphCache*, const char* text, size_t length, 1081 SkScalar measure_text(SkGlyphCache*, const char* text, size_t length,
1081 int* count, SkRect* bounds) const; 1082 int* count, SkRect* bounds) const;
1082 1083
1084 /*
1085 * Allocs an SkDescriptor on the heap and return it to the caller as a refcn ted
1086 * SkData. Caller is responsible for managing the lifetime of this object.
1087 */
1088 const SkData* getScalerContextDescriptor(const SkDeviceProperties* devicePro perties,
1089 const SkMatrix*, bool ignoreGamma) const;
1090
1083 SkGlyphCache* detachCache(const SkDeviceProperties* deviceProperties, const SkMatrix*, 1091 SkGlyphCache* detachCache(const SkDeviceProperties* deviceProperties, const SkMatrix*,
1084 bool ignoreGamma) const; 1092 bool ignoreGamma) const;
1085 1093
1086 void descriptorProc(const SkDeviceProperties* deviceProperties, const SkMatr ix* deviceMatrix, 1094 void descriptorProc(const SkDeviceProperties* deviceProperties, const SkMatr ix* deviceMatrix,
1087 void (*proc)(SkTypeface*, const SkDescriptor*, void*), 1095 void (*proc)(SkTypeface*, const SkDescriptor*, void*),
1088 void* context, bool ignoreGamma = false) const; 1096 void* context, bool ignoreGamma = false) const;
1089 1097
1090 static void Term(); 1098 static void Term();
1091 1099
1092 enum { 1100 enum {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 friend class GrBitmapTextContext; 1144 friend class GrBitmapTextContext;
1137 friend class GrDistanceFieldTextContext; 1145 friend class GrDistanceFieldTextContext;
1138 friend class GrStencilAndCoverTextContext; 1146 friend class GrStencilAndCoverTextContext;
1139 friend class GrPathRendering; 1147 friend class GrPathRendering;
1140 friend class GrGLPathRendering; 1148 friend class GrGLPathRendering;
1141 friend class SkTextToPathIter; 1149 friend class SkTextToPathIter;
1142 friend class SkCanonicalizePaint; 1150 friend class SkCanonicalizePaint;
1143 }; 1151 };
1144 1152
1145 #endif 1153 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698