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

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

Issue 12699002: Upstream changes from Android. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: more fiex Created 7 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/SkBitmap.h ('k') | include/core/SkRRect.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 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 Note: just like SkCanvas::drawText, this will respect the Align setting 843 Note: just like SkCanvas::drawText, this will respect the Align setting
844 in the paint. 844 in the paint.
845 */ 845 */
846 void getTextPath(const void* text, size_t length, SkScalar x, SkScalar y, 846 void getTextPath(const void* text, size_t length, SkScalar x, SkScalar y,
847 SkPath* path) const; 847 SkPath* path) const;
848 848
849 void getPosTextPath(const void* text, size_t length, 849 void getPosTextPath(const void* text, size_t length,
850 const SkPoint pos[], SkPath* path) const; 850 const SkPoint pos[], SkPath* path) const;
851 851
852 #ifdef SK_BUILD_FOR_ANDROID 852 #ifdef SK_BUILD_FOR_ANDROID
853 const SkGlyph& getUnicharMetrics(SkUnichar); 853 const SkGlyph& getUnicharMetrics(SkUnichar, const SkMatrix*);
854 const SkGlyph& getGlyphMetrics(uint16_t); 854 const SkGlyph& getGlyphMetrics(uint16_t, const SkMatrix*);
855 const void* findImage(const SkGlyph&); 855 const void* findImage(const SkGlyph&, const SkMatrix*);
856 856
857 uint32_t getGenerationID() const; 857 uint32_t getGenerationID() const;
858 void setGenerationID(uint32_t generationID);
858 859
859 /** Returns the base glyph count for the strike associated with this paint 860 /** Returns the base glyph count for the strike associated with this paint
860 */ 861 */
861 unsigned getBaseGlyphCount(SkUnichar text) const; 862 unsigned getBaseGlyphCount(SkUnichar text) const;
862 #endif 863 #endif
863 864
864 // returns true if the paint's settings (e.g. xfermode + alpha) resolve to 865 // returns true if the paint's settings (e.g. xfermode + alpha) resolve to
865 // mean that we need not draw at all (e.g. SrcOver + 0-alpha) 866 // mean that we need not draw at all (e.g. SrcOver + 0-alpha)
866 bool nothingToDraw() const; 867 bool nothingToDraw() const;
867 868
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 friend class SkTextToPathIter; 990 friend class SkTextToPathIter;
990 991
991 #ifdef SK_BUILD_FOR_ANDROID 992 #ifdef SK_BUILD_FOR_ANDROID
992 // In order for the == operator to work properly this must be the last field 993 // In order for the == operator to work properly this must be the last field
993 // in the struct so that we can do a memcmp to this field's offset. 994 // in the struct so that we can do a memcmp to this field's offset.
994 uint32_t fGenerationID; 995 uint32_t fGenerationID;
995 #endif 996 #endif
996 }; 997 };
997 998
998 #endif 999 #endif
OLDNEW
« no previous file with comments | « include/core/SkBitmap.h ('k') | include/core/SkRRect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698