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

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

Issue 1041953002: Switch to one single bitmap text blob cache allocation (Closed) Base URL: https://skia.googlesource.com/skia.git@bmptext2
Patch Set: third attempt Created 5 years, 8 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/SkDescriptor.h » ('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 class SkAnnotation; 17 class SkAnnotation;
18 class SkAutoDescriptor;
18 class SkAutoGlyphCache; 19 class SkAutoGlyphCache;
19 class SkColorFilter; 20 class SkColorFilter;
20 class SkData; 21 class SkData;
21 class SkDescriptor; 22 class SkDescriptor;
22 struct SkDeviceProperties; 23 struct SkDeviceProperties;
23 class SkReadBuffer; 24 class SkReadBuffer;
24 class SkWriteBuffer; 25 class SkWriteBuffer;
25 class SkGlyph; 26 class SkGlyph;
26 struct SkRect; 27 struct SkRect;
27 class SkGlyphCache; 28 class SkGlyphCache;
(...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 SkDrawCacheProc getDrawCacheProc() const; 1059 SkDrawCacheProc getDrawCacheProc() const;
1059 SkMeasureCacheProc getMeasureCacheProc(bool needFullMetrics) const; 1060 SkMeasureCacheProc getMeasureCacheProc(bool needFullMetrics) const;
1060 1061
1061 SkScalar measure_text(SkGlyphCache*, const char* text, size_t length, 1062 SkScalar measure_text(SkGlyphCache*, const char* text, size_t length,
1062 int* count, SkRect* bounds) const; 1063 int* count, SkRect* bounds) const;
1063 1064
1064 /* 1065 /*
1065 * Allocs an SkDescriptor on the heap and return it to the caller as a refcn ted 1066 * Allocs an SkDescriptor on the heap and return it to the caller as a refcn ted
1066 * SkData. Caller is responsible for managing the lifetime of this object. 1067 * SkData. Caller is responsible for managing the lifetime of this object.
1067 */ 1068 */
1068 const SkData* getScalerContextDescriptor(const SkDeviceProperties* devicePro perties, 1069 void getScalerContextDescriptor(SkAutoDescriptor*, const SkDeviceProperties* deviceProperties,
1069 const SkMatrix*, bool ignoreGamma) const; 1070 const SkMatrix*, bool ignoreGamma) const;
1070 1071
1071 SkGlyphCache* detachCache(const SkDeviceProperties* deviceProperties, const SkMatrix*, 1072 SkGlyphCache* detachCache(const SkDeviceProperties* deviceProperties, const SkMatrix*,
1072 bool ignoreGamma) const; 1073 bool ignoreGamma) const;
1073 1074
1074 void descriptorProc(const SkDeviceProperties* deviceProperties, const SkMatr ix* deviceMatrix, 1075 void descriptorProc(const SkDeviceProperties* deviceProperties, const SkMatr ix* deviceMatrix,
1075 void (*proc)(SkTypeface*, const SkDescriptor*, void*), 1076 void (*proc)(SkTypeface*, const SkDescriptor*, void*),
1076 void* context, bool ignoreGamma = false) const; 1077 void* context, bool ignoreGamma = false) const;
1077 1078
1078 static void Term(); 1079 static void Term();
1079 1080
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 friend class GrDistanceFieldTextContext; 1127 friend class GrDistanceFieldTextContext;
1127 friend class GrStencilAndCoverTextContext; 1128 friend class GrStencilAndCoverTextContext;
1128 friend class GrPathRendering; 1129 friend class GrPathRendering;
1129 friend class GrTextContext; 1130 friend class GrTextContext;
1130 friend class GrGLPathRendering; 1131 friend class GrGLPathRendering;
1131 friend class SkTextToPathIter; 1132 friend class SkTextToPathIter;
1132 friend class SkCanonicalizePaint; 1133 friend class SkCanonicalizePaint;
1133 }; 1134 };
1134 1135
1135 #endif 1136 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkDescriptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698