aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
Commit message (Collapse)AuthorAge
...
* Towards enabling -Werror in skia on LinuxGravatar bsalomon@google.com2012-01-06
| | | | | | | | Review URL: http://codereview.appspot.com/5516044/ git-svn-id: http://skia.googlecode.com/svn/trunk@2983 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add the ability to iterate through a path without modification. This change isGravatar schenney@chromium.org2012-01-04
| | | | | | | | | | required by WebKit SVG in order to correctly draw markers and endcaps. BUG=415 TEST=TestPath in the unit tests Review URL: http://codereview.appspot.com/5505097 git-svn-id: http://skia.googlecode.com/svn/trunk@2962 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 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
* 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
* add SkUnichar_IsVariationSelector()Gravatar reed@google.com2011-12-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2915 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
* 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
* add canvas::isDrawingToLayer(), as a fast query for chrome; faster thanGravatar reed@google.com2011-12-14
| | | | | | | | setting up a drawiter and counting the layers. git-svn-id: http://skia.googlecode.com/svn/trunk@2875 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adding isOpaque method to skia shader classesGravatar junov@chromium.org2011-12-09
| | | | | | | | | REVIEW=http://codereview.appspot.com/5451102/ TEST=unit test ShaderOpacity git-svn-id: http://skia.googlecode.com/svn/trunk@2840 2bbb7eff-a529-9590-31e7-b0007b416f81
* rename sk_float_isNaN to sk_float_isnan to match related functionsGravatar reed@google.com2011-12-06
| | | | | | | | add sk_float_isinf returning non-zero if the argument is +/- infinity git-svn-id: http://skia.googlecode.com/svn/trunk@2813 2bbb7eff-a529-9590-31e7-b0007b416f81
* rename hasValidCoordinates to isFinite (on SkRect) and reimplement for speedGravatar reed@google.com2011-12-06
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2811 2bbb7eff-a529-9590-31e7-b0007b416f81
* add sk_float_isfinite to mask platform differencesGravatar reed@google.com2011-12-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2803 2bbb7eff-a529-9590-31e7-b0007b416f81
* add test for isFiniteGravatar reed@google.com2011-12-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2800 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix Paint == comparison on Android.Gravatar djsollen@google.com2011-12-01
| | | | | | | | | The == operator was incorrect because of Androids use of fGenerationID. This change moves the ID to the end of the paint struct and omits it from the == comparison. Review URL: http://codereview.appspot.com/5437098 git-svn-id: http://skia.googlecode.com/svn/trunk@2780 2bbb7eff-a529-9590-31e7-b0007b416f81
* add unittest for save/restoreGravatar reed@google.com2011-11-28
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2751 2bbb7eff-a529-9590-31e7-b0007b416f81
* more rgn==aaclip testsGravatar reed@google.com2011-11-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2744 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix warningsGravatar bsalomon@google.com2011-11-23
| | | | | | | Review URL: http://codereview.appspot.com/5433054/ git-svn-id: http://skia.googlecode.com/svn/trunk@2741 2bbb7eff-a529-9590-31e7-b0007b416f81
* add test that aaclip.setRegion creates the same mask as the regionGravatar mike@reedtribe.org2011-11-23
| | | | | | | | ... in prep for optimizatin work on setRegion. git-svn-id: http://skia.googlecode.com/svn/trunk@2739 2bbb7eff-a529-9590-31e7-b0007b416f81
* don't quickReject bitmaps if there is a looper or other possible bounds-modifierGravatar reed@google.com2011-11-21
| | | | | | | | add unittest for the above change git-svn-id: http://skia.googlecode.com/svn/trunk@2722 2bbb7eff-a529-9590-31e7-b0007b416f81
* add test for IsModeGravatar mike@reedtribe.org2011-11-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2704 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix signed/unsigned warning (use size_t in conjunction with SK_ARRAY_COUNT)Gravatar reed@google.com2011-11-16
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2702 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix autobounds dude to call a custom version of rect.join that doesn't ignoreGravatar reed@google.com2011-11-14
| | | | | | | | | empty rects (since path.bounds must be the bounds of its control-pts, including empty subcontours) git-svn-id: http://skia.googlecode.com/svn/trunk@2679 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove GrGpuGLFixed subclass and ES1 supportGravatar bsalomon@google.com2011-11-14
| | | | | | | Review URL: http://codereview.appspot.com/5376094/ git-svn-id: http://skia.googlecode.com/svn/trunk@2678 2bbb7eff-a529-9590-31e7-b0007b416f81
* add test for bounds (disabled as it fails)Gravatar reed@google.com2011-11-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2677 2bbb7eff-a529-9590-31e7-b0007b416f81
* Do writepixels alpha-premul using gpuGravatar bsalomon@google.com2011-11-11
| | | | | | | | Review URL: http://codereview.appspot.com/5373064/ git-svn-id: http://skia.googlecode.com/svn/trunk@2668 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Optimize W-array generation with respect to subsetted fonts and add test.Gravatar vandebo@chromium.org2011-11-11
| | | | | | | | Testing framework originally from http://codereview.appspot.com/4916044 Review URL: http://codereview.appspot.com/5379041 git-svn-id: http://skia.googlecode.com/svn/trunk@2667 2bbb7eff-a529-9590-31e7-b0007b416f81
* Turn off WritePixelsTest in fixed pt build (GPU device known not to work, no ↵Gravatar bsalomon@google.com2011-11-10
| | | | | | plan to fix) git-svn-id: http://skia.googlecode.com/svn/trunk@2663 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add config8888 support to writePixelsGravatar bsalomon@google.com2011-11-10
| | | | | | | | Review URL: http://codereview.appspot.com/5374052/ git-svn-id: http://skia.googlecode.com/svn/trunk@2662 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix return value in read pixels unit testGravatar bsalomon@google.com2011-11-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2656 2bbb7eff-a529-9590-31e7-b0007b416f81
* Removes warnings generated by gcc and clang.Gravatar tomhudson@google.com2011-11-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2651 2bbb7eff-a529-9590-31e7-b0007b416f81
* add experimental test for blending math (disabled for now)Gravatar reed@google.com2011-11-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2648 2bbb7eff-a529-9590-31e7-b0007b416f81
* [GPU] Add explicit byte order and PM vs. UPM 8888 configsGravatar bsalomon@google.com2011-11-07
| | | | | | | | Review URL: http://codereview.appspot.com/5347042/ git-svn-id: http://skia.googlecode.com/svn/trunk@2618 2bbb7eff-a529-9590-31e7-b0007b416f81
* Override 32BPP format in SkCanvas::readPixelsGravatar bsalomon@google.com2011-11-03
| | | | | | | | Review URL: http://codereview.appspot.com/5330073/ git-svn-id: http://skia.googlecode.com/svn/trunk@2600 2bbb7eff-a529-9590-31e7-b0007b416f81
* Recommit r2584 with gpu pass of the new ReadPixels test disabled in fixed pt ↵Gravatar bsalomon@google.com2011-11-02
| | | | | | (gpu code doesn't work in general in fixed pt). git-svn-id: http://skia.googlecode.com/svn/trunk@2586 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert r2584 (new test fails in fixed pt builds)Gravatar bsalomon@google.com2011-11-02
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2585 2bbb7eff-a529-9590-31e7-b0007b416f81
* Changes the SkCanvas::readPixels API. Allows caller to read into prealloced ↵Gravatar bsalomon@google.com2011-11-02
| | | | | | | | | | bitmap pixels. Changes how clipping to device bounds is handled. Review URL: http://codereview.appspot.com/5307077/ git-svn-id: http://skia.googlecode.com/svn/trunk@2584 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove tests for copyPixelsFrom (it is not gone)Gravatar reed@google.com2011-11-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2580 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add NULL GL context implementation. Use in bench (-nullgl) and SampleApp ↵Gravatar bsalomon@google.com2011-10-27
| | | | | | | | | (backspace key) Review URL: http://codereview.appspot.com/5303080/ git-svn-id: http://skia.googlecode.com/svn/trunk@2545 2bbb7eff-a529-9590-31e7-b0007b416f81
* now we trim the aaclip after building it, to ensure that it has tight boundsGravatar reed@google.com2011-10-27
| | | | | | | | around its (rle compressed) image. git-svn-id: http://skia.googlecode.com/svn/trunk@2542 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove warnings (trailing \, signed vs unsigned, parenthesization).Gravatar tomhudson@google.com2011-10-27
| | | | | | | | Convert some tabs into spaces. git-svn-id: http://skia.googlecode.com/svn/trunk@2541 2bbb7eff-a529-9590-31e7-b0007b416f81
* add test for rgn-ops. some disable for now as they don't work (yet)Gravatar reed@google.com2011-10-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2537 2bbb7eff-a529-9590-31e7-b0007b416f81
* add header to document debug-vs-release, fixed-vs-floatGravatar reed@google.com2011-10-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2536 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix new test to work in fixed-pointGravatar reed@google.com2011-10-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2535 2bbb7eff-a529-9590-31e7-b0007b416f81
* add initial unittests for aaclip. Fix case where BuilderBlitter skipped the topGravatar reed@google.com2011-10-26
| | | | | | | | | | few scanlines (of its bounds) and therefore didn't know to trim its bounds back down. This can happen when the path's bounds are larger than the curve's bounds (i.e. the control points are outside of the tight-bounds of the shape.) git-svn-id: http://skia.googlecode.com/svn/trunk@2534 2bbb7eff-a529-9590-31e7-b0007b416f81
* Recommit r2510 now that mac build bot issue has been fixed.Gravatar bsalomon@google.com2011-10-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2521 2bbb7eff-a529-9590-31e7-b0007b416f81
* enable soft clipping (yikes)Gravatar reed@google.com2011-10-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2515 2bbb7eff-a529-9590-31e7-b0007b416f81
* Temporary revert of r2510. The test that it introduced fails on the Mac ↵Gravatar bsalomon@google.com2011-10-20
| | | | | | build bots. I suspect there is something wrong with the Mac bot machine's GL that is preventing context creation from succeeding. The OpenGL Driver monitor on the machine only shows a software rasterizer. aglChoosePixelFormat seems to fail regardless of input. It may just need a reboot. I'll investigate it more on Monday. git-svn-id: http://skia.googlecode.com/svn/trunk@2511 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add test that validates GrGLInterfacesGravatar bsalomon@google.com2011-10-20
| | | | | | | | Review URL: http://codereview.appspot.com/5304048/ git-svn-id: http://skia.googlecode.com/svn/trunk@2510 2bbb7eff-a529-9590-31e7-b0007b416f81