Chromium Code Reviews

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

Issue 85653004: Move distance field font code into SkGpuDevice (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 1
2 2
3 /* 3 /*
4 * Copyright 2006 The Android Open Source Project 4 * Copyright 2006 The Android Open Source Project
5 * 5 *
6 * Use of this source code is governed by a BSD-style license that can be 6 * Use of this source code is governed by a BSD-style license that can be
7 * found in the LICENSE file. 7 * found in the LICENSE file.
8 */ 8 */
9 9
10 10
(...skipping 1051 matching lines...)
1062 static const SkScalar kMaxSize = SkIntToScalar(kMaxSizeForGlyphCache); 1062 static const SkScalar kMaxSize = SkIntToScalar(kMaxSizeForGlyphCache);
1063 static const SkScalar kMag2Max = kMaxSize * kMaxSize; 1063 static const SkScalar kMag2Max = kMaxSize * kMaxSize;
1064 return kMag2Max; 1064 return kMag2Max;
1065 } 1065 }
1066 1066
1067 friend class SkAutoGlyphCache; 1067 friend class SkAutoGlyphCache;
1068 friend class SkCanvas; 1068 friend class SkCanvas;
1069 friend class SkDraw; 1069 friend class SkDraw;
1070 friend class SkGraphics; // So Term() can be called. 1070 friend class SkGraphics; // So Term() can be called.
1071 friend class SkPDFDevice; 1071 friend class SkPDFDevice;
1072 friend class SkGpuDevice;
1072 friend class SkTextToPathIter; 1073 friend class SkTextToPathIter;
1073 friend class SkCanonicalizePaint; 1074 friend class SkCanonicalizePaint;
1074 1075
1075 #ifdef SK_BUILD_FOR_ANDROID 1076 #ifdef SK_BUILD_FOR_ANDROID
1076 SkPaintOptionsAndroid fPaintOptionsAndroid; 1077 SkPaintOptionsAndroid fPaintOptionsAndroid;
1077 1078
1078 // In order for the == operator to work properly this must be the last field 1079 // In order for the == operator to work properly this must be the last field
1079 // in the struct so that we can do a memcmp to this field's offset. 1080 // in the struct so that we can do a memcmp to this field's offset.
1080 uint32_t fGenerationID; 1081 uint32_t fGenerationID;
1081 #endif 1082 #endif
1082 }; 1083 };
1083 1084
1084 #endif 1085 #endif
OLDNEW

Powered by Google App Engine