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

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

Issue 197763008: Allow toString capability to be toggled independent of developer mode (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: remove gyp changes Created 6 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkMatrix.h ('k') | include/core/SkShader.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 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 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
1025 if (skewX) { 1025 if (skewX) {
1026 matrix->postSkew(skewX, 0); 1026 matrix->postSkew(skewX, 0);
1027 } 1027 }
1028 return matrix; 1028 return matrix;
1029 } 1029 }
1030 1030
1031 SkMatrix* setTextMatrix(SkMatrix* matrix) const { 1031 SkMatrix* setTextMatrix(SkMatrix* matrix) const {
1032 return SetTextMatrix(matrix, fTextSize, fTextScaleX, fTextSkewX); 1032 return SetTextMatrix(matrix, fTextSize, fTextScaleX, fTextSkewX);
1033 } 1033 }
1034 1034
1035 SkDEVCODE(void toString(SkString*) const;) 1035 SK_TO_STRING_NONVIRT()
1036 1036
1037 struct FlatteningTraits { 1037 struct FlatteningTraits {
1038 static void Flatten(SkWriteBuffer& buffer, const SkPaint& paint); 1038 static void Flatten(SkWriteBuffer& buffer, const SkPaint& paint);
1039 static void Unflatten(SkReadBuffer& buffer, SkPaint* paint); 1039 static void Unflatten(SkReadBuffer& buffer, SkPaint* paint);
1040 }; 1040 };
1041 1041
1042 private: 1042 private:
1043 SkTypeface* fTypeface; 1043 SkTypeface* fTypeface;
1044 SkScalar fTextSize; 1044 SkScalar fTextSize;
1045 SkScalar fTextScaleX; 1045 SkScalar fTextScaleX;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 #ifdef SK_BUILD_FOR_ANDROID 1147 #ifdef SK_BUILD_FOR_ANDROID
1148 SkPaintOptionsAndroid fPaintOptionsAndroid; 1148 SkPaintOptionsAndroid fPaintOptionsAndroid;
1149 1149
1150 // In order for the == operator to work properly this must be the last field 1150 // In order for the == operator to work properly this must be the last field
1151 // in the struct so that we can do a memcmp to this field's offset. 1151 // in the struct so that we can do a memcmp to this field's offset.
1152 uint32_t fGenerationID; 1152 uint32_t fGenerationID;
1153 #endif 1153 #endif
1154 }; 1154 };
1155 1155
1156 #endif 1156 #endif
OLDNEW
« no previous file with comments | « include/core/SkMatrix.h ('k') | include/core/SkShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698