aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
Commit message (Collapse)AuthorAge
...
* add 'r' (rotate) 's' (scale) options to SampleApp to test those matrix ops onGravatar reed@android.com2009-08-14
| | | | | | | | | | | | all slides add beforeChild/afterChild methods for parents to wack the canvas before/after it draws. These are called after the std child-view translate and clip, unlike beforeChildren/afterChildren git-svn-id: http://skia.googlecode.com/svn/trunk@324 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove assertion in getAddrLCD.Gravatar agl@chromium.org2009-08-11
| | | | | | | | | | | Because the underlying mask extends a pixel to the left and right (or top and bottom on vertical LCDs), the requested pixel can actaully be one pixel outside the bounds, thus this assertion is incorrect. http://codereview.appspot.com/105077 git-svn-id: http://skia.googlecode.com/svn/trunk@312 2bbb7eff-a529-9590-31e7-b0007b416f81
* add -forceFilter to bench toolGravatar reed@android.com2009-08-04
| | | | | | | | move some utils out of effects/ git-svn-id: http://skia.googlecode.com/svn/trunk@307 2bbb7eff-a529-9590-31e7-b0007b416f81
* add GetFileName api to SkFontHostGravatar reed@android.com2009-07-31
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@299 2bbb7eff-a529-9590-31e7-b0007b416f81
* ws fixesGravatar reed@android.com2009-07-27
| | | | | | | | use enum in getHinting() function, rather than hard-coded constants git-svn-id: http://skia.googlecode.com/svn/trunk@290 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove const from function return-type signature (useless, and generates gccGravatar reed@android.com2009-07-23
| | | | | | | | warnings) git-svn-id: http://skia.googlecode.com/svn/trunk@286 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add SkFontHost::FilterRect() which allows the font host to filter our requestGravatar reed@android.com2009-07-22
| | | | | | | | | | before we turn it into a font-cache entry, for the cases where the scaler will ignore and/or collapse certain feature requests (e.g. doesn't support all levels of hinting) git-svn-id: http://skia.googlecode.com/svn/trunk@283 2bbb7eff-a529-9590-31e7-b0007b416f81
* rename SK_BUILD_SUBPIXEL to SK_SUPPORT_LCDTEXT to better match the name of theGravatar reed@android.com2009-07-22
| | | | | | | | | | | | feature (since we already have subpixel text support) fix some debug-compile problems update Makefile for lcd files git-svn-id: http://skia.googlecode.com/svn/trunk@282 2bbb7eff-a529-9590-31e7-b0007b416f81
* Typo fix.Gravatar agl@chromium.org2009-07-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@279 2bbb7eff-a529-9590-31e7-b0007b416f81
* Subpixel glyph rendering support.Gravatar agl@chromium.org2009-07-21
| | | | | | | | | | | | | | | | This patch adds support for rendering subpixel glyphs (using Freetype). In order to control this rendering see SkPaint::setLCDRenderText in SkPaint.h. To setup the LCD mode, see SkFontHost::SetSubpixelOrientation and SkFontHost::SetSubpixelOrder in SkFontHost.h. This patch also adds more fine grained control over hinting (again, only for Freetype currently). One can now control the hinting with SkPaint::setHinting. git-svn-id: http://skia.googlecode.com/svn/trunk@275 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove conditional build flag for mipmapsGravatar reed@android.com2009-07-17
| | | | | | | | remove obsolete SkBitmapShader.cpp file git-svn-id: http://skia.googlecode.com/svn/trunk@271 2bbb7eff-a529-9590-31e7-b0007b416f81
* respect preferred config when png is index-basedGravatar reed@android.com2009-07-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@261 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix (aaaargh) white-spaceGravatar reed@android.com2009-07-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@260 2bbb7eff-a529-9590-31e7-b0007b416f81
* add dox for scalarcomparetypeGravatar reed@android.com2009-07-08
| | | | | | | | | use internal mutable version of drawPath when we've cons'd up a path on behalf of a rect git-svn-id: http://skia.googlecode.com/svn/trunk@258 2bbb7eff-a529-9590-31e7-b0007b416f81
* more checks for null shapes in picturesGravatar reed@android.com2009-07-03
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@249 2bbb7eff-a529-9590-31e7-b0007b416f81
* use sk_bzero instead of bzero, since it isn't always available.Gravatar reed@android.com2009-06-29
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@244 2bbb7eff-a529-9590-31e7-b0007b416f81
* add unittest for matrix::flattenGravatar reed@android.com2009-06-29
| | | | | | | | | define constant for max value flatten/unflatten can return (so clients can put the buffer on the stack) git-svn-id: http://skia.googlecode.com/svn/trunk@243 2bbb7eff-a529-9590-31e7-b0007b416f81
* add shape flatten so they work properly in picturesGravatar reed@android.com2009-06-29
| | | | | | | | add flatten/unflatten to matrix git-svn-id: http://skia.googlecode.com/svn/trunk@242 2bbb7eff-a529-9590-31e7-b0007b416f81
* detect nearly translate-only matrices when drawing bitmaps (for speed)Gravatar reed@android.com2009-06-24
| | | | | | | | | rename setXfermode(Mode) to setXfermodeMode(Mode) for sanity fix memory leak in setXfermode(Mode) git-svn-id: http://skia.googlecode.com/svn/trunk@239 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove remaining references to porterduffGravatar reed@android.com2009-06-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@236 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove deprecated use of porterduff enumGravatar reed@android.com2009-06-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@235 2bbb7eff-a529-9590-31e7-b0007b416f81
* move xfermode modes from porterduff into xfermode itselfGravatar reed@android.com2009-06-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@232 2bbb7eff-a529-9590-31e7-b0007b416f81
* almost there on gm (need to fix image writes/reads/compares)Gravatar reed@android.com2009-06-21
| | | | | | | | | move SkAutoGraphics into SkGraphics.h add [] operators to SkString git-svn-id: http://skia.googlecode.com/svn/trunk@228 2bbb7eff-a529-9590-31e7-b0007b416f81
* add width()/height() gettersGravatar reed@android.com2009-06-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@226 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix MSVC builds by avoiding a uint to bool warning.Gravatar deanm@chromium.org2009-06-18
| | | | | | | | | warning C4800: 'const uint8_t' : forcing value to bool 'true' or 'false' (performance warning) Review URL: http://codereview.appspot.com/79043 git-svn-id: http://skia.googlecode.com/svn/trunk@220 2bbb7eff-a529-9590-31e7-b0007b416f81
* ws fixesGravatar reed@android.com2009-06-15
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@217 2bbb7eff-a529-9590-31e7-b0007b416f81
* add optional Format* parameter to decoder helper functions.Gravatar reed@android.com2009-06-15
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@215 2bbb7eff-a529-9590-31e7-b0007b416f81
* add shader flag kConstInY_FlagGravatar reed@android.com2009-06-12
| | | | | | | | | | | this signals blitters that the shader will return the same results for a given x value, independent of y. Useful inside blitRect(), where it can cache the first call to shadeSpan() and reuse it on all subsequent scans. Works with (non-rotated) linear-gradients, and Nx1 bitmaps. git-svn-id: http://skia.googlecode.com/svn/trunk@214 2bbb7eff-a529-9590-31e7-b0007b416f81
* add equals()Gravatar reed@android.com2009-06-12
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@210 2bbb7eff-a529-9590-31e7-b0007b416f81
* only call SkDevice::gainFocus() if we're actually drawing to a different device.Gravatar reed@android.com2009-06-10
| | | | | | | | Saves overhead when using GL. git-svn-id: http://skia.googlecode.com/svn/trunk@207 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SkParsePath to go to/from SVG strings (e.g. "M0,0 L10,20")Gravatar reed@android.com2009-06-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@203 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix dumpcanvas to recurse on pictures and shapesGravatar reed@android.com2009-06-05
| | | | | | | | add cached bitmap for gradients to avoid thrashing textures in gl git-svn-id: http://skia.googlecode.com/svn/trunk@201 2bbb7eff-a529-9590-31e7-b0007b416f81
* add isConvex() hit to SkPath, to be used to speed up fills and openglGravatar reed@android.com2009-06-03
| | | | | | | | | | set linewidth in gldevice for hair rects remove some cruft from samples add more gl-unimpl messages git-svn-id: http://skia.googlecode.com/svn/trunk@199 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix trailing-wsGravatar reed@android.com2009-05-29
| | | | | | | | initialize fFlags in bitmapprocshader git-svn-id: http://skia.googlecode.com/svn/trunk@191 2bbb7eff-a529-9590-31e7-b0007b416f81
* update SDL port to support OpenGLGravatar reed@android.com2009-05-29
| | | | | | | | | need to separate out SK_BUILD_FOR_MAC when we need to know where certain OS headers are, and SK_BUILD_FOR_SDL when we are choosing an SkOSWindow variant... git-svn-id: http://skia.googlecode.com/svn/trunk@190 2bbb7eff-a529-9590-31e7-b0007b416f81
* animate matrixref in sample shapesGravatar reed@android.com2009-05-27
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@189 2bbb7eff-a529-9590-31e7-b0007b416f81
* move shapes subclasses into effectsGravatar reed@android.com2009-05-27
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@188 2bbb7eff-a529-9590-31e7-b0007b416f81
* create offscreen surface so we can set its RGB ordering to match our internalsGravatar reed@android.com2009-05-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@187 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SDL supportGravatar reed@android.com2009-05-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@182 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SkSafeRef / SkSafeUnref as inline static functions, to use in place of ourGravatar reed@android.com2009-05-22
| | | | | | | | | | | existing obj->safeRef(), which is unsafe since it can its 'if (this)' can be optimized away by some compilers. fix some overflows in mimpmap generation git-svn-id: http://skia.googlecode.com/svn/trunk@181 2bbb7eff-a529-9590-31e7-b0007b416f81
* shapes checkpoint: move matrix into groupshape and out of shapeGravatar reed@android.com2009-05-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@178 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SkSize for dimensionsGravatar reed@android.com2009-05-13
| | | | | | | | | add SkShape baseclass, in the hopes of having SkPicture inherit from that, and also using shapes as the extension mechanism for things like animated-gif git-svn-id: http://skia.googlecode.com/svn/trunk@174 2bbb7eff-a529-9590-31e7-b0007b416f81
* Honor pref config in image decoding whenever possible.Gravatar weita@google.com2009-05-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@173 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SkSize for dimensionsGravatar reed@android.com2009-05-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@172 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SK_USE_OLD_255_TO_256 define to disable alpha+1 change to SkAlpha255To256Gravatar reed@android.com2009-05-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@171 2bbb7eff-a529-9590-31e7-b0007b416f81
* add canCopyTo(), to preflight if copyTo can succeed. update unittests for itGravatar reed@android.com2009-05-06
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@169 2bbb7eff-a529-9590-31e7-b0007b416f81
* Allow copying an Index8 bitmap when srcConfig and dstConfig are bothGravatar weita@google.com2009-05-03
| | | | | | | | | | Index8. Also, change the logic of SkBitmap.copyTo() to do memcpy() if srcConfig and dstConfig are the same. git-svn-id: http://skia.googlecode.com/svn/trunk@164 2bbb7eff-a529-9590-31e7-b0007b416f81
* add ADD xfermodeGravatar reed@android.com2009-04-24
| | | | | | | | safely handle (don't draw) if the size of SkMask exceeds 31bits git-svn-id: http://skia.googlecode.com/svn/trunk@159 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sync with Chromium's forkGravatar agl@chromium.org2009-04-22
| | | | | | | | | | | | | | | | * Add the following font metrics fields: + fAvgCharWidth + fXMin + fXMax + fXHeight * Add \#if 0'ed includes for the Freetype headers for Xcode, scons and other tools which chase headers. * Correctly render 1bpp fonts (mostly Chinese fonts at small sizes) git-svn-id: http://skia.googlecode.com/svn/trunk@157 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SkSfntUtils to parse some known truetype tablesGravatar reed@android.com2009-04-14
| | | | | | | | | | add comments and cleanup to count_tables in SkFontHost_tables.cpp fix transparency bug in gifs use (alpha+1) for blending in srcover mode, to ensure opaque results git-svn-id: http://skia.googlecode.com/svn/trunk@155 2bbb7eff-a529-9590-31e7-b0007b416f81