aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
Commit message (Collapse)AuthorAge
* handle overflowGravatar reed@google.com2011-04-18
| | | | | | | | | | note: gradient caller doesn't so we can still draw wrong when the caller converts its initial fx from float->fixed. Perhaps SkClampRange should offer a float interface as well. git-svn-id: http://skia.googlecode.com/svn/trunk@1149 2bbb7eff-a529-9590-31e7-b0007b416f81
* add fFx1 field, returning where to start the iterator for fCount1 rangeGravatar reed@google.com2011-04-18
| | | | | | | | add unittest git-svn-id: http://skia.googlecode.com/svn/trunk@1145 2bbb7eff-a529-9590-31e7-b0007b416f81
* use SkClampRange to speedup clamp iteratorsGravatar reed@google.com2011-04-15
| | | | | | | | speeds up linear gradients 4x git-svn-id: http://skia.googlecode.com/svn/trunk@1139 2bbb7eff-a529-9590-31e7-b0007b416f81
* move headerGravatar reed@google.com2011-04-15
| | | | | | | | fix warning in release build git-svn-id: http://skia.googlecode.com/svn/trunk@1136 2bbb7eff-a529-9590-31e7-b0007b416f81
* Upstream android changes.Gravatar djsollen@google.com2011-04-15
| | | | | | | reviewed by: reed git-svn-id: http://skia.googlecode.com/svn/trunk@1134 2bbb7eff-a529-9590-31e7-b0007b416f81
* experimentalGravatar mike@reedtribe.org2011-04-15
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1132 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SkCanvas::clear(SkColor color) to call the new virtual clear on device.Gravatar reed@google.com2011-04-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1131 2bbb7eff-a529-9590-31e7-b0007b416f81
* rename SkDevice::eraseColor to clear and make virtual.Gravatar bsalomon@google.com2011-04-14
| | | | | | | | | | Properly flush in GrContext before calling GrGpu::clear() Review URL: http://codereview.appspot.com/4419043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1130 2bbb7eff-a529-9590-31e7-b0007b416f81
* add reflection asColorMode to SkColorFilter (for gpu)Gravatar reed@google.com2011-04-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1126 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add genID for SkBitmaps with raw pixelsGravatar bsalomon@google.com2011-04-14
| | | | | | | | Review URL: http://codereview.appspot.com/4413047/ git-svn-id: http://skia.googlecode.com/svn/trunk@1125 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix asMode() to always succeed if the xfermode was built from a ModeGravatar reed@google.com2011-04-13
| | | | | | | | | update dox to reflect this update test git-svn-id: http://skia.googlecode.com/svn/trunk@1121 2bbb7eff-a529-9590-31e7-b0007b416f81
* return Coeff for kPlus_Mode and kMultiply_ModeGravatar reed@google.com2011-04-12
| | | | | | | | now these work correctly on the gpu git-svn-id: http://skia.googlecode.com/svn/trunk@1116 2bbb7eff-a529-9590-31e7-b0007b416f81
* add testing defines to test different blitters for antialiasing (RLE and mask)Gravatar reed@google.com2011-04-11
| | | | | | | | | speed up wide spans for maskblitter by accumulating 4-bytes at a time code style clean up git-svn-id: http://skia.googlecode.com/svn/trunk@1109 2bbb7eff-a529-9590-31e7-b0007b416f81
* code styleGravatar reed@google.com2011-04-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1096 2bbb7eff-a529-9590-31e7-b0007b416f81
* code styleGravatar mike@reedtribe.org2011-04-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1095 2bbb7eff-a529-9590-31e7-b0007b416f81
* balance sk_malloc with sk_free (instead of delete[]) in SkAutoUCS2Gravatar mike@reedtribe.org2011-04-10
| | | | | | | | patch submitted by alean2...@gmail.com git-svn-id: http://skia.googlecode.com/svn/trunk@1094 2bbb7eff-a529-9590-31e7-b0007b416f81
* add init() to SkTLazy to create a default instanceGravatar mike@reedtribe.org2011-04-10
| | | | | | | | use SkLazyPaint in internalDrawBitmap git-svn-id: http://skia.googlecode.com/svn/trunk@1093 2bbb7eff-a529-9590-31e7-b0007b416f81
* coding styleGravatar mike@reedtribe.org2011-04-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1092 2bbb7eff-a529-9590-31e7-b0007b416f81
* coding styleGravatar mike@reedtribe.org2011-04-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1091 2bbb7eff-a529-9590-31e7-b0007b416f81
* coding style updatesGravatar mike@reedtribe.org2011-04-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1090 2bbb7eff-a529-9590-31e7-b0007b416f81
* update coding style - no logic changeGravatar mike@reedtribe.org2011-04-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1089 2bbb7eff-a529-9590-31e7-b0007b416f81
* unbias fy in the gpu glyphproc, since skia has pre-added 1/2 to the valueGravatar reed@google.com2011-04-08
| | | | | | | | | | | (assuming we would call floor to get a rounded value.) apply finalFYMask not to the initial fy, but to the fyMask (so it is always applied in the loop) in drawText. git-svn-id: http://skia.googlecode.com/svn/trunk@1084 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix infinite loop if we have a drawfilter but no drawlooperGravatar mike@reedtribe.org2011-04-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1079 2bbb7eff-a529-9590-31e7-b0007b416f81
* Simplify drawloopers and drawfilters. This allows the canvas to keep itsGravatar reed@google.com2011-04-07
| | | | | | | | | promise that const SkPaint& stay const (so we don't have bugs if a const paint is referenced from two threads in pictures) git-svn-id: http://skia.googlecode.com/svn/trunk@1074 2bbb7eff-a529-9590-31e7-b0007b416f81
* round the alphamul so we don't overflow a byteGravatar reed@google.com2011-04-07
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1071 2bbb7eff-a529-9590-31e7-b0007b416f81
* use new template class SkTLazy for deferred paint initializationGravatar reed@google.com2011-04-06
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1070 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove transitionary version of getAdvancedTypefaceMetrics. Webkit has been ↵Gravatar vandebo@chromium.org2011-04-06
| | | | | | | | updated. Review URL: http://codereview.appspot.com/4383041 git-svn-id: http://skia.googlecode.com/svn/trunk@1068 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make SkFlate buffers statically sized (fixes Windows compile).Gravatar vandebo@chromium.org2011-04-05
| | | | | | Review URL: http://codereview.appspot.com/4357054 git-svn-id: http://skia.googlecode.com/svn/trunk@1059 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adds read pixels to GrTexture and GrRenderTargetGravatar bsalomon@google.com2011-04-05
| | | | | | | | | Adds SkGrRenderTargetPixelRef for SkBitmaps that are backed by RTs that aren't textures. Adds onReadPixels implementations for SkGr pixel ref types git-svn-id: http://skia.googlecode.com/svn/trunk@1056 2bbb7eff-a529-9590-31e7-b0007b416f81
* export SkDraw::ComputeRectType() and share that with SkGpuDeviceGravatar reed@google.com2011-04-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1055 2bbb7eff-a529-9590-31e7-b0007b416f81
* handle scale < 0 for stroke-rectsGravatar reed@google.com2011-04-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1052 2bbb7eff-a529-9590-31e7-b0007b416f81
* reenable fast stroked rects, now that we correctly handle non-square scaleGravatar reed@google.com2011-04-04
| | | | | | | | also, degenerate non-antialias rectangles now draw properly git-svn-id: http://skia.googlecode.com/svn/trunk@1049 2bbb7eff-a529-9590-31e7-b0007b416f81
* temporarily disable fast stroking, until we handle non-square scales in matrixGravatar reed@google.com2011-04-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1047 2bbb7eff-a529-9590-31e7-b0007b416f81
* add #ifdef SK_DISABLE_FAST_AA_STROKE_RECT to disable new 8x faster antialiasedGravatar reed@google.com2011-04-04
| | | | | | | | | stroked rects, since it draws slightly different (more correct) pixels, for clients that want pixel compatibility. git-svn-id: http://skia.googlecode.com/svn/trunk@1043 2bbb7eff-a529-9590-31e7-b0007b416f81
* faster stroke rectsGravatar mike@reedtribe.org2011-04-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1042 2bbb7eff-a529-9590-31e7-b0007b416f81
* add pixelref->readPixels()Gravatar reed@google.com2011-04-01
| | | | | | | | unimplemented (for now) on the gpu side git-svn-id: http://skia.googlecode.com/svn/trunk@1037 2bbb7eff-a529-9590-31e7-b0007b416f81
* Move where compression enable/disable is done to make recompilation faster.Gravatar vandebo@chromium.org2011-04-01
| | | | | | Review URL: http://codereview.appspot.com/4354043 git-svn-id: http://skia.googlecode.com/svn/trunk@1035 2bbb7eff-a529-9590-31e7-b0007b416f81
* replace SkRefDict with SkMetaData (much more general)Gravatar reed@google.com2011-03-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1025 2bbb7eff-a529-9590-31e7-b0007b416f81
* Improve the SkAdvancedTypefaceMetrics interface w.r.t. vertical advances.Gravatar vandebo@chromium.org2011-03-30
| | | | | | | | Add a template function to type safe-combine bits of a bit field. Review URL: http://codereview.appspot.com/4313053 git-svn-id: http://skia.googlecode.com/svn/trunk@1020 2bbb7eff-a529-9590-31e7-b0007b416f81
* add refcnt helper to metadataGravatar reed@google.com2011-03-30
| | | | | | | | add unittests for metadata git-svn-id: http://skia.googlecode.com/svn/trunk@1019 2bbb7eff-a529-9590-31e7-b0007b416f81
* move SkMetaData into coreGravatar reed@google.com2011-03-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1018 2bbb7eff-a529-9590-31e7-b0007b416f81
* add getTopLayer(), so clients don't have to use a LayerIter just to getGravatar reed@google.com2011-03-30
| | | | | | | | the top. (very common for chrome) git-svn-id: http://skia.googlecode.com/svn/trunk@1016 2bbb7eff-a529-9590-31e7-b0007b416f81
* Initialize fClip in SkBounder, in case doIRect() is called before it is usedGravatar reed@google.com2011-03-23
| | | | | | | | | | inside a canvas (which calls setClip). Export a global empty region. Used by SkBounder's constructor. git-svn-id: http://skia.googlecode.com/svn/trunk@985 2bbb7eff-a529-9590-31e7-b0007b416f81
* increase intermediate precision when chopping lines. This avoids returning aGravatar reed@google.com2011-03-21
| | | | | | | | computed value that is accidentally outside of the original range. git-svn-id: http://skia.googlecode.com/svn/trunk@971 2bbb7eff-a529-9590-31e7-b0007b416f81
* change operator== to return bool instead of intGravatar reed@google.com2011-03-18
| | | | | | | | update dox formating git-svn-id: http://skia.googlecode.com/svn/trunk@956 2bbb7eff-a529-9590-31e7-b0007b416f81
* abort drawing if srcRect is outside of the bitmap boundsGravatar reed@google.com2011-03-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@951 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add code needed to build skia as a windows dll within the chromium project.Gravatar ctguil@chromium.org2011-03-15
| | | | | | | | | - Export/import skia APIs if SKIA_DLL is defined. - This change has no effect on skia. Review URL: http://codereview.appspot.com/4282042 git-svn-id: http://skia.googlecode.com/svn/trunk@944 2bbb7eff-a529-9590-31e7-b0007b416f81
* add filterTextFlags() to SkDevice (virtual) to allow device subclasses toGravatar reed@google.com2011-03-15
| | | | | | | | | filter what text features we try to use. The filtering allows for implementation limitations to dictate when we turn off certain text features. git-svn-id: http://skia.googlecode.com/svn/trunk@943 2bbb7eff-a529-9590-31e7-b0007b416f81
* support lcd16 in text atlas (sans shader support)Gravatar reed@google.com2011-03-15
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@939 2bbb7eff-a529-9590-31e7-b0007b416f81
* Upstreaming changes from android.Gravatar djsollen@google.com2011-03-14
| | | | | | | | | | - fix compile warnings in the GPU code - upstream android specific code (ifdef protected) - fail gracefully when a custom allocator fails git-svn-id: http://skia.googlecode.com/svn/trunk@936 2bbb7eff-a529-9590-31e7-b0007b416f81