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

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

Issue 17381008: More general version of image filtering; reworked to be robust and easier to SSE (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Separate implementation of downsampling for high quality results Created 7 years, 5 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
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 25 matching lines...) Expand all
36 struct SkPoint; 36 struct SkPoint;
37 class SkRasterizer; 37 class SkRasterizer;
38 class SkShader; 38 class SkShader;
39 class SkTypeface; 39 class SkTypeface;
40 40
41 typedef const SkGlyph& (*SkDrawCacheProc)(SkGlyphCache*, const char**, 41 typedef const SkGlyph& (*SkDrawCacheProc)(SkGlyphCache*, const char**,
42 SkFixed x, SkFixed y); 42 SkFixed x, SkFixed y);
43 43
44 typedef const SkGlyph& (*SkMeasureCacheProc)(SkGlyphCache*, const char**); 44 typedef const SkGlyph& (*SkMeasureCacheProc)(SkGlyphCache*, const char**);
45 45
46 #define kBicubicFilterBitmap_Flag kHighQualityFilterBitmap_Flag
47
46 /** \class SkPaint 48 /** \class SkPaint
47 49
48 The SkPaint class holds the style and color information about how to draw 50 The SkPaint class holds the style and color information about how to draw
49 geometries, text and bitmaps. 51 geometries, text and bitmaps.
50 */ 52 */
51 class SK_API SkPaint { 53 class SK_API SkPaint {
52 public: 54 public:
53 SkPaint(); 55 SkPaint();
54 SkPaint(const SkPaint& paint); 56 SkPaint(const SkPaint& paint);
55 ~SkPaint(); 57 ~SkPaint();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 kStrikeThruText_Flag = 0x10, //!< mask to enable strike-thru text 103 kStrikeThruText_Flag = 0x10, //!< mask to enable strike-thru text
102 kFakeBoldText_Flag = 0x20, //!< mask to enable fake-bold text 104 kFakeBoldText_Flag = 0x20, //!< mask to enable fake-bold text
103 kLinearText_Flag = 0x40, //!< mask to enable linear-text 105 kLinearText_Flag = 0x40, //!< mask to enable linear-text
104 kSubpixelText_Flag = 0x80, //!< mask to enable subpixel text positi oning 106 kSubpixelText_Flag = 0x80, //!< mask to enable subpixel text positi oning
105 kDevKernText_Flag = 0x100, //!< mask to enable device kerning text 107 kDevKernText_Flag = 0x100, //!< mask to enable device kerning text
106 kLCDRenderText_Flag = 0x200, //!< mask to enable subpixel glyph rende rering 108 kLCDRenderText_Flag = 0x200, //!< mask to enable subpixel glyph rende rering
107 kEmbeddedBitmapText_Flag = 0x400, //!< mask to enable embedded bitmap st rikes 109 kEmbeddedBitmapText_Flag = 0x400, //!< mask to enable embedded bitmap st rikes
108 kAutoHinting_Flag = 0x800, //!< mask to force Freetype's autohinter 110 kAutoHinting_Flag = 0x800, //!< mask to force Freetype's autohinter
109 kVerticalText_Flag = 0x1000, 111 kVerticalText_Flag = 0x1000,
110 kGenA8FromLCD_Flag = 0x2000, // hack for GDI -- do not use if you can help it 112 kGenA8FromLCD_Flag = 0x2000, // hack for GDI -- do not use if you can help it
111 kBicubicFilterBitmap_Flag = 0x4000, // temporary flag 113 kHighQualityFilterBitmap_Flag = 0x4000, // temporary flag
112 114
113 // when adding extra flags, note that the fFlags member is specified 115 // when adding extra flags, note that the fFlags member is specified
114 // with a bit-width and you'll have to expand it. 116 // with a bit-width and you'll have to expand it.
115 117
116 kAllFlags = 0x7FFF 118 kAllFlags = 0x7FFF
117 }; 119 };
118 120
119 /** Return the paint's flags. Use the Flag enum to test flag values. 121 /** Return the paint's flags. Use the Flag enum to test flag values.
120 @return the paint's flags (see enums ending in _Flag for bit masks) 122 @return the paint's flags (see enums ending in _Flag for bit masks)
121 */ 123 */
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 #ifdef SK_BUILD_FOR_ANDROID 1060 #ifdef SK_BUILD_FOR_ANDROID
1059 SkPaintOptionsAndroid fPaintOptionsAndroid; 1061 SkPaintOptionsAndroid fPaintOptionsAndroid;
1060 1062
1061 // In order for the == operator to work properly this must be the last field 1063 // In order for the == operator to work properly this must be the last field
1062 // in the struct so that we can do a memcmp to this field's offset. 1064 // in the struct so that we can do a memcmp to this field's offset.
1063 uint32_t fGenerationID; 1065 uint32_t fGenerationID;
1064 #endif 1066 #endif
1065 }; 1067 };
1066 1068
1067 #endif 1069 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698