aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
Commit message (Collapse)AuthorAge
* Smallest possible desktop application that uses Skia to render stuff.Gravatar commit-bot@chromium.org2013-06-18
| | | | | | | | | | | | Small Hello World smaple. Subclasses SkOSWindow. R=caryclark@google.com Author: sglez@google.com Review URL: https://chromiumcodereview.appspot.com/16337012 git-svn-id: http://skia.googlecode.com/svn/trunk@9657 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Housekeeper-NightlyGravatar skia.committer@gmail.com2013-06-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9648 2bbb7eff-a529-9590-31e7-b0007b416f81
* *** Perlin noise GM needs to be rebaselined ***Gravatar commit-bot@chromium.org2013-06-17
| | | | | | | | | | | | | | | | | | | | | | | Enabling Perlin Noise on Android I enabled the Perlin Noise shader on Android after doing some minor modifications to the shader, specifically for Android (and #ifdefed for Android, to make sure none of this affects other platforms). For Tegra devices (Nexus 7, Xoom), a precision issue related to the color values read from textures caused the noise to read the wrong indices and produce bad noise. I fixed this by adding a founding of the values read by simply doing the equivalent of "colorValue = floor(colorValue * 255.0) / 255.0" to make sure we retrieve the colors that were written in the texture originally. For non-Tegra devices (Nexus 10), dealing with values in the order of 4096.0 was problematic without using the "highp" precision setting. To solve this, a few variables were given the high precision setting. Since both fixes don't seem to do considerable harm to the platforms that are not being targetted, I left both fixes on all android devices for now. I also reduced the Perlin noise gm so that it takes less time to test it on the Xoom (Original time was about 20 seconds, this shold take less than 10, hopefully) BUG= R=senorblanco@google.com, bsalomon@google.com, sugoi@google.com, senorblanco@chromium.org Author: sugoi@chromium.org Review URL: https://chromiumcodereview.appspot.com/16818013 git-svn-id: http://skia.googlecode.com/svn/trunk@9637 2bbb7eff-a529-9590-31e7-b0007b416f81
* convert pathops to use SkSTArray where possible.Gravatar caryclark@google.com2013-06-17
| | | | | | | | | | | | | | | | | | Replace SkTDArray with SkTArray and use SkSTArray when the probable array size is known. In a couple of places (spans, chases) the arrays are constructed using insert() so SkTArrays can't be used for now. Also, add an optimization to cubic subdivide if either end is zero or one. BUG= Review URL: https://codereview.chromium.org/16951017 git-svn-id: http://skia.googlecode.com/svn/trunk@9635 2bbb7eff-a529-9590-31e7-b0007b416f81
* use select() so we can wait for XEvents or our timerGravatar reed@google.com2013-06-17
| | | | | | | | | | poll for xevents using XPending BUG= Review URL: https://codereview.chromium.org/17275003 git-svn-id: http://skia.googlecode.com/svn/trunk@9633 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixes for unpremul decode.Gravatar scroggo@google.com2013-06-14
| | | | | | | | | | | | | | | | | | | | | SkImageDecoder_CG.cpp: If a non opaque bitmap was decoded, and the caller wants unpremultiplied, unpremultiply the colors. Always use the RGB colorspace, since the other colorspaces do not match the desired bitmap format. ImageDecodingTest: Allow for a difference of 1 in each color component when comparing the result of premultiplying the unpremultiplied decode with the premultiplied decode, since I found an image (in WEBP format) where the unpremultiplied colors did not compare perfectly in my comparison. R=reed@google.com Review URL: https://codereview.chromium.org/17084012 git-svn-id: http://skia.googlecode.com/svn/trunk@9628 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove unused line of code (from xcode's analysis)Gravatar reed@google.com2013-06-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9627 2bbb7eff-a529-9590-31e7-b0007b416f81
* Change general fill rect shader code to match geometry versGravatar egdaniel@google.com2013-06-14
| | | | | | | | | | | | -Matches shader implemented for alligned rects -Uses multiplication instead of min (used in geom version) to combine width and height coverages R=bsalomon@google.com, robertphillips@google.com Review URL: https://codereview.chromium.org/17035012 git-svn-id: http://skia.googlecode.com/svn/trunk@9626 2bbb7eff-a529-9590-31e7-b0007b416f81
* speculative fix in TransitionView. don't validate after detachFromParent (we ↵Gravatar reed@google.com2013-06-14
| | | | | | may have been deleted) git-svn-id: http://skia.googlecode.com/svn/trunk@9619 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix for r9609Gravatar robertphillips@google.com2013-06-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9618 2bbb7eff-a529-9590-31e7-b0007b416f81
* Update SkBitmap::validate to respect Android flag.Gravatar scroggo@google.com2013-06-14
| | | | | | | | | | | Without this change, an SkBitmap with hardware mip will assert in validate. R=djsollen@google.com Review URL: https://codereview.chromium.org/16870002 git-svn-id: http://skia.googlecode.com/svn/trunk@9614 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add an option to create unpremultiplied bitmaps.Gravatar scroggo@google.com2013-06-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently they cannot be used directly by Skia, but the pixels can be used elsewhere. SkImageDecoder: Add functions to require unpremultiplied output and query the presence of the requirement SkImageDecoder_libpng: SkImageDecoder_libwebp: SkImageDecoder_WIC: Respect the requirement for unpremultiplied output. TODO: Fix SkImageDecoder_CG. SkScaledBitmapSampler: Add procs to skip premultiplication and a boolean parameter to use those procs. ImageDecodingTest: Test unpremultiplied bitmap decoding. SampleUnpremul: Add a sample which allows visually comparing between the unpremultiplied version (copied into a premultiplied bitmap, since drawing unpremultiplied is not currently supported) and a premultiplied version of image files. gm.h: Add a getter for the resource path, so Samples can use it. As of patch set 13, https://codereview.chromium.org/16816016/ and https://codereview.chromium.org/16983004/, which were approved separately. R=reed@google.com Review URL: https://codereview.chromium.org/16410009 git-svn-id: http://skia.googlecode.com/svn/trunk@9612 2bbb7eff-a529-9590-31e7-b0007b416f81
* Update Alligned Rect Shader to match geometry versionGravatar commit-bot@chromium.org2013-06-14
| | | | | | | | | | | | | -Also update to combine width and height coverage using multiplication instead of using min R=bsalomon@google.com, robertphillips@google.com Author: egdaniel@google.com Review URL: https://chromiumcodereview.appspot.com/16854012 git-svn-id: http://skia.googlecode.com/svn/trunk@9609 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add MESA detection to GrContextInfo and use to decide whether to use ↵Gravatar commit-bot@chromium.org2013-06-14
| | | | | | | | | | | | | | GL_ALPHA or GL_RED. Based on yunchao.he@intel.com's original change here: https://codereview.chromium.org/15994006/ R=yunchao.he@intel.com, robertphillips@google.com Author: bsalomon@google.com Review URL: https://chromiumcodereview.appspot.com/16955005 git-svn-id: http://skia.googlecode.com/svn/trunk@9608 2bbb7eff-a529-9590-31e7-b0007b416f81
* Improve the performance of SkConvertConfig8888Pixels using Array lookupGravatar commit-bot@chromium.org2013-06-14
| | | | | | | | | | | BUG=242097 R=kbr@chromium.org, vangelis@chromium.org, zmo@chromium.org, gman@chromium.org, bsalomon@google.com, reed@google.com, tomhudson@chromium.org, noel@chromium.org Author: jun.a.jiang@intel.com Review URL: https://chromiumcodereview.appspot.com/15402003 git-svn-id: http://skia.googlecode.com/svn/trunk@9605 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Housekeeper-NightlyGravatar skia.committer@gmail.com2013-06-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9602 2bbb7eff-a529-9590-31e7-b0007b416f81
* Expose debugger backend classes externally.Gravatar fmalita@google.com2013-06-13
| | | | | | | | | | | | SkDebugCanvas & friends are useful beyond the Qt debugger app - Chromium's picture inspector (in development) is at the point where it could take advantage of it. This patch moves SkDrawCommand, SkDebugCanvas & SkObjectParser from trunk/debugger to trunk/src/utils (since several tools already use these, this seems appropriate), and makes SkDrawCommand & SkDebugCanvas' symbols visible externally (SK_API). R=reed@google.com Review URL: https://codereview.chromium.org/16638014 git-svn-id: http://skia.googlecode.com/svn/trunk@9598 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix warning related to && and || and parensGravatar reed@google.com2013-06-13
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9597 2bbb7eff-a529-9590-31e7-b0007b416f81
* add validate to SkView for debuggingGravatar reed@google.com2013-06-13
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9596 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix compiler error for r9592Gravatar robertphillips@google.com2013-06-13
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9595 2bbb7eff-a529-9590-31e7-b0007b416f81
* Hopefully fix Android warning-as-error about uninit var.Gravatar bsalomon@google.com2013-06-13
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9593 2bbb7eff-a529-9590-31e7-b0007b416f81
* Replace fixed-size array of effect stages in GrDrawState with two appendable ↵Gravatar bsalomon@google.com2013-06-13
| | | | | | | | | | arrays, one for color, one for coverage. R=robertphillips@google.com Review URL: https://codereview.chromium.org/16952006 git-svn-id: http://skia.googlecode.com/svn/trunk@9592 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make text context responsible for setting GrPaint on GrDrawState.Gravatar bsalomon@google.com2013-06-13
| | | | | | | | R=robertphillips@google.com Review URL: https://codereview.chromium.org/16928010 git-svn-id: http://skia.googlecode.com/svn/trunk@9588 2bbb7eff-a529-9590-31e7-b0007b416f81
* oops, fix missing change in 9532, setting hashbits to 8Gravatar reed@google.com2013-06-13
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9581 2bbb7eff-a529-9590-31e7-b0007b416f81
* add canvas scale and rotateGravatar mike@reedtribe.org2013-06-13
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9564 2bbb7eff-a529-9590-31e7-b0007b416f81
* Disable the unpremultiply/remultiply in SkArithmeticMode, both raster and ↵Gravatar senorblanco@chromium.org2013-06-12
| | | | | | | | | | | | | | GPU, since the SVG spec actually defines arithmetic compositing to operate on premul colours directly. The unpremul/remul code has been placed behind a gUseUnpremul global, which is default false. The non-unpremul path uses a min() to keep the colours to valid premult values. Note: This change will require new baselines for the arithmode and xfermodeimagefilter GMs. R=reed@google.com Review URL: https://codereview.chromium.org/16034013 git-svn-id: http://skia.googlecode.com/svn/trunk@9555 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixed a bug with linear gradient PDF matrices and added test casesGravatar commit-bot@chromium.org2013-06-12
| | | | | | | | | | R=vandebo@chromium.org, reed@google.com Author: richardlin@chromium.org Review URL: https://chromiumcodereview.appspot.com/16094020 git-svn-id: http://skia.googlecode.com/svn/trunk@9553 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove leftover printfGravatar reed@google.com2013-06-12
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9552 2bbb7eff-a529-9590-31e7-b0007b416f81
* test thick stroking of conicsGravatar reed@google.com2013-06-12
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9535 2bbb7eff-a529-9590-31e7-b0007b416f81
* use 8 bits for fontcache hashGravatar reed@google.com2013-06-12
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9532 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixes to make the gm run when GrContext can't be created for ANGLE context.Gravatar bsalomon@google.com2013-06-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9510 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove the non-separable blur because it is no longer used.Gravatar commit-bot@chromium.org2013-06-11
| | | | | | | | | | R=senorblanco@chromium.org, reed@google.com Author: arbesfeld@chromium.org Review URL: https://chromiumcodereview.appspot.com/16750002 git-svn-id: http://skia.googlecode.com/svn/trunk@9503 2bbb7eff-a529-9590-31e7-b0007b416f81
* Compact the clipstack for kReplace_Op'd geometryGravatar commit-bot@chromium.org2013-06-11
| | | | | | | | | | | | | | | | | | When adding a clip rect or clip path to the stack with the kReplace_Op operation, remove all previous elements within the same save frame (elements with fSaveCount equal to the current fSaveCount of the stack). This prevents unbounded growth of the clipstack for long-lived instances that gets reused. Addresses https://code.google.com/p/skia/issues/detail?id=748 R=robertphillips@google.com Author: fs@opera.com Review URL: https://chromiumcodereview.appspot.com/16160020 git-svn-id: http://skia.googlecode.com/svn/trunk@9502 2bbb7eff-a529-9590-31e7-b0007b416f81
* add drawImage to luaGravatar mike@reedtribe.org2013-06-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9500 2bbb7eff-a529-9590-31e7-b0007b416f81
* Improve batching of drawBitmap* callsGravatar robertphillips@google.com2013-06-10
| | | | | | | | https://codereview.chromium.org/16406006/ git-svn-id: http://skia.googlecode.com/svn/trunk@9499 2bbb7eff-a529-9590-31e7-b0007b416f81
* add conic support to hairlinesGravatar reed@google.com2013-06-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9493 2bbb7eff-a529-9590-31e7-b0007b416f81
* Force checking of all color, stencil and FBO allocations for SkSurface_Gpu. ↵Gravatar senorblanco@chromium.org2013-06-10
| | | | | | | | | | This fixes the software canvas fallback in Chrome. R=bsalomon@google.com Review URL: https://codereview.chromium.org/15643013 git-svn-id: http://skia.googlecode.com/svn/trunk@9487 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixed gpu perlin noise on WindowsGravatar sugoi@google.com2013-06-10
| | | | | | | | | | I just cleaned up and re-ordered some instructions to reduce the number of registers used under the register limit. Instead of looping over channels, the function now only loops over octaves and computes all 4 channels separately within each octave loop. I made a noise function to make it simpler to make the changes and I fixed the code's alignment so that it's more readable. R=bsalomon@google.com, senorblanco@chromium.org Review URL: https://codereview.chromium.org/15753005 git-svn-id: http://skia.googlecode.com/svn/trunk@9486 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Housekeeper-NightlyGravatar skia.committer@gmail.com2013-06-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9484 2bbb7eff-a529-9590-31e7-b0007b416f81
* more paint methods to luaGravatar mike@reedtribe.org2013-06-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9483 2bbb7eff-a529-9590-31e7-b0007b416f81
* add pdf lib to lua_pictures to fix linker errorGravatar mike@reedtribe.org2013-06-08
| | | | | | | | Revert "Revert "add document and textAlign support to lua"" This reverts commit f603260d7df6315788af3eadb18db556daf41c13. git-svn-id: http://skia.googlecode.com/svn/trunk@9482 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert "add document and textAlign support to lua"Gravatar mike@reedtribe.org2013-06-08
| | | | | | This reverts commit cdeacf8628757dc3464b26edd148c83bff02f43d. git-svn-id: http://skia.googlecode.com/svn/trunk@9481 2bbb7eff-a529-9590-31e7-b0007b416f81
* add document and textAlign support to luaGravatar mike@reedtribe.org2013-06-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9480 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Housekeeper-NightlyGravatar skia.committer@gmail.com2013-06-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9478 2bbb7eff-a529-9590-31e7-b0007b416f81
* add drawtext to luaGravatar mike@reedtribe.org2013-06-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9477 2bbb7eff-a529-9590-31e7-b0007b416f81
* SkDocument base for pdf, xps, etc.Gravatar reed@google.com2013-06-07
| | | | | | | | R=scroggo@google.com Review URL: https://codereview.chromium.org/16660002 git-svn-id: http://skia.googlecode.com/svn/trunk@9476 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix crash when attempting to use a font fallback chain with a custom font.Gravatar djsollen@google.com2013-06-06
| | | | | | | | This is a cherry-pick of a CL that has already been merged into Android. Review URL: https://codereview.chromium.org/16005011 git-svn-id: http://skia.googlecode.com/svn/trunk@9468 2bbb7eff-a529-9590-31e7-b0007b416f81
* separate arrays for color and coverage effects.Gravatar bsalomon@google.com2013-06-06
| | | | | | | | R=robertphillips@google.com Review URL: https://codereview.chromium.org/16180006 git-svn-id: http://skia.googlecode.com/svn/trunk@9465 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make GrGLProgram no longer depend on kNumStagesGravatar bsalomon@google.com2013-06-06
| | | | | | | | R=robertphillips@google.com Review URL: https://codereview.chromium.org/16158007 git-svn-id: http://skia.googlecode.com/svn/trunk@9462 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix leak in SkFontHost_fontconfig temporary code.Gravatar bungeman@google.com2013-06-06
| | | | | | | https://codereview.chromium.org/16525003 git-svn-id: http://skia.googlecode.com/svn/trunk@9460 2bbb7eff-a529-9590-31e7-b0007b416f81