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

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

Issue 677453002: Remove android specific genID from SkPaint. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 /** Return the path (outline) for the specified text. 914 /** Return the path (outline) for the specified text.
915 Note: just like SkCanvas::drawText, this will respect the Align setting 915 Note: just like SkCanvas::drawText, this will respect the Align setting
916 in the paint. 916 in the paint.
917 */ 917 */
918 void getTextPath(const void* text, size_t length, SkScalar x, SkScalar y, 918 void getTextPath(const void* text, size_t length, SkScalar x, SkScalar y,
919 SkPath* path) const; 919 SkPath* path) const;
920 920
921 void getPosTextPath(const void* text, size_t length, 921 void getPosTextPath(const void* text, size_t length,
922 const SkPoint pos[], SkPath* path) const; 922 const SkPoint pos[], SkPath* path) const;
923 923
924 #ifdef SK_BUILD_FOR_ANDROID
925 uint32_t getGenerationID() const;
926 void setGenerationID(uint32_t generationID);
927 #endif
928
929 // returns true if the paint's settings (e.g. xfermode + alpha) resolve to 924 // returns true if the paint's settings (e.g. xfermode + alpha) resolve to
930 // mean that we need not draw at all (e.g. SrcOver + 0-alpha) 925 // mean that we need not draw at all (e.g. SrcOver + 0-alpha)
931 bool nothingToDraw() const; 926 bool nothingToDraw() const;
932 927
933 /////////////////////////////////////////////////////////////////////////// 928 ///////////////////////////////////////////////////////////////////////////
934 // would prefer to make these private... 929 // would prefer to make these private...
935 930
936 /** Returns true if the current paint settings allow for fast computation of 931 /** Returns true if the current paint settings allow for fast computation of
937 bounds (i.e. there is nothing complex like a patheffect that would make 932 bounds (i.e. there is nothing complex like a patheffect that would make
938 the bounds computation expensive. 933 the bounds computation expensive.
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 friend class SkDraw; 1097 friend class SkDraw;
1103 friend class SkGraphics; // So Term() can be called. 1098 friend class SkGraphics; // So Term() can be called.
1104 friend class SkPDFDevice; 1099 friend class SkPDFDevice;
1105 friend class GrBitmapTextContext; 1100 friend class GrBitmapTextContext;
1106 friend class GrDistanceFieldTextContext; 1101 friend class GrDistanceFieldTextContext;
1107 friend class GrStencilAndCoverTextContext; 1102 friend class GrStencilAndCoverTextContext;
1108 friend class GrPathRendering; 1103 friend class GrPathRendering;
1109 friend class GrGLPathRendering; 1104 friend class GrGLPathRendering;
1110 friend class SkTextToPathIter; 1105 friend class SkTextToPathIter;
1111 friend class SkCanonicalizePaint; 1106 friend class SkCanonicalizePaint;
1112
1113 #ifdef SK_BUILD_FOR_ANDROID
1114 // In order for the == operator to work properly this must be the last field
1115 // in the struct so that we can do a memcmp to this field's offset.
1116 uint32_t fGenerationID;
1117 #endif
1118 }; 1107 };
1119 1108
1120 #endif 1109 #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