aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Implement the color matrix filter in Ganesh. Also, fix and enable the colorGravatar senorblanco@chromium.org2012-01-03
| | | | | | | | | | | | matrix test slide. This was basically implemented in the same places where the blending-based color filter was being done. The shader simply does a mat4 matrix multiply and a vec4 add. Review URL: http://codereview.appspot.com/5489107/ git-svn-id: http://skia.googlecode.com/svn/trunk@2948 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix off-by-one error in assertion; improve coverage_to_exact_alpha()Gravatar tomhudson@google.com2012-01-03
| | | | | | | | | | implementation. http://codereview.appspot.com/5504116/ git-svn-id: http://skia.googlecode.com/svn/trunk@2947 2bbb7eff-a529-9590-31e7-b0007b416f81
* expose isSubpixel() on the cache, so SkDraw can know if it should expectGravatar reed@google.com2012-01-03
| | | | | | | | subpixel text (it may be that the paint requested it, but the scaler ignored it) git-svn-id: http://skia.googlecode.com/svn/trunk@2946 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add flags to GrStencilSettingsGravatar bsalomon@google.com2012-01-03
| | | | | | | | Review URL: http://codereview.appspot.com/5489057/ git-svn-id: http://skia.googlecode.com/svn/trunk@2945 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix ToUnicode generation bug.Gravatar vandebo@chromium.org2012-01-03
| | | | | | | | | | Code from arthurhsu@chromium.org Original CL: http://codereview.appspot.com/5492061/ BUG=Chromium:104062 Review URL: http://codereview.appspot.com/5498064 git-svn-id: http://skia.googlecode.com/svn/trunk@2944 2bbb7eff-a529-9590-31e7-b0007b416f81
* add helper drawSizeBounds to show the GM's sizeGravatar reed@google.com2012-01-03
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2943 2bbb7eff-a529-9590-31e7-b0007b416f81
* Update header comments to more accurately describe behavior ofGravatar tomhudson@google.com2012-01-03
| | | | | | | | | | SkRegion::getBoundaryPath(). Add SkASSERT of SkPath argument for safety. codereview.appspot.com/5504095/ git-svn-id: http://skia.googlecode.com/svn/trunk@2942 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix return value from SkImageDecoder::DecodeFile(): false even in case ofGravatar tomhudson@google.com2012-01-03
| | | | | | | | *partial* failure. git-svn-id: http://skia.googlecode.com/svn/trunk@2941 2bbb7eff-a529-9590-31e7-b0007b416f81
* experiment #2 for JSON dataGravatar mike@reedtribe.org2012-01-02
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2940 2bbb7eff-a529-9590-31e7-b0007b416f81
* add experimental class for jsonGravatar mike@reedtribe.org2011-12-31
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2939 2bbb7eff-a529-9590-31e7-b0007b416f81
* add optional --forceBWtext to gm, forcing all text to BW to easeGravatar mike@reedtribe.org2011-12-30
| | | | | | | | | | | | comparisons between platform variations (e.g. mac 10.5,6,7) probably only make sense in conjunction with some flag on GM allowing the slide to opt in-or-out, so we only hack text labels, and not GMs that are explicitly trying to test text rendering. git-svn-id: http://skia.googlecode.com/svn/trunk@2938 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add tool that downloads gm baseline images from the bots.Gravatar epoger@google.com2011-12-29
| | | | | | Review URL: http://codereview.appspot.com/5503082 git-svn-id: http://skia.googlecode.com/svn/trunk@2937 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix problems with SampleApp Fuzzer due to issues in iterating over ↵Gravatar schenney@chromium.org2011-12-29
| | | | | | | | | | | | | | degenerate paths. The fuzzer gets my vote as best test tool ever. There are several issues outstanding: crashes in FixedPoint and a crash in the path filling code that is most likely due to clipping problems (but maybe not). BUG=425 Review URL: http://codereview.appspot.com/5503080 git-svn-id: http://skia.googlecode.com/svn/trunk@2936 2bbb7eff-a529-9590-31e7-b0007b416f81
* Tighten up restrictions on blit width: some shaders assert that theyGravatar tomhudson@google.com2011-12-29
| | | | | | | | | are addressing more than 0 pixels. codereview.appspot.com/5489125/ git-svn-id: http://skia.googlecode.com/svn/trunk@2935 2bbb7eff-a529-9590-31e7-b0007b416f81
* Commit base-macmini gm baselines that are similar to those in base-macproGravatar epoger@google.com2011-12-28
| | | | | | Review URL: http://codereview.appspot.com/5496076 git-svn-id: http://skia.googlecode.com/svn/trunk@2934 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add SkTableColorFilter, as a foundation for several SVG filtersGravatar mike@reedtribe.org2011-12-28
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2933 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SK_OVERRIDEGravatar mike@reedtribe.org2011-12-28
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2932 2bbb7eff-a529-9590-31e7-b0007b416f81
* return -1 if we failed to find by titleGravatar mike@reedtribe.org2011-12-28
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2931 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix fixed-point antialiased clipping GM; upload baselines.Gravatar tomhudson@google.com2011-12-28
| | | | | | | | http://codereview.appspot.com/5503077/ git-svn-id: http://skia.googlecode.com/svn/trunk@2930 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add number-of-missing-baseline-images report to gmGravatar epoger@google.com2011-12-28
| | | | | | Review URL: http://codereview.appspot.com/5489123 git-svn-id: http://skia.googlecode.com/svn/trunk@2929 2bbb7eff-a529-9590-31e7-b0007b416f81
* Bugfixes to antialiased blitting.Gravatar tomhudson@google.com2011-12-28
| | | | | | | | | More details of blitter contracts in function headers. New precautionary assert in one high-level default blitter. git-svn-id: http://skia.googlecode.com/svn/trunk@2928 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix Windows build breakage in http://code.google.com/p/skia/source/detail?r=2925Gravatar epoger@google.com2011-12-28
| | | | | | | TBR=reed Review URL: http://codereview.appspot.com/5500087 git-svn-id: http://skia.googlecode.com/svn/trunk@2927 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add SkDEBUGFAIL to clean up use of SkASSERT(!"text");Gravatar tomhudson@google.com2011-12-28
| | | | | | | | | | catch a couple of latent SkASSERT("text") bugs. http://codereview.appspot.com/5504090/ git-svn-id: http://skia.googlecode.com/svn/trunk@2926 2bbb7eff-a529-9590-31e7-b0007b416f81
* RETURN key now records default slide for startupGravatar mike@reedtribe.org2011-12-27
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2925 2bbb7eff-a529-9590-31e7-b0007b416f81
* New 'blitAntiRect' entry point for blitters, specialized in supersamplingGravatar tomhudson@google.com2011-12-27
| | | | | | | | | | | | | | code to avoid quarter-scanline-at-a-time building of large rectangular clips. Speeds up aa_clip_build_path_AA benchmark 2x, aa_clip_build_rect_AA benchmark 10x or more. This is a sufficient performance gain to let Chromium reenable WebKit's soft clipping code. Rolling into Chromium will require ~18 rebaselines. git-svn-id: http://skia.googlecode.com/svn/trunk@2924 2bbb7eff-a529-9590-31e7-b0007b416f81
* Protecting changes to the SkPath iteration with an ifdef for Chromium.Gravatar schenney@chromium.org2011-12-21
| | | | | | | | Something is broken, and this will protect us while we sort it out. Unreviewed. git-svn-id: http://skia.googlecode.com/svn/trunk@2922 2bbb7eff-a529-9590-31e7-b0007b416f81
* add move-close-move and move-close-move-close to the "empty" paths to testGravatar reed@google.com2011-12-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2921 2bbb7eff-a529-9590-31e7-b0007b416f81
* support vertical text and typeface-by-name on LeopardGravatar caryclark@google.com2011-12-21
| | | | | | | | | | M src/ports/SkFontHost_mac_coretext.cpp M gyp/gmslides.gypi A gm/verttext2.cpp git-svn-id: http://skia.googlecode.com/svn/trunk@2920 2bbb7eff-a529-9590-31e7-b0007b416f81
* add unittest for invariants for empty paths, still need to think aboutGravatar reed@google.com2011-12-21
| | | | | | | | hairlines in those cases git-svn-id: http://skia.googlecode.com/svn/trunk@2919 2bbb7eff-a529-9590-31e7-b0007b416f81
* Unreviewed. Adding a define to enable the old bahevior for SkPath::isEmpty.Gravatar schenney@chromium.org2011-12-21
| | | | | | Should be undone at some point, when WebKit no longer needs it. git-svn-id: http://skia.googlecode.com/svn/trunk@2918 2bbb7eff-a529-9590-31e7-b0007b416f81
* declare IsVariationSelector to be inline, to fix warningGravatar reed@google.com2011-12-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2917 2bbb7eff-a529-9590-31e7-b0007b416f81
* preserve inverseness when strokingGravatar reed@google.com2011-12-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2916 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SkUnichar_IsVariationSelector()Gravatar reed@google.com2011-12-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2915 2bbb7eff-a529-9590-31e7-b0007b416f81
* New gm to test anti-aliased clipping.Gravatar tomhudson@google.com2011-12-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2914 2bbb7eff-a529-9590-31e7-b0007b416f81
* Coverity: Add a default case in SkPDFShader. CID=101159Gravatar vandebo@chromium.org2011-12-21
| | | | | | | | Code from thestig@chromium.org original CL: http://codereview.appspot.com/5498052/ Review URL: http://codereview.appspot.com/5502052 git-svn-id: http://skia.googlecode.com/svn/trunk@2913 2bbb7eff-a529-9590-31e7-b0007b416f81
* Unreviewed. Fixing the Windows build, due to a non definition of M_PI.Gravatar schenney@chromium.org2011-12-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2912 2bbb7eff-a529-9590-31e7-b0007b416f81
* Unreviewed changes to the gm tests for paths. Each test is broken into fourGravatar schenney@chromium.org2011-12-20
| | | | | | smaller images to avoid problems with XPS on Windows hanging on large images. git-svn-id: http://skia.googlecode.com/svn/trunk@2911 2bbb7eff-a529-9590-31e7-b0007b416f81
* Disable colorfilter GM for now, since it causes Debug Fixed builds to assert.Gravatar senorblanco@chromium.org2011-12-20
| | | | | | | | Unreviewed; build fix. git-svn-id: http://skia.googlecode.com/svn/trunk@2910 2bbb7eff-a529-9590-31e7-b0007b416f81
* Implement SkColorFilter::asColorMatrix() virtual, and override inGravatar senorblanco@chromium.org2011-12-20
| | | | | | | | | | | | SkColorMatrixFilter. Implement missing SkColorMatrixFilter::setMatrix() and setArray() functions (were in .h, just not implemented). Add a gm for color matrix filters. Review URL: http://codereview.appspot.com/5500044/ git-svn-id: http://skia.googlecode.com/svn/trunk@2909 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix 'no static globals' for chromiumGravatar caryclark@google.com2011-12-20
| | | | | | | | | | M include/core/SkFlattenable.h M include/core/SkPixelRef.h M src/core/SkGraphics.cpp git-svn-id: http://skia.googlecode.com/svn/trunk@2908 2bbb7eff-a529-9590-31e7-b0007b416f81
* add baselines for macproGravatar reed@google.com2011-12-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2907 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix vertical text on LionGravatar caryclark@google.com2011-12-20
| | | | | | | | M src/ports/SkFontHost_mac_coretext.cpp git-svn-id: http://skia.googlecode.com/svn/trunk@2906 2bbb7eff-a529-9590-31e7-b0007b416f81
* A software implementation of the Gaussian blur filter, using 3 box blurs. AlsoGravatar senorblanco@chromium.org2011-12-20
| | | | | | | | | | re-enable the imageblur GM test, since the SkPicture path now works. Review URL: http://codereview.appspot.com/5413048/ git-svn-id: http://skia.googlecode.com/svn/trunk@2905 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixing PathTest. It was always broken in the convexity test code dueGravatar schenney@chromium.org2011-12-20
| | | | | | to a failure to correctly use SkScalar. git-svn-id: http://skia.googlecode.com/svn/trunk@2904 2bbb7eff-a529-9590-31e7-b0007b416f81
* initial impl of SkImageFilters : virtual signature will change!Gravatar reed@google.com2011-12-20
| | | | | | | | Do not invest too much in other subclasses until this API solidifies. git-svn-id: http://skia.googlecode.com/svn/trunk@2903 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixing the build for FIXED tests. PathTest was incorrect using "1" instead ↵Gravatar schenney@chromium.org2011-12-20
| | | | | | of "SK_Scalar1". git-svn-id: http://skia.googlecode.com/svn/trunk@2902 2bbb7eff-a529-9590-31e7-b0007b416f81
* Modifying SkPath to store all verbs provided by the user, and to giveGravatar schenney@chromium.org2011-12-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | correct results for all stroke and fill modes even on the various types of degenerate paths. The goals of this patch include: 1. Have Skia store all of the verbs implied by path construction methods, even if those define degenerate paths. The SVG implementation in WebKit, which is backed by Skia, needs to know about all elements of the path, even degenerate ones, for the correct drawing of markers and line caps. For example, in SVG you should be able to draw a scatter plot by specifying a marker for vertices and then giving a sequence of moveTo commands. Skia will not store the moveTos, requiring a different storage mechanism. 2. Assuming 1, maintain the current Skia behavior. That is, make Skia robust to degenerate paths. 3. Fix an existing bug in Skia where a degenerate moveTo-lineTo pair spits out warnings from rasterization and produces incorrect results in inverse-fill renderings. 4. Adds extensive testing for degenerate paths and path rendering in general. To meet these goals, the patch I am proposing will result in minor additional storage for degenerate paths (a few bytes per degenerate path, only if the user defines such paths). There is also some additional overhead in the iteration code, with the path now cleaned to remove degenerate segments as part of the iteration process. I suspect this will also fix issues with computing normal vectors to degenerate segments. Benchmarking suggests that this change may result in slightly (< 1%) slower path drawing due to the checks for degeneracy. This overhead could be removed (in fact, a significant speedup could occur) if the results of iterating to clean up the path were cached. This would cost memory, of course, and quite a bit of it. BUG=398 TEST=tests/PathTest.cpp gm/cubicpaths.cpp gm/degeneratesegments.cpp gm/movepaths.cpp gm/linepaths.cpp gm/quadpaths.cpp Review URL: http://codereview.appspot.com/5482051 git-svn-id: http://skia.googlecode.com/svn/trunk@2901 2bbb7eff-a529-9590-31e7-b0007b416f81
* can't pass const to setPixels :(Gravatar reed@google.com2011-12-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2900 2bbb7eff-a529-9590-31e7-b0007b416f81
* whitespace change to triGravatar epoger@google.com2011-12-20
| | | | | | gger buildbots git-svn-id: http://skia.googlecode.com/svn/trunk@2899 2bbb7eff-a529-9590-31e7-b0007b416f81
* defer creating offscreen until our first draw (so our constructor runs fast)Gravatar reed@google.com2011-12-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2898 2bbb7eff-a529-9590-31e7-b0007b416f81