aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Implement crop rect for lighting image filters. Changes for the CPU path ↵Gravatar senorblanco@chromium.org2013-07-26
| | | | | | | | | | | | | | were fairly straightforward: use the bounds rectangle when traversing the pixels, not the source rectangle. For the GPU path, this required modifying the signature of SkImageFilter::asNewEffect() to receive the bounds offset, so that the lighting filters could offset the light position by the offset. It also required modifying the base-class implementation of SkImageFilter::filterImageGPU() (which implements single-pass filters) to intersect against the bounds rect, to pass its offset to asNewEffect(), and to modify the caller's offset (so it's drawn in the correct place). Note: this will require rebaselining the lighting GM. Six new test cases were added, to accommodate a cropped version of each lighting filter. R=bsalomon@google.com, reed@google.com Review URL: https://codereview.chromium.org/20426002 git-svn-id: http://skia.googlecode.com/svn/trunk@10379 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make SkImage_Gpu share it's pixelref with the surface to prevent premature ↵Gravatar commit-bot@chromium.org2013-07-25
| | | | | | | | | | | | | | return to scratch pool. BUG=crbug.com/263329 TEST=Surface unit test, function Test_crbug263329 R=bsalomon@google.com, reed@google.com Author: junov@chromium.org Review URL: https://chromiumcodereview.appspot.com/20354003 git-svn-id: http://skia.googlecode.com/svn/trunk@10378 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: limit the characters we support in ToUnicode, to 0xffffGravatar edisonn@google.com2013-07-25
| | | | | | Review URL: https://codereview.chromium.org/20538002 git-svn-id: http://skia.googlecode.com/svn/trunk@10377 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: set the default background to transparent (to match ↵Gravatar edisonn@google.com2013-07-25
| | | | | | | | render_picture default), and fix a bug a with corrupt diffs Review URL: https://codereview.chromium.org/20526002 git-svn-id: http://skia.googlecode.com/svn/trunk@10376 2bbb7eff-a529-9590-31e7-b0007b416f81
* Added GM to test forthcoming bleed flagGravatar robertphillips@google.com2013-07-25
| | | | | | | | https://codereview.chromium.org/20101004/ git-svn-id: http://skia.googlecode.com/svn/trunk@10375 2bbb7eff-a529-9590-31e7-b0007b416f81
* This reverts commit 4052fd051db67bd1099fde2c4fe400cfbe1f2426.Gravatar bsalomon@google.com2013-07-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@10374 2bbb7eff-a529-9590-31e7-b0007b416f81
* reversed senses of none and bilerpGravatar humper@google.com2013-07-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@10373 2bbb7eff-a529-9590-31e7-b0007b416f81
* R=borenet@google.com, bungeman@google.com, robertphillips@google.comGravatar commit-bot@chromium.org2013-07-25
| | | | | | | | Author: bsalomon@google.com Review URL: https://chromiumcodereview.appspot.com/19862002 git-svn-id: http://skia.googlecode.com/svn/trunk@10372 2bbb7eff-a529-9590-31e7-b0007b416f81
* add basic HTTP server for viewing skpdiff resultsGravatar zachr@google.com2013-07-25
| | | | | | | | R=epoger@google.com Review URL: https://codereview.chromium.org/19929007 git-svn-id: http://skia.googlecode.com/svn/trunk@10371 2bbb7eff-a529-9590-31e7-b0007b416f81
* clean up printf usage in gmGravatar humper@google.com2013-07-25
| | | | | | | | | BUG= R=reed@google.com Review URL: https://codereview.chromium.org/20373002 git-svn-id: http://skia.googlecode.com/svn/trunk@10370 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix android buildGravatar humper@google.com2013-07-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@10369 2bbb7eff-a529-9590-31e7-b0007b416f81
* make the filter mode for GrTextureAccess an enum so we can plumb downGravatar humper@google.com2013-07-25
| | | | | | | | | | | the paint's filter modes to the GPU BUG= R=bsalomon@google.com Review URL: https://codereview.chromium.org/20362002 git-svn-id: http://skia.googlecode.com/svn/trunk@10368 2bbb7eff-a529-9590-31e7-b0007b416f81
* Transpose the samples in imagefilterscropped, and add a 1x1 blur. The latterGravatar senorblanco@chromium.org2013-07-25
| | | | | | | | | | | | exercises a different path in the GPU backend, and the former is because my tiny brain gets confused between the results of this test and imagefiltersbase. R=reed@google.com BUG= Review URL: https://codereview.chromium.org/20315002 git-svn-id: http://skia.googlecode.com/svn/trunk@10366 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add NPOT version of tilemodes GMGravatar commit-bot@chromium.org2013-07-25
| | | | | | | | | | R=reed@google.com Author: bsalomon@google.com Review URL: https://chromiumcodereview.appspot.com/20204006 git-svn-id: http://skia.googlecode.com/svn/trunk@10364 2bbb7eff-a529-9590-31e7-b0007b416f81
* experimentally enable USE_HASH for scaledimagecacheGravatar reed@google.com2013-07-25
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/20378002 git-svn-id: http://skia.googlecode.com/svn/trunk@10363 2bbb7eff-a529-9590-31e7-b0007b416f81
* use dynamic hash to speed up scaledimagecacheGravatar reed@google.com2013-07-25
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/20344002 git-svn-id: http://skia.googlecode.com/svn/trunk@10362 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix trailing comma in outptu of SkDiffContextGravatar zachr@google.com2013-07-25
| | | | | | | | R=djsollen@google.com Review URL: https://codereview.chromium.org/20324004 git-svn-id: http://skia.googlecode.com/svn/trunk@10361 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: update drawBitmap, and fic a gyp issue: gyp does not run in a ↵Gravatar edisonn@google.com2013-07-25
| | | | | | | | consistent way on various palt forms, and it generates some files in ../../../foo instead of ../foo - Solution: use the (inconvenient) Shared intermediary directory that should work on all platforms. Review URL: https://codereview.chromium.org/20328002 git-svn-id: http://skia.googlecode.com/svn/trunk@10359 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GrContext::setMaxTextureSizeOverrideGravatar robertphillips@google.com2013-07-25
| | | | | | | | https://codereview.chromium.org/20325002/ git-svn-id: http://skia.googlecode.com/svn/trunk@10358 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add lua_pictures target to tools.gypGravatar sglez@google.com2013-07-25
| | | | | | | | | BUG= R=rmistry@google.com Review URL: https://codereview.chromium.org/20321002 git-svn-id: http://skia.googlecode.com/svn/trunk@10355 2bbb7eff-a529-9590-31e7-b0007b416f81
* use namespace instead of static for template paramsGravatar reed@google.com2013-07-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@10354 2bbb7eff-a529-9590-31e7-b0007b416f81
* experimental dynamic-hash (disabled)Gravatar reed@google.com2013-07-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@10353 2bbb7eff-a529-9590-31e7-b0007b416f81
* add all four filter levels to the downsample gm, for comparison across cpu/gpuGravatar humper@google.com2013-07-25
| | | | | | | | | BUG= R=bsalomon@google.com Review URL: https://codereview.chromium.org/20317002 git-svn-id: http://skia.googlecode.com/svn/trunk@10352 2bbb7eff-a529-9590-31e7-b0007b416f81
* Performance trigger rebaselinesGravatar robertphillips@google.com2013-07-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@10345 2bbb7eff-a529-9590-31e7-b0007b416f81
* drawBitmap* cleanupGravatar robertphillips@google.com2013-07-25
| | | | | | | | https://codereview.chromium.org/19977003/ git-svn-id: http://skia.googlecode.com/svn/trunk@10342 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Housekeeper-NightlyGravatar skia.committer@gmail.com2013-07-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@10340 2bbb7eff-a529-9590-31e7-b0007b416f81
* New baselines for tests affected by r10338 (and others).Gravatar senorblanco@chromium.org2013-07-25
| | | | | | | | | TBR= BUG= Review URL: https://codereview.chromium.org/20236002 git-svn-id: http://skia.googlecode.com/svn/trunk@10339 2bbb7eff-a529-9590-31e7-b0007b416f81
* This patch implements a crop rect for SkImageFilter. It has been implemented ↵Gravatar senorblanco@chromium.org2013-07-24
| | | | | | | | | | | | | | | | | | for SkColorFilterImageFilter and SkBlurImageFilter as examples. In order to preserve the immutability of SkImageFilters, the crop rect is passed as a constructor parameter. If NULL (the default), the bounds of the input image are used, as before. This also tightens up the boundary handling for SkImageBlurFilter on the GPU backend. Where we were previously using clamping semantics, we now respect decal semantics (so we don't oversaturate the edges). This brings the GPU and raster backends into closer alignment, but will require some new baselines for the GPU tests. At a minimum, the following tests will need new baselines: imageblur, imagefiltersbase, imagefilterscropped, spritebitmap. R=reed@google.com Committed: https://code.google.com/p/skia/source/detail?r=10251 Review URL: https://codereview.chromium.org/19775006 git-svn-id: http://skia.googlecode.com/svn/trunk@10338 2bbb7eff-a529-9590-31e7-b0007b416f81
* search registered rtconf variables backwards and break when we find theGravatar humper@google.com2013-07-24
| | | | | | | | | | | first match. Patch from mozilla BUG= R=mtklein@google.com Review URL: https://codereview.chromium.org/20136003 git-svn-id: http://skia.googlecode.com/svn/trunk@10337 2bbb7eff-a529-9590-31e7-b0007b416f81
* Start from scratch on a faster SkFlatDictionary.Gravatar commit-bot@chromium.org2013-07-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is like codereview.chromium.org/19276003, except it fits in better with the existing code, doesn't leak memory, and because it's back using SkChunkFlatController it's a little faster too, now a win across the board: Slowdown bench -1.59% desk_youtubetvbrowse.skp -2.56% desk_googlehome.skp -6.40% tabl_androidpolice.skp -6.45% desk_youtubetvvideo.skp -6.91% tabl_googlecalendar.skp ... -29.70% desk_yahoogames.skp -32.17% desk_googlespreadsheet.skp -32.23% mobi_wikipedia.skp -37.16% desk_chalkboard.skp -41.57% desk_pokemonwiki.skp Overall slowdown: -22.74% running bench [640 480] picture_record_recurring_paint_dictionary NONRENDERING: cmsecs = 9.92 running bench [640 480] picture_record_unique_paint_dictionary NONRENDERING: cmsecs = 22.16 running bench [640 480] picture_record_dictionaries NONRENDERING: cmsecs = 9.18 BUG= Committed: http://code.google.com/p/skia/source/detail?r=10328 R=tomhudson@google.com, reed@google.com, scroggo@google.com Author: mtklein@google.com Review URL: https://chromiumcodereview.appspot.com/19564007 git-svn-id: http://skia.googlecode.com/svn/trunk@10336 2bbb7eff-a529-9590-31e7-b0007b416f81
* free cache in destructor, in case endContext was not called. change Resize ↵Gravatar reed@google.com2013-07-24
| | | | | | | | | | | to return bool indicating success. BUG= R=humper@google.com Review URL: https://codereview.chromium.org/20102002 git-svn-id: http://skia.googlecode.com/svn/trunk@10335 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: fix path shortcuts in python script, use os.path.join()Gravatar edisonn@google.com2013-07-24
| | | | | | Review URL: https://codereview.chromium.org/19623007 git-svn-id: http://skia.googlecode.com/svn/trunk@10334 2bbb7eff-a529-9590-31e7-b0007b416f81
* rebaseline.py: add ability to write new expectations to a different fileGravatar epoger@google.com2013-07-24
| | | | | | | | | | (instead of overwriting the original expectations file) R=zachr@google.com Review URL: https://codereview.chromium.org/19805007 git-svn-id: http://skia.googlecode.com/svn/trunk@10333 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: sets module is deprecated. use setGravatar edisonn@google.com2013-07-24
| | | | | | Review URL: https://codereview.chromium.org/20101002 git-svn-id: http://skia.googlecode.com/svn/trunk@10332 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert "Start from scratch on a faster SkFlatDictionary."Gravatar mtklein@google.com2013-07-24
| | | | | | This reverts commit fec9bfa02d5d2b27bfa2dad3e37e5825a720784d. git-svn-id: http://skia.googlecode.com/svn/trunk@10331 2bbb7eff-a529-9590-31e7-b0007b416f81
* Start from scratch on a faster SkFlatDictionary.Gravatar commit-bot@chromium.org2013-07-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is like codereview.chromium.org/19276003, except it fits in better with the existing code, doesn't leak memory, and because it's back using SkChunkFlatController it's a little faster too, now a win across the board: Slowdown bench -1.59% desk_youtubetvbrowse.skp -2.56% desk_googlehome.skp -6.40% tabl_androidpolice.skp -6.45% desk_youtubetvvideo.skp -6.91% tabl_googlecalendar.skp ... -29.70% desk_yahoogames.skp -32.17% desk_googlespreadsheet.skp -32.23% mobi_wikipedia.skp -37.16% desk_chalkboard.skp -41.57% desk_pokemonwiki.skp Overall slowdown: -22.74% running bench [640 480] picture_record_recurring_paint_dictionary NONRENDERING: cmsecs = 9.92 running bench [640 480] picture_record_unique_paint_dictionary NONRENDERING: cmsecs = 22.16 running bench [640 480] picture_record_dictionaries NONRENDERING: cmsecs = 9.18 BUG= R=tomhudson@google.com, reed@google.com, scroggo@google.com Author: mtklein@google.com Review URL: https://chromiumcodereview.appspot.com/19564007 git-svn-id: http://skia.googlecode.com/svn/trunk@10328 2bbb7eff-a529-9590-31e7-b0007b416f81
* Change double constants to floats.Gravatar jvanverth@google.com2013-07-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@10327 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add basic SVD support to SkMatrix. Allows you to pull out the x- and y-scale ↵Gravatar commit-bot@chromium.org2013-07-24
| | | | | | | | | | | | factors, sandwiched by two rotations. R=reed@google.com Author: jvanverth@google.com Review URL: https://chromiumcodereview.appspot.com/19569007 git-svn-id: http://skia.googlecode.com/svn/trunk@10322 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: explicitely use set, instead of dictionary, fails to compile in ↵Gravatar edisonn@google.com2013-07-24
| | | | | | | | some versions of python. Review URL: https://codereview.chromium.org/19804010 git-svn-id: http://skia.googlecode.com/svn/trunk@10320 2bbb7eff-a529-9590-31e7-b0007b416f81
* SkiaExamples improvements.Gravatar sglez@google.com2013-07-24
| | | | | | | | | | Make it possible for a client to write a Hello World in less than 50 lines. R=caryclark@google.com Review URL: https://codereview.chromium.org/18574002 git-svn-id: http://skia.googlecode.com/svn/trunk@10319 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: path for outputs are relative to some other folder, make them ↵Gravatar edisonn@google.com2013-07-24
| | | | | | | | absolute. Review URL: https://codereview.chromium.org/19808012 git-svn-id: http://skia.googlecode.com/svn/trunk@10318 2bbb7eff-a529-9590-31e7-b0007b416f81
* refactor duplication (shouldSkip and skip_name) into a utility functionGravatar sglez@google.com2013-07-24
| | | | | | | | | | R=caryclark@google.com, reed@google.com Committed: https://code.google.com/p/skia/source/detail?r=10280 Review URL: https://codereview.chromium.org/19807005 git-svn-id: http://skia.googlecode.com/svn/trunk@10317 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix warning of implicit cast to floatGravatar reed@google.com2013-07-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@10316 2bbb7eff-a529-9590-31e7-b0007b416f81
* all in the gypGravatar mtklein@google.com2013-07-24
| | | | | | | | | BUG= R=caryclark@google.com Review URL: https://codereview.chromium.org/19726012 git-svn-id: http://skia.googlecode.com/svn/trunk@10315 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: remove dependency on picture_utils. add utility function to ↵Gravatar edisonn@google.com2013-07-24
| | | | | | | | render SkStream into bitmap. Review URL: https://codereview.chromium.org/20087003 git-svn-id: http://skia.googlecode.com/svn/trunk@10314 2bbb7eff-a529-9590-31e7-b0007b416f81
* Rollback Nexus10, ANGLE, and Win7 expectations after r10251 revert.Gravatar fmalita@google.com2013-07-24
| | | | | | | | | | This is a revert of r10252. R=senorblanco@chromium.org Review URL: https://codereview.chromium.org/20064006 git-svn-id: http://skia.googlecode.com/svn/trunk@10313 2bbb7eff-a529-9590-31e7-b0007b416f81
* expose shadersGravatar reed@google.com2013-07-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@10312 2bbb7eff-a529-9590-31e7-b0007b416f81
* rebaseline.py: set text mimetype for all .json files, so text diffs work Gravatar epoger@google.com2013-07-24
| | | | | | | | | BUG=https://code.google.com/p/skia/issues/detail?id=1442 R=fmalita@google.com Review URL: https://codereview.chromium.org/20017009 git-svn-id: http://skia.googlecode.com/svn/trunk@10311 2bbb7eff-a529-9590-31e7-b0007b416f81
* Set all gm expected-results.json files to text mimetypeGravatar epoger@google.com2013-07-24
| | | | | | | | | BUG=https://code.google.com/p/skia/issues/detail?id=1442 R=fmalita@google.com Review URL: https://codereview.chromium.org/19577017 git-svn-id: http://skia.googlecode.com/svn/trunk@10310 2bbb7eff-a529-9590-31e7-b0007b416f81
* use SK_DECLARE_STATIC_MUTEXGravatar reed@google.com2013-07-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@10309 2bbb7eff-a529-9590-31e7-b0007b416f81