aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Add filters to organize the VS project. Remove unused Gr files.Gravatar bsalomon@google.com2011-03-08
| | | | | | Review URL http://codereview.appspot.com/4243064/ git-svn-id: http://skia.googlecode.com/svn/trunk@904 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove unused methods from SkRefPtr, as a check-point for better understandingGravatar reed@google.com2011-03-08
| | | | | | | | what we want to do with this class. git-svn-id: http://skia.googlecode.com/svn/trunk@903 2bbb7eff-a529-9590-31e7-b0007b416f81
* add LF at end of file (dumb warning)Gravatar reed@google.com2011-03-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@902 2bbb7eff-a529-9590-31e7-b0007b416f81
* add LF at end of file (ancient warning appeased)Gravatar reed@google.com2011-03-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@901 2bbb7eff-a529-9590-31e7-b0007b416f81
* add const to SkColorShader's asABitmapGravatar reed@google.com2011-03-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@900 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix warnings in VS 2010Gravatar reed@google.com2011-03-07
| | | | | | | | drawPaint() doesn't need +1 to fill its bounds git-svn-id: http://skia.googlecode.com/svn/trunk@899 2bbb7eff-a529-9590-31e7-b0007b416f81
* make asABitmap() constGravatar reed@google.com2011-03-07
| | | | | | | | change private cache fields in gradient to be mutable git-svn-id: http://skia.googlecode.com/svn/trunk@898 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix warning about uninit var subpathClosedGravatar bsalomon@google.com2011-03-07
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@897 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Re add line accidentally removed in r892.Gravatar vandebo@chromium.org2011-03-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@896 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix Sample App on Win32 GL window resize, fix sk->gr convexity hint, fix ↵Gravatar bsalomon@google.com2011-03-04
| | | | | | | | | grpath uninit warnings Review URL http://codereview.appspot.com/4247055/ git-svn-id: http://skia.googlecode.com/svn/trunk@895 2bbb7eff-a529-9590-31e7-b0007b416f81
* add origin to deviceGravatar reed@google.com2011-03-04
| | | | | | | | used for interpreting the clipstack when a device is a layer git-svn-id: http://skia.googlecode.com/svn/trunk@894 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add SkPDFUtils.cpp to build.Gravatar ctguil@chromium.org2011-03-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@893 2bbb7eff-a529-9590-31e7-b0007b416f81
* PDF Type3 Support.Gravatar ctguil@chromium.org2011-03-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@892 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixups for clipstack, convexity test for paths.Gravatar bsalomon@google.com2011-03-04
| | | | | | Review URL http://codereview.appspot.com/4250056/ git-svn-id: http://skia.googlecode.com/svn/trunk@891 2bbb7eff-a529-9590-31e7-b0007b416f81
* Update windows port of of SkFontHost::GetAdvancedTypefaceMetrics to use ↵Gravatar ctguil@chromium.org2011-03-04
| | | | | | | | calculateGlyphCount. Review URL: http://codereview.appspot.com/4245060 git-svn-id: http://skia.googlecode.com/svn/trunk@890 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix () warningGravatar reed@google.com2011-03-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@889 2bbb7eff-a529-9590-31e7-b0007b416f81
* Implement SkScalerContext_Windows::generateGlyphCount() and provide access ↵Gravatar ctguil@chromium.org2011-03-04
| | | | | | | | | | via SkGlyphCache interface. * This will be used by PDF font code. Review URL: http://codereview.appspot.com/4261042 git-svn-id: http://skia.googlecode.com/svn/trunk@888 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add include\ports to include path for SampleApp project on windows.Gravatar ctguil@chromium.org2011-03-04
| | | | | | Review URL: http://codereview.appspot.com/4241049 git-svn-id: http://skia.googlecode.com/svn/trunk@887 2bbb7eff-a529-9590-31e7-b0007b416f81
* export SkCreateTypefaceFromLOGFONTGravatar reed@google.com2011-03-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@886 2bbb7eff-a529-9590-31e7-b0007b416f81
* delete unused fileGravatar reed@google.com2011-03-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@885 2bbb7eff-a529-9590-31e7-b0007b416f81
* Delete another unused file.Gravatar thakis@chromium.org2011-03-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@884 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Restrict scalars to the range that PDF understands.Gravatar vandebo@chromium.org2011-03-04
| | | | | | | | | | | * Add a config flag to ignore the restrictions * Apply restriction to both SkPDFScalar and scalars used in content streams. * +/- 32,767 for the integer part. * +/1 1/65536 for the fraction part. Review URL: http://codereview.appspot.com/4240050 git-svn-id: http://skia.googlecode.com/svn/trunk@882 2bbb7eff-a529-9590-31e7-b0007b416f81
* bump SkStrAppendScalar_MaxSize to 15 to handle 3-digit exponents on someGravatar reed@google.com2011-03-03
| | | | | | | | platforms (like windows) git-svn-id: http://skia.googlecode.com/svn/trunk@881 2bbb7eff-a529-9590-31e7-b0007b416f81
* Expose explicit functions to stringify float's and fixed's.Gravatar vandebo@chromium.org2011-03-03
| | | | | | | | See http://codereview.appspot.com/4240050/ Review URL: http://codereview.appspot.com/4240068 git-svn-id: http://skia.googlecode.com/svn/trunk@880 2bbb7eff-a529-9590-31e7-b0007b416f81
* Our region blitter (invoked by region::setPath()) must have its scanlinesGravatar reed@google.com2011-03-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fed to it in scanline order (Y sorted, then X sorted). If, however, we call rgn->setPath(path, otherRgn) with path in inverse mode, then our scan converter code looks like this: if (inverse) blit_top scan_convert_path if (inverse) blit_bottom This is fine, unless otherRgn is complex. If it is, then blit_top will want to efficiently "blit" otherRgn (the part above the path), and that means calling blitRect in an iterator. That can result in chunks being passed to our blitter (which is really accumulating scanlines) out of scanline order. The change is to detect that otherRgn is complex, and if it is, just perform the op in two steps: 1. setPath on a tmp region, limited by the bounds of otherRgn (simple) 2. intersect this tmp region with the currRgn. This is effectively what we do for non-intersect ops. Intersect was different only because we could (sometimes) avoid the step of create a tmp region. git-svn-id: http://skia.googlecode.com/svn/trunk@879 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add support for clipstack to Gr. GrClip is now a list of rects and paths ↵Gravatar bsalomon@google.com2011-03-03
| | | | | | with set operations to combine them. The stencil buffer is used to perform the set operations to put the clip into the stencil buffer. Building Gr's clip from Skia's clipStack is currently disabled due to the fact that Skia's clipStack is relative to the root layer not the current layer. This will be fixed in a subsequent CL. git-svn-id: http://skia.googlecode.com/svn/trunk@878 2bbb7eff-a529-9590-31e7-b0007b416f81
* add setXYWH to rectsGravatar reed@google.com2011-03-03
| | | | | | | | new tests for circles git-svn-id: http://skia.googlecode.com/svn/trunk@877 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix inverse scanconversion -- be sure to keep our calls to SkBlitter in scanlineGravatar reed@google.com2011-03-02
| | | | | | | | order (top to bottom), since the region blitter explicitly requires this. git-svn-id: http://skia.googlecode.com/svn/trunk@876 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sample that exercises complex clipping variations.Gravatar bsalomon@google.com2011-03-02
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@875 2bbb7eff-a529-9590-31e7-b0007b416f81
* #ifdef protect win specific code (e.g. LOGFONT)Gravatar reed@google.com2011-03-02
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@874 2bbb7eff-a529-9590-31e7-b0007b416f81
* check that alloc() succeeded before calling the scaler's getImage()Gravatar reed@google.com2011-03-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@873 2bbb7eff-a529-9590-31e7-b0007b416f81
* bump SkStrAppendScalar_MaxSize to 14 to accomodate the largest string now thatGravatar reed@google.com2011-03-01
| | | | | | | | | | | scalar->string uses %.8g. Floats have at most 8 significant digits, plus we add more space for sign, decimal point and exponent. add tests to check these limits. git-svn-id: http://skia.googlecode.com/svn/trunk@872 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove obsolete generateLineHeightGravatar reed@google.com2011-03-01
| | | | | | | | | | | use canonical lfHeight so we can compare different LOGFONTs and map equivalent fonts (except for height) to the same typeface. To do this I add fSize to scale the output from GDI to get from the canonical int textSize to the actual fractional size. git-svn-id: http://skia.googlecode.com/svn/trunk@871 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix float->int warningGravatar reed@google.com2011-03-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@870 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix warnings from windowsGravatar reed@google.com2011-03-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@869 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add uniscribe library to windows release configuration.Gravatar ctguil@chromium.org2011-03-01
| | | | | | Review URL: http://codereview.appspot.com/4253045 git-svn-id: http://skia.googlecode.com/svn/trunk@866 2bbb7eff-a529-9590-31e7-b0007b416f81
* use sprintf to generate float->string for SkString routines, removing theGravatar reed@google.com2011-02-28
| | | | | | | | worry of first converting the scalar to a fixed. git-svn-id: http://skia.googlecode.com/svn/trunk@865 2bbb7eff-a529-9590-31e7-b0007b416f81
* export SkCreateTypefaceFromLOGFONTGravatar reed@google.com2011-02-28
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@864 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Fix broken encoding conversion code for non-multibyte fonts.Gravatar vandebo@chromium.org2011-02-28
| | | | | | Review URL: http://codereview.appspot.com/4245044 git-svn-id: http://skia.googlecode.com/svn/trunk@863 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove SkRefCnt.cpp from windows build.Gravatar ctguil@chromium.org2011-02-25
| | | | | | Review URL: http://codereview.appspot.com/4239043 git-svn-id: http://skia.googlecode.com/svn/trunk@862 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove SkRefCnt.cppGravatar reed@google.com2011-02-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@861 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix double delete of vb pool and missing delete of ib poolGravatar bsalomon@google.com2011-02-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@860 2bbb7eff-a529-9590-31e7-b0007b416f81
* add simple test for SkBitmap::getColor()Gravatar reed@google.com2011-02-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@859 2bbb7eff-a529-9590-31e7-b0007b416f81
* http://codereview.appspot.com/4233041/Gravatar reed@google.com2011-02-25
| | | | | | | | | | Add templated version of SkAutoTUnref. Add unittests for it. Remove unused helper apis on SkAutoUnref. git-svn-id: http://skia.googlecode.com/svn/trunk@858 2bbb7eff-a529-9590-31e7-b0007b416f81
* Stop using deprecated APIs. Fix by twiz.Gravatar reed@google.com2011-02-25
| | | | | | | | | http://codereview.appspot.com/4249041/ BUG=http://code.google.com/p/skia/issues/detail?id=151 git-svn-id: http://skia.googlecode.com/svn/trunk@857 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Remove one copy of each content stream.Gravatar vandebo@chromium.org2011-02-24
| | | | | | Review URL: http://codereview.appspot.com/4231044 git-svn-id: http://skia.googlecode.com/svn/trunk@856 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Change the way flip origin is done.Gravatar vandebo@chromium.org2011-02-24
| | | | | | | | The PDF shader matrix is dependent on flip origin or not, so we need to set it at device creation time. Review URL: http://codereview.appspot.com/4216046 git-svn-id: http://skia.googlecode.com/svn/trunk@855 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add SkBitmap::getColor(int x, int y) - return the color of a pixel in a bitmap.Gravatar vandebo@chromium.org2011-02-24
| | | | | | Review URL: http://codereview.appspot.com/4230041 git-svn-id: http://skia.googlecode.com/svn/trunk@854 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Bug fix - missing last odd column in 4444 bitmaps.Gravatar vandebo@chromium.org2011-02-24
| | | | | | Review URL: http://codereview.appspot.com/4212044 git-svn-id: http://skia.googlecode.com/svn/trunk@853 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Clean up SkPDFStream and make it inherit from SkPDFDict.Gravatar vandebo@chromium.org2011-02-24
| | | | | | | | | A stream is a dictionary (with a couple particular entries) plus the data. The common parent is useful for the shader implementation. Review URL: http://codereview.appspot.com/4221045 git-svn-id: http://skia.googlecode.com/svn/trunk@852 2bbb7eff-a529-9590-31e7-b0007b416f81