aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* use SkStream factory for files, and check for null (file-not-found) speedup ↵Gravatar reed@google.com2013-05-29
| | | | | | | | | | sampleapp's animation BUG= Review URL: https://codereview.chromium.org/16173003 git-svn-id: http://skia.googlecode.com/svn/trunk@9327 2bbb7eff-a529-9590-31e7-b0007b416f81
* Moving updateClipConservativelyUsingBounds into SkCanvasGravatar junov@chromium.org2013-05-29
| | | | | | | | | | | This method is being moved from SkPictureRecord to become a protected member of SkCanvas so that other classes derived from SkCanvas can use it. This Patch also applies the fix provided by updateClipConservativelyUsingBounds to SkPictureUtils::GatherPixelRefs BUG=https://code.google.com/p/chromium/issues/detail?id=244893 Review URL: https://codereview.chromium.org/15894005 git-svn-id: http://skia.googlecode.com/svn/trunk@9326 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert "Provide a GPU implementation of SkArithmeticMode, using a custom ↵Gravatar senorblanco@chromium.org2013-05-29
| | | | | | | | | | | | GrEffect exposed via asNewEffectOrCoeff()." This reverts commit b8ffe17b5c684f9cfff02285f27e6aa1f75c9b53. TBR=robertphillips Review URL: https://codereview.chromium.org/16115007 git-svn-id: http://skia.googlecode.com/svn/trunk@9325 2bbb7eff-a529-9590-31e7-b0007b416f81
* Provide a GPU implementation of SkArithmeticMode, using a custom GrEffect ↵Gravatar senorblanco@chromium.org2013-05-29
| | | | | | | | | | | | | | exposed via asNewEffectOrCoeff(). Doing it this way required modifying the arithmode GM to use saveLayer()/restore() rather than creating an offscreen SkBitmap, since otherwise the compositing is always done in raster mode. Fixing that in turn exposed that SkArithmeticMode did not work in Picture mode, since it wasn't flattenable. Made it so. Note: this will require rebaselining the arithmode GM (again). R=bsalomon@google.com, reed@google.com Review URL: https://codereview.chromium.org/16064002 git-svn-id: http://skia.googlecode.com/svn/trunk@9324 2bbb7eff-a529-9590-31e7-b0007b416f81
* add != operator for SkTDArrayGravatar reed@google.com2013-05-29
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/16203002 git-svn-id: http://skia.googlecode.com/svn/trunk@9323 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use updated signature for decode in empty decoder.Gravatar scroggo@google.com2013-05-29
| | | | | | | | | | | | | This allows chromium to build SkImageDecoder_empty.cpp (https://codereview.chromium.org/15960015/) until Skia has https://codereview.chromium.org/15806010/ (which is a superset of this change). R=robertphillips@google.com Review URL: https://codereview.chromium.org/15742029 git-svn-id: http://skia.googlecode.com/svn/trunk@9321 2bbb7eff-a529-9590-31e7-b0007b416f81
* Refactor rebaseline.py into functions ; no behavioral changes.Gravatar epoger@google.com2013-05-29
| | | | | | | | R=senorblanco@chromium.org Review URL: https://codereview.chromium.org/16160008 git-svn-id: http://skia.googlecode.com/svn/trunk@9318 2bbb7eff-a529-9590-31e7-b0007b416f81
* use integer math instead of float per-pixel. about a 2x speedup. not tested ↵Gravatar reed@google.com2013-05-29
| | | | | | | | | | well, so this is just experimental. BUG= Review URL: https://codereview.chromium.org/15715015 git-svn-id: http://skia.googlecode.com/svn/trunk@9317 2bbb7eff-a529-9590-31e7-b0007b416f81
* cast enum to float to fix (really bad) warningGravatar reed@google.com2013-05-29
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9316 2bbb7eff-a529-9590-31e7-b0007b416f81
* extend SkBenchmark to allow a bench to return a durationScale, which allows ↵Gravatar reed@google.com2013-05-29
| | | | | | | | | | | | | | | it to perform fewer actual interations, but report a scale factor to account for that. Thus a very slow bench can be compared head-to-head with a faster one, w/o actually forcing the tool to run for the full duration of the slower test. Extend BitmapBench to time bicubic filtering, and use this durationScale for it. Extend SkBenchmark to have setBitmapFlags(or, clear), allowing it to request a set of paint flags to be cleared, and set to be set. BUG= R=robertphillips@google.com Review URL: https://codereview.chromium.org/16069010 git-svn-id: http://skia.googlecode.com/svn/trunk@9315 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix cmykjpeg test to check if file was found.Gravatar bungeman@google.com2013-05-29
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9314 2bbb7eff-a529-9590-31e7-b0007b416f81
* Change SkStream.Gravatar bungeman@google.com2013-05-29
| | | | | | | https://codereview.chromium.org/15298009/ git-svn-id: http://skia.googlecode.com/svn/trunk@9312 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove dependency of gsutil to download ndkGravatar commit-bot@chromium.org2013-05-29
| | | | | | | | | | | | | | | | | | | | | Currently we use gsutil to download ndk. However, it requires extra steps to install, and is not convenient to configure (several steps to enable Google storage), especially for developers behind proxy (need to set config of boto). Chromium provides some python scripts to help download nacl toolchains that can meet this need well. So this patch basically borrows two python scripts from there, and makes some according changes to remove the usage of gsutil. With new script, we may also implement some advanced features, such as hash check, so that the download would be more intelligent. BUG= R=djsollen@google.com, borenet@google.com, reed@google.com Author: yang.gu@intel.com Review URL: https://chromiumcodereview.appspot.com/15951008 git-svn-id: http://skia.googlecode.com/svn/trunk@9311 2bbb7eff-a529-9590-31e7-b0007b416f81
* First pass at Comment APIGravatar robertphillips@google.com2013-05-29
| | | | | | | | https://codereview.chromium.org/13957009/ git-svn-id: http://skia.googlecode.com/svn/trunk@9310 2bbb7eff-a529-9590-31e7-b0007b416f81
* Get correct GLVersion for Mesa to avoid GrContext creation failureGravatar bsalomon@google.com2013-05-29
| | | | | | | | Path originally written by yunchao.he@intel.com Review URL: https://codereview.chromium.org/15779009/ git-svn-id: http://skia.googlecode.com/svn/trunk@9309 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Housekeeper-NightlyGravatar skia.committer@gmail.com2013-05-29
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9307 2bbb7eff-a529-9590-31e7-b0007b416f81
* use DEF_BENCHGravatar reed@google.com2013-05-28
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/16069005 git-svn-id: http://skia.googlecode.com/svn/trunk@9305 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix alpha computation in SkArithmeticMode.Gravatar senorblanco@chromium.org2013-05-28
| | | | | | | | | | Note: this will require new baselines for the arithmode GM. R=reed@google.com Review URL: https://codereview.chromium.org/15917010 git-svn-id: http://skia.googlecode.com/svn/trunk@9302 2bbb7eff-a529-9590-31e7-b0007b416f81
* Build fixGravatar junov@chromium.org2013-05-28
| | | | | | TBR=reed git-svn-id: http://skia.googlecode.com/svn/trunk@9299 2bbb7eff-a529-9590-31e7-b0007b416f81
* Changing SkDeferredCanvas to use factories for creationGravatar junov@chromium.org2013-05-28
| | | | | | | | | | | | | | | The objective of this change is to remove all calls to SkCanvas::setDevice. The factory API is hidden behind a build flag in order to ease the roll into chromium. A side-effect of the factory pattern is that it will no longer be possible to allocate a SkDeferredCanvas on the stack. This changes nothing for chrome, but it impacts skia test programs. Review URL: https://codereview.chromium.org/16040002 git-svn-id: http://skia.googlecode.com/svn/trunk@9298 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make GrContext track the current matrix, render target, and clip directly ↵Gravatar commit-bot@chromium.org2013-05-28
| | | | | | | | | | | | rather than using GrDrawState. R=robertphillips@google.com, jvanverth@google.com Author: bsalomon@google.com Review URL: https://chromiumcodereview.appspot.com/15821008 git-svn-id: http://skia.googlecode.com/svn/trunk@9297 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reland 'Add path utils, plus a test for it.'Gravatar scroggo@google.com2013-05-28
| | | | | | | | | | | | | | | Build SkPathJoin and SkBasename on windows also. Previous CL did not build on Windows because the two functions were accidentally placed inside an ifdef that did not include windows. Move the functions to the top of the file, and add a comment by the endif for clarity. Previously reviewed at https://codereview.chromium.org/15747004/ Review URL: https://codereview.chromium.org/15740024 git-svn-id: http://skia.googlecode.com/svn/trunk@9295 2bbb7eff-a529-9590-31e7-b0007b416f81
* don't unref() null (from typeface::create) you gunkyGravatar reed@google.com2013-05-28
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9294 2bbb7eff-a529-9590-31e7-b0007b416f81
* use inttoscalar to fix warningGravatar reed@google.com2013-05-28
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/15929006 git-svn-id: http://skia.googlecode.com/svn/trunk@9293 2bbb7eff-a529-9590-31e7-b0007b416f81
* use explicit conversion for int->scalarGravatar reed@google.com2013-05-28
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/16123004 git-svn-id: http://skia.googlecode.com/svn/trunk@9292 2bbb7eff-a529-9590-31e7-b0007b416f81
* add new gm for bicubic filteringGravatar reed@google.com2013-05-28
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/16123003 git-svn-id: http://skia.googlecode.com/svn/trunk@9291 2bbb7eff-a529-9590-31e7-b0007b416f81
* Split GM json schema out of display_json_results.py, for sharing with other ↵Gravatar epoger@google.com2013-05-28
| | | | | | | | | | tools R=rmistry@google.com Review URL: https://codereview.chromium.org/16155002 git-svn-id: http://skia.googlecode.com/svn/trunk@9290 2bbb7eff-a529-9590-31e7-b0007b416f81
* Decrease GPU drawn brightness for < 1 pixel wide/high rectsGravatar robertphillips@google.com2013-05-28
| | | | | | | | https://codereview.chromium.org/15715012/ git-svn-id: http://skia.googlecode.com/svn/trunk@9288 2bbb7eff-a529-9590-31e7-b0007b416f81
* check texture is not NULL to aovid segmentation fault. If the texture ↵Gravatar commit-bot@chromium.org2013-05-28
| | | | | | | | | | | | created by GrLockAndRefCachedBitmapTexture() is NULL, ColorTableEffect::Create will cause segmentation fault by GrAssert in src/gpu/GrTextureAccess.cpp. The simple patch checked texture to avoid segment fault, and returned a NULL effect to the caller. The caller will handle NULL effect, for example, it will set default effect. R=bsalomon@google.com, robertphillips@google.com Author: yunchao.he@intel.com Review URL: https://chromiumcodereview.appspot.com/15824003 git-svn-id: http://skia.googlecode.com/svn/trunk@9287 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Housekeeper-NightlyGravatar skia.committer@gmail.com2013-05-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9285 2bbb7eff-a529-9590-31e7-b0007b416f81
* Android specific changes that are upstreamed from the android framework.Gravatar djsollen@google.com2013-05-24
| | | | | | | | R=reed@google.com Review URL: https://codereview.chromium.org/15720006 git-svn-id: http://skia.googlecode.com/svn/trunk@9283 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix slowness of getImageData() for CanvasRenderingContext2D in linux due to ↵Gravatar commit-bot@chromium.org2013-05-24
| | | | | | | | | | | | | | | un-optimized format for glReadPixels This is a continuation of https://codereview.chromium.org/15331003/ BUG=242093 R=robertphillips@google.com, jun.a.jiang@intel.com, bsalomon@google.com Author: bsalomon@google.com Review URL: https://chromiumcodereview.appspot.com/15746007 git-svn-id: http://skia.googlecode.com/svn/trunk@9280 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix degenerate and near-degenerate hairlines on the gpuGravatar commit-bot@chromium.org2013-05-24
| | | | | | | | | | R=robertphillips@google.com, bsalomon@google.com Author: bsalomon@google.com Review URL: https://chromiumcodereview.appspot.com/16035002 git-svn-id: http://skia.googlecode.com/svn/trunk@9279 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert "Add path utils, plus a test for it."Gravatar scroggo@google.com2013-05-24
| | | | | | | | | | This reverts commit d172374b46cae0bd5d7c024b9848f5bdafcc6a16. This CL broke on Windows. Review URL: https://codereview.chromium.org/15986004 git-svn-id: http://skia.googlecode.com/svn/trunk@9278 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add path utils, plus a test for it.Gravatar scroggo@google.com2013-05-24
| | | | | | | | | | | | | | | | | | | | | | | | SkOSFile: Added class SkOSPath with functions for modifying strings representing path names. OSPathTest.cpp: Test of the new utilities. factory.cpp: Use SkPathJoin. gmmain and gm_expectations: Use SkOSPath::SkPathJoin instead of a local version. skimage_main.cpp: Use the new location of SkPathJoin and SkBasename. R=epoger@google.com Review URL: https://codereview.chromium.org/15747004 git-svn-id: http://skia.googlecode.com/svn/trunk@9277 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adding setSurface public API method to SkDeferredCanvasGravatar junov@chromium.org2013-05-24
| | | | | | | | | The purpose of this change is to provide an API that Blink 2D canvas layers can use to install a new render target when recovering from a lost graphics context. Review URL: https://codereview.chromium.org/15896005 git-svn-id: http://skia.googlecode.com/svn/trunk@9276 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert "Patch to prevent chromium breakage until the DEPS."Gravatar scroggo@google.com2013-05-24
| | | | | | | | This reverts commit d2a284728d30082d46b02c39d916294c6d36e11f. Review URL: https://codereview.chromium.org/16019005 git-svn-id: http://skia.googlecode.com/svn/trunk@9275 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove SkImageFilter::getInputResult(), since its return value is notGravatar senorblanco@chromium.org2013-05-24
| | | | | | | | | | | | style-compliant, and doesn't allow us to abort on failure. R=reed@google.com Committed: https://code.google.com/p/skia/source/detail?r=9245 Review URL: https://codereview.chromium.org/15600003 git-svn-id: http://skia.googlecode.com/svn/trunk@9274 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add flag to gradients to interpolate colors in premul space. Experimental ↵Gravatar reed@google.com2013-05-24
| | | | | | | | | | | API to encapsulate the shared parameters for all gradients into a struct. BUG= R=bsalomon@google.com Review URL: https://codereview.chromium.org/15893002 git-svn-id: http://skia.googlecode.com/svn/trunk@9273 2bbb7eff-a529-9590-31e7-b0007b416f81
* Move SkDrawLooper implementation to its own file.Gravatar commit-bot@chromium.org2013-05-24
| | | | | | | | | | | | | It previously lived in SkPaint.cpp. BUG= R=reed@google.com, tomhudson@chromium.org, jbroman@chromium.org Author: jbroman@chromium.org Review URL: https://chromiumcodereview.appspot.com/15896004 git-svn-id: http://skia.googlecode.com/svn/trunk@9272 2bbb7eff-a529-9590-31e7-b0007b416f81
* GM: create GmResultDigest that encapsulates digest type ("bitmap-64bitMD5") ↵Gravatar epoger@google.com2013-05-24
| | | | | | | | | | and value (12345) R=scroggo@google.com Review URL: https://codereview.chromium.org/15883004 git-svn-id: http://skia.googlecode.com/svn/trunk@9271 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Housekeeper-NightlyGravatar skia.committer@gmail.com2013-05-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9266 2bbb7eff-a529-9590-31e7-b0007b416f81
* don't reference missing headerGravatar reed@google.com2013-05-23
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/15888004 git-svn-id: http://skia.googlecode.com/svn/trunk@9265 2bbb7eff-a529-9590-31e7-b0007b416f81
* clone of https://codereview.chromium.org/15316014/ with teaksGravatar reed@google.com2013-05-23
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/15904005 git-svn-id: http://skia.googlecode.com/svn/trunk@9264 2bbb7eff-a529-9590-31e7-b0007b416f81
* use SkScalar instead of int for loops, to avoid warning in ↵Gravatar reed@google.com2013-05-23
| | | | | | | | | | canvas->translate() calls BUG= Review URL: https://codereview.chromium.org/15875012 git-svn-id: http://skia.googlecode.com/svn/trunk@9263 2bbb7eff-a529-9590-31e7-b0007b416f81
* don't overclamp cubics (see skbug.com/1316)Gravatar reed@google.com2013-05-23
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/15924003 git-svn-id: http://skia.googlecode.com/svn/trunk@9262 2bbb7eff-a529-9590-31e7-b0007b416f81
* add commentGravatar reed@google.com2013-05-23
| | | | | | | | | | add test for skbug/com/1316 BUG= Review URL: https://codereview.chromium.org/15790006 git-svn-id: http://skia.googlecode.com/svn/trunk@9261 2bbb7eff-a529-9590-31e7-b0007b416f81
* use Descriptor struct to encapsulate all the common paramaeters between our ↵Gravatar reed@google.com2013-05-23
| | | | | | | | | | | various gradient types. If we like it, might promote it to the public API. BUG= R=bsalomon@google.com Review URL: https://codereview.chromium.org/15733007 git-svn-id: http://skia.googlecode.com/svn/trunk@9260 2bbb7eff-a529-9590-31e7-b0007b416f81
* use SK_OVERRIDE and DEF_GMGravatar reed@google.com2013-05-23
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/15873004 git-svn-id: http://skia.googlecode.com/svn/trunk@9259 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove outdated debugging code now that we no longer support fixed pointGravatar commit-bot@chromium.org2013-05-23
| | | | | | | | | | R=reed@google.com, djsollen@google.com Author: djsollen@google.com Review URL: https://chromiumcodereview.appspot.com/15879003 git-svn-id: http://skia.googlecode.com/svn/trunk@9258 2bbb7eff-a529-9590-31e7-b0007b416f81