platform/upstream/libSkiaSharp.git
11 years agoFix typo in ignored-tests file
robertphillips@google.com [Thu, 17 Oct 2013 12:27:55 +0000 (12:27 +0000)]
Fix typo in ignored-tests file

git-svn-id: http://skia.googlecode.com/svn/trunk@11836 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoReplace cubic round rect corners with quads
robertphillips@google.com [Thu, 17 Oct 2013 12:17:27 +0000 (12:17 +0000)]
Replace cubic round rect corners with quads

https://codereview.chromium.org/26372006/

git-svn-id: http://skia.googlecode.com/svn/trunk@11835 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Thu, 17 Oct 2013 07:02:33 +0000 (07:02 +0000)]
Sanitizing source files in Housekeeper-Nightly

git-svn-id: http://skia.googlecode.com/svn/trunk@11834 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoReverting r11813 (ARM Skia NEON patches - 30 - Xfermode: NEON modeprocs - https:...
robertphillips@google.com [Thu, 17 Oct 2013 00:09:17 +0000 (00:09 +0000)]
Reverting r11813 (ARM Skia NEON patches - 30 - Xfermode: NEON modeprocs - https://codereview.chromium.org/26627004) due to Chromium compilation faliures.

git-svn-id: http://skia.googlecode.com/svn/trunk@11833 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoInitial baselines for skbug1719
bsalomon@google.com [Wed, 16 Oct 2013 21:27:18 +0000 (21:27 +0000)]
Initial baselines for skbug1719

Review URL: https://codereview.chromium.org/27212004

git-svn-id: http://skia.googlecode.com/svn/trunk@11832 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agotools/rebaseline.py --tests xfermodes3 drawbitmaprect scaled_tilemode_gradient tilem...
mtklein@google.com [Wed, 16 Oct 2013 21:23:18 +0000 (21:23 +0000)]
tools/rebaseline.py  --tests xfermodes3 drawbitmaprect scaled_tilemode_gradient tilemode_gradient

BUG=

Review URL: https://codereview.chromium.org/26233006

git-svn-id: http://skia.googlecode.com/svn/trunk@11831 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoupdate drawbitmap gm (part 2)
edisonn@google.com [Wed, 16 Oct 2013 20:45:00 +0000 (20:45 +0000)]
update drawbitmap gm (part 2)

Review URL: https://codereview.chromium.org/26435005

git-svn-id: http://skia.googlecode.com/svn/trunk@11830 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoUpdates to SkPDFDevice and SkDocument classes.
edisonn@google.com [Wed, 16 Oct 2013 19:49:17 +0000 (19:49 +0000)]
Updates to SkPDFDevice and SkDocument classes.
Update the SkDocument interface to allow for 1) abort won't emit pdf, 2) close can report success/failure, 3) SkCanvasSimplifier interface that will be used to simplify perspective for SkpDFDevice, 4) prepare to deprecate SkPDFDevice constructor, and route gm and render_pdfs to use SkDocument::Create pdf interface instead.  modified:   gm/gmmain.cpp  modified:   gyp/core.gyp  modified:   gyp/core.gypi  new file:   include/core/SkCanvasSimplifier.h  modified:   include/core/SkDocument.h  new file:   include/pdf/SkPDFCallbacks.h  modified:   include/pdf/SkPDFDevice.h  new file:   src/core/SkCanvasSimplifier.cpp  modified:   src/doc/SkDocument.cpp  modified:   src/doc/SkDocument_PDF.cpp  modified:   src/pdf/SkPDFDevice.cpp  modified:   src/pdf/SkPDFShader.cpp  modified:   src/utils/SkLua.cpp  modified:   tools/PdfRenderer.cpp  modified:   tools/PdfRenderer.h  modified:   tools/render_pdfs_main.cpp  modified:   tools/skhello.cpp

BUG=

Review URL: https://codereview.chromium.org/24615006

git-svn-id: http://skia.googlecode.com/svn/trunk@11829 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoBuild fix fo windows only
sugoi@google.com [Wed, 16 Oct 2013 19:34:27 +0000 (19:34 +0000)]
Build fix fo windows only

Build fix

git-svn-id: http://skia.googlecode.com/svn/trunk@11828 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoBuild fix for chromium shared component build
junov@google.com [Wed, 16 Oct 2013 19:14:42 +0000 (19:14 +0000)]
Build fix for chromium shared component build

BUG=304265
TBR=reed@google.com

Review URL: https://codereview.chromium.org/27082003

git-svn-id: http://skia.googlecode.com/svn/trunk@11827 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoDM: duh, don't calculate digests unless we're going to look at them.
commit-bot@chromium.org [Wed, 16 Oct 2013 19:13:38 +0000 (19:13 +0000)]
DM: duh, don't calculate digests unless we're going to look at them.

This doesn't cut the runtime significantly (~6s either way) but it does cut the CPU time down from ~10s to ~6s.

BUG=
R=bungeman@google.com

Author: mtklein@google.com

Review URL: https://codereview.chromium.org/27476007

git-svn-id: http://skia.googlecode.com/svn/trunk@11826 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agocatch the other case where we need to see if fScaledBitmap.lockPixels() might have...
reed@google.com [Wed, 16 Oct 2013 19:13:29 +0000 (19:13 +0000)]
catch the other case where we need to see if fScaledBitmap.lockPixels() might have failed

2nd-half clone of https://codereview.chromium.org/26273006/

BUG=chromium:295895

Review URL: https://codereview.chromium.org/26973006

git-svn-id: http://skia.googlecode.com/svn/trunk@11825 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoClear out SK_SCALAR_IS_FLOAT from SkRadialGradient, and merge the logic for radial_mi...
commit-bot@chromium.org [Wed, 16 Oct 2013 18:59:44 +0000 (18:59 +0000)]
Clear out SK_SCALAR_IS_FLOAT from SkRadialGradient, and merge the logic for radial_mirror and radial_repeat.

New radial/repeated bench is 10-20x faster now using float instead of fixed; the rest are unaffected.

BUG=
R=reed@google.com

Author: mtklein@google.com

Review URL: https://codereview.chromium.org/26410003

git-svn-id: http://skia.googlecode.com/svn/trunk@11824 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd initial support ofr multi-threaded execution
djsollen@google.com [Wed, 16 Oct 2013 18:36:49 +0000 (18:36 +0000)]
add initial support ofr multi-threaded execution

Review URL: https://codereview.chromium.org/27541003

git-svn-id: http://skia.googlecode.com/svn/trunk@11823 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoImplement perspective for bitmaps in pdf.
edisonn@google.com [Wed, 16 Oct 2013 18:32:35 +0000 (18:32 +0000)]
Implement perspective for bitmaps in pdf.

R=vandebo@chromium.org

Review URL: https://codereview.chromium.org/27236007

git-svn-id: http://skia.googlecode.com/svn/trunk@11822 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFix DM build failures:
commit-bot@chromium.org [Wed, 16 Oct 2013 18:21:03 +0000 (18:21 +0000)]
Fix DM build failures:
  - forgot tool_main;
  - skip building where skia_gpu is false;
  - lots of scalar -> int warnings;
  - stray return on a void method;
  - stifle warning about a uint32_t cast to bool

BUG=
R=bungeman@google.com

Author: mtklein@google.com

Review URL: https://codereview.chromium.org/26468005

git-svn-id: http://skia.googlecode.com/svn/trunk@11821 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSplit out GrBitmapTextContext from GrTextContext.
jvanverth@google.com [Wed, 16 Oct 2013 18:15:34 +0000 (18:15 +0000)]
Split out GrBitmapTextContext from GrTextContext.

This is a stepping stone to having a variety of different text context types
(bitmaps, distance fields, NV path rendering).

R=bsalomon@google.com

Review URL: https://codereview.chromium.org/27199002

git-svn-id: http://skia.googlecode.com/svn/trunk@11820 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMake CropRect immutable after construction.
senorblanco@chromium.org [Wed, 16 Oct 2013 18:07:48 +0000 (18:07 +0000)]
Make CropRect immutable after construction.

BUG=
R=reed@google.com

Review URL: https://codereview.chromium.org/27490005

git-svn-id: http://skia.googlecode.com/svn/trunk@11819 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd display of filterLevel to debugger
robertphillips@google.com [Wed, 16 Oct 2013 17:53:18 +0000 (17:53 +0000)]
Add display of filterLevel to debugger

https://codereview.chromium.org/27525002/

git-svn-id: http://skia.googlecode.com/svn/trunk@11818 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoThird wave of Win64 warning cleanup
robertphillips@google.com [Wed, 16 Oct 2013 17:48:11 +0000 (17:48 +0000)]
Third wave of Win64 warning cleanup

https://codereview.chromium.org/27487003/

git-svn-id: http://skia.googlecode.com/svn/trunk@11817 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agocheck of fScaledBitmap failed to lock
reed@google.com [Wed, 16 Oct 2013 17:34:17 +0000 (17:34 +0000)]
check of fScaledBitmap failed to lock

BUG=

Review URL: https://codereview.chromium.org/27530003

git-svn-id: http://skia.googlecode.com/svn/trunk@11816 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRemove unused header SkImageTypes.h
commit-bot@chromium.org [Wed, 16 Oct 2013 17:02:28 +0000 (17:02 +0000)]
Remove unused header SkImageTypes.h

R=reed@google.com

Author: tfarina@chromium.org

Review URL: https://codereview.chromium.org/27281003

git-svn-id: http://skia.googlecode.com/svn/trunk@11815 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMore displacement GM rebaselines. Also remove displacement from ignored-tests.txt...
senorblanco@chromium.org [Wed, 16 Oct 2013 16:25:21 +0000 (16:25 +0000)]
More displacement GM rebaselines. Also remove displacement from ignored-tests.txt, since it should now be passing on all platforms.

TBR=

Review URL: https://codereview.chromium.org/27533003

git-svn-id: http://skia.googlecode.com/svn/trunk@11814 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoARM Skia NEON patches - 30 - Xfermode: NEON modeprocs
commit-bot@chromium.org [Wed, 16 Oct 2013 16:24:08 +0000 (16:24 +0000)]
ARM Skia NEON patches - 30 - Xfermode: NEON modeprocs

Xfermode: NEON implementation of SIMD procs

This patch contains a NEON implementation for a number of Xfermodes.
It provides a big speedup on Xfermode benchmarks (currently up to 3x
with gcc4.7 but up to 10x when gcc produces optimal code for it).

Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
BUG=

Committed: http://code.google.com/p/skia/source/detail?r=11777

R=djsollen@google.com, mtklein@google.com, reed@google.com, robertphillips@google.com

Author: kevin.petit.arm@gmail.com

Review URL: https://codereview.chromium.org/26627004

git-svn-id: http://skia.googlecode.com/svn/trunk@11813 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRemove support for SK_CROP_RECT_IS_INT, now that it is no longer used in Blink or...
senorblanco@chromium.org [Wed, 16 Oct 2013 15:46:00 +0000 (15:46 +0000)]
Remove support for SK_CROP_RECT_IS_INT, now that it is no longer used in Blink or Chrome.

BUG=
R=reed@google.com, reed

Review URL: https://codereview.chromium.org/27521002

git-svn-id: http://skia.googlecode.com/svn/trunk@11812 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd hooks for external run-time reference adoption checks to SkRefCnt.
commit-bot@chromium.org [Wed, 16 Oct 2013 15:15:58 +0000 (15:15 +0000)]
Add hooks for external run-time reference adoption checks to SkRefCnt.

The reference adoption checks are to help detect memory
leaks and bad usage when using SkRefCnt subclasses with
Blink's RefPtr.

BUG=crbug.com/304265
R=reed@google.com, bungeman@google.com

Author: junov@chromium.org

Review URL: https://codereview.chromium.org/25432003

git-svn-id: http://skia.googlecode.com/svn/trunk@11811 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd disabled tests, in pref for experimental isRect behavior
reed@google.com [Wed, 16 Oct 2013 15:14:04 +0000 (15:14 +0000)]
add disabled tests, in pref for experimental isRect behavior

BUG=
R=bsalomon@google.com

Review URL: https://codereview.chromium.org/27513003

git-svn-id: http://skia.googlecode.com/svn/trunk@11810 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd --add-ignored option to rebaseline.py
bsalomon@google.com [Wed, 16 Oct 2013 15:10:45 +0000 (15:10 +0000)]
Add --add-ignored option to rebaseline.py

R=senorblanco@chromium.org, epoger@google.com
BUG=skia:1600

Review URL: https://codereview.chromium.org/27517002

git-svn-id: http://skia.googlecode.com/svn/trunk@11809 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoUpdate skpdiff to include a name with each file.
djsollen@google.com [Wed, 16 Oct 2013 15:00:11 +0000 (15:00 +0000)]
Update skpdiff to include a name with each file.

R=caryclark@google.com

Review URL: https://codereview.chromium.org/27512002

git-svn-id: http://skia.googlecode.com/svn/trunk@11808 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMake sure attribute indexes are correct after restoring vertex attributes
commit-bot@chromium.org [Wed, 16 Oct 2013 14:43:12 +0000 (14:43 +0000)]
Make sure attribute indexes are correct after restoring vertex attributes

Fix an assert due to
GrDrawState::CommonState::fFixedFunctionVertexAttribIndices getting
out of sync.  The assertion in GrDrawState::CommonState::operator==
would fire after using AutoVertexAttribRestore.
AutoVertexAttribRestore would change GrDrawState::fCommon.fVAPtr and
fVACount without updating
GrDrawState::fCommon.fFixedFunctionVertexAttribIndices.

R=jvanverth@google.com, bsalomon@google.com, robertphillips@google.com

Author: kkinnunen@nvidia.com

Review URL: https://codereview.chromium.org/26922004

git-svn-id: http://skia.googlecode.com/svn/trunk@11807 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRebaseline complexclip tests on GPU and remove them from ignored-tests
bsalomon@google.com [Wed, 16 Oct 2013 14:15:32 +0000 (14:15 +0000)]
Rebaseline complexclip tests on GPU and remove them from ignored-tests

Review URL: https://codereview.chromium.org/27515002

git-svn-id: http://skia.googlecode.com/svn/trunk@11806 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agodetach blur result texture when it is the same texture used to render path mask
commit-bot@chromium.org [Wed, 16 Oct 2013 13:53:54 +0000 (13:53 +0000)]
detach blur result texture when it is the same texture used to render path mask

R=robertphillips@google.com

Author: bsalomon@google.com

Review URL: https://codereview.chromium.org/26968006

git-svn-id: http://skia.googlecode.com/svn/trunk@11805 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoremove dm from everything
mtklein@google.com [Wed, 16 Oct 2013 13:18:43 +0000 (13:18 +0000)]
remove dm from everything

git-svn-id: http://skia.googlecode.com/svn/trunk@11804 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoforce readbuffer clients to use specialized readFoo for flattenables
reed@google.com [Wed, 16 Oct 2013 13:05:06 +0000 (13:05 +0000)]
force readbuffer clients to use specialized readFoo for flattenables

BUG=
R=mtklein@google.com

Review URL: https://codereview.chromium.org/26702002

git-svn-id: http://skia.googlecode.com/svn/trunk@11803 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agodm is like gm, but faster and with fewer features.
mtklein@google.com [Wed, 16 Oct 2013 13:02:15 +0000 (13:02 +0000)]
dm is like gm, but faster and with fewer features.

This is sort of the near-minimal proof-of-concept skeleton.

  - It can run existing GMs.
  - It supports most configs (just not PDF).
  - --replay is the only "fancy" feature it currently supports

Hopefully you will be disturbed by its speed.

BUG=
R=epoger@google.com

Review URL: https://codereview.chromium.org/22839016

git-svn-id: http://skia.googlecode.com/svn/trunk@11802 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agotexdata gm: allocate gTextureData on the heap.
commit-bot@chromium.org [Wed, 16 Oct 2013 11:50:50 +0000 (11:50 +0000)]
texdata gm: allocate gTextureData on the heap.

This GM is triggering a stack overflow on my laptop when I run it with dm.  As
I understand it, the default stack size on a Mac is 64K, but this allocates 640K.

BUG=
R=bsalomon@google.com, robertphillips@google.com

Author: mtklein@google.com

Review URL: https://codereview.chromium.org/26440006

git-svn-id: http://skia.googlecode.com/svn/trunk@11801 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Wed, 16 Oct 2013 07:02:24 +0000 (07:02 +0000)]
Sanitizing source files in Housekeeper-Nightly

git-svn-id: http://skia.googlecode.com/svn/trunk@11800 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoReverting r11777 (ARM Skia NEON patches - 30 - Xfermode: NEON modeprocs) due to Chrom...
robertphillips@google.com [Wed, 16 Oct 2013 01:12:38 +0000 (01:12 +0000)]
Reverting r11777 (ARM Skia NEON patches - 30 - Xfermode: NEON modeprocs) due to Chromium compilation failure

git-svn-id: http://skia.googlecode.com/svn/trunk@11799 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoGuard colorNames variable under SK_SUPPORT_UNITTEST.
commit-bot@chromium.org [Tue, 15 Oct 2013 23:01:08 +0000 (23:01 +0000)]
Guard colorNames variable under SK_SUPPORT_UNITTEST.

That way clang does not complain with unneeded-internal-declaration warning,
because otherwise to clang this variable is unused and thus it won't
emit code for it.

The warning is:
../../src/utils/SkParseColor.cpp:35:3: error: variable 'colorNames' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]
} colorNames[] = {

R=bsalomon@google.com, robertphillips@google.com

Author: tfarina@chromium.org

Review URL: https://codereview.chromium.org/27229004

git-svn-id: http://skia.googlecode.com/svn/trunk@11798 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMore new baselines for displacement GM.
senorblanco@chromium.org [Tue, 15 Oct 2013 23:00:26 +0000 (23:00 +0000)]
More new baselines for displacement GM.

TBR=

Review URL: https://codereview.chromium.org/27420003

git-svn-id: http://skia.googlecode.com/svn/trunk@11797 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFix test name in ignored-tests.txt
bsalomon@google.com [Tue, 15 Oct 2013 22:08:53 +0000 (22:08 +0000)]
Fix test name in ignored-tests.txt

git-svn-id: http://skia.googlecode.com/svn/trunk@11796 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFirst round of new baselines for displacement GM.
senorblanco@chromium.org [Tue, 15 Oct 2013 21:40:50 +0000 (21:40 +0000)]
First round of new baselines for displacement GM.

TBR=bsalomon
BUG=

Review URL: https://codereview.chromium.org/27411002

git-svn-id: http://skia.googlecode.com/svn/trunk@11795 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd failing complex clip gpu tests to ignored-tests.txt
bsalomon@google.com [Tue, 15 Oct 2013 21:20:26 +0000 (21:20 +0000)]
Add failing complex clip gpu tests to ignored-tests.txt

git-svn-id: http://skia.googlecode.com/svn/trunk@11794 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agorebaseline some of the complex clip aa gpu tests and direct write blurs
bsalomon@google.com [Tue, 15 Oct 2013 20:58:50 +0000 (20:58 +0000)]
rebaseline some of the complex clip aa gpu tests and direct write blurs

git-svn-id: http://skia.googlecode.com/svn/trunk@11793 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRemove SkDataTable from SkFlattenable hierarchy.
commit-bot@chromium.org [Tue, 15 Oct 2013 20:39:57 +0000 (20:39 +0000)]
Remove SkDataTable from SkFlattenable hierarchy.

As far as I can tell, we never really needed this.  No code outside the unit
test calls this code.

BUG=
R=reed@google.com

Author: mtklein@google.com

Review URL: https://codereview.chromium.org/26223009

git-svn-id: http://skia.googlecode.com/svn/trunk@11792 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRemove SkColorTable from SkFlattenable hierarchy.
commit-bot@chromium.org [Tue, 15 Oct 2013 20:36:16 +0000 (20:36 +0000)]
Remove SkColorTable from SkFlattenable hierarchy.

BUG=
R=reed@google.com

Author: mtklein@google.com

Review URL: https://codereview.chromium.org/27392002

git-svn-id: http://skia.googlecode.com/svn/trunk@11791 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoTruly ignore failures in skimage.
scroggo@google.com [Tue, 15 Oct 2013 20:29:37 +0000 (20:29 +0000)]
Truly ignore failures in skimage.

If the expectation is set to ignore failures, do not return a
negative 1 (indicating a failure) when a successful decode
does not match the expectation.

If the file could not be decoded at all, report this to the
user depending on the input expectations file:

No expectations:
Report failure. The user wanted to know if the file could be
decoded.

Expectations expected a valid result:
Report failure. The decode should have matched the result.

Empty expectations:
Print a message that the expectation was missing, but still
return success from skimage, since this is a newly added file
(i.e. it has no expectation yet).

Ignore failure:
Return success from skimage, since it is a known failure.

Update the self tests to ensure these behaviors.

R=epoger@google.com

Review URL: https://codereview.chromium.org/22293006

git-svn-id: http://skia.googlecode.com/svn/trunk@11790 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoreturn false if we can't scale, to force us to try to lock the original and then...
reed@google.com [Tue, 15 Oct 2013 20:14:00 +0000 (20:14 +0000)]
return false if we can't scale, to force us to try to lock the original and then proceed

BUG=
R=wangxianzhu@chromium.org

Review URL: https://codereview.chromium.org/27382002

git-svn-id: http://skia.googlecode.com/svn/trunk@11789 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agorebaseline_server: add --editable and --reload flags
epoger@google.com [Tue, 15 Oct 2013 20:10:33 +0000 (20:10 +0000)]
rebaseline_server: add --editable and --reload flags

This is a variation on the --browseonly flag we came up with in
https://codereview.chromium.org/24274003/#msg6 .

The long-lived "view only" server will probably be run like this:
server.py --export --reload 300

And when rebaselining you'll run your own server like this:
server.py --editable

(SkipBuildbotRuns)

R=jcgregorio@google.com

Review URL: https://codereview.chromium.org/27218005

git-svn-id: http://skia.googlecode.com/svn/trunk@11788 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agotest for failing pixelref (crashes, so disable for now)
reed@google.com [Tue, 15 Oct 2013 20:05:24 +0000 (20:05 +0000)]
test for failing pixelref (crashes, so disable for now)

test for a pixelref that fails to lock

BUG=

Review URL: https://codereview.chromium.org/26539012

git-svn-id: http://skia.googlecode.com/svn/trunk@11787 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoTurn clear-to-white-then-intersect clips into clear-to-black-then-replace
commit-bot@chromium.org [Tue, 15 Oct 2013 20:04:07 +0000 (20:04 +0000)]
Turn clear-to-white-then-intersect clips into clear-to-black-then-replace

R=robertphillips@google.com, brian@thesalomons.net

Author: bsalomon@google.com

Review URL: https://codereview.chromium.org/27170003

git-svn-id: http://skia.googlecode.com/svn/trunk@11786 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRemove obsolete CityHash conditional.
commit-bot@chromium.org [Tue, 15 Oct 2013 20:03:59 +0000 (20:03 +0000)]
Remove obsolete CityHash conditional.

BUG=
R=bungeman@google.com

Author: mtklein@google.com

Review URL: https://codereview.chromium.org/26172003

git-svn-id: http://skia.googlecode.com/svn/trunk@11785 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFix Win warning-as-error.
senorblanco@chromium.org [Tue, 15 Oct 2013 19:30:58 +0000 (19:30 +0000)]
Fix Win warning-as-error.

TBR=edisonn
BUG=

Review URL: https://codereview.chromium.org/27391002

git-svn-id: http://skia.googlecode.com/svn/trunk@11783 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd crop rect support for SkDisplacementMapEffect (raster and GPU paths).
senorblanco@chromium.org [Tue, 15 Oct 2013 19:02:43 +0000 (19:02 +0000)]
Add crop rect support for SkDisplacementMapEffect (raster and GPU paths).
Covered by new test cases added to displacement GM (will require rebaseline).

R=bsalomon@google.com

Review URL: https://codereview.chromium.org/26531002

git-svn-id: http://skia.googlecode.com/svn/trunk@11782 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFix off by one error in last advanceCount in SkFontHost_FreeType.
bungeman@google.com [Tue, 15 Oct 2013 18:50:00 +0000 (18:50 +0000)]
Fix off by one error in last advanceCount in SkFontHost_FreeType.

R=robertphillips@google.com

Review URL: https://codereview.chromium.org/27338003

git-svn-id: http://skia.googlecode.com/svn/trunk@11781 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agogpu rebaselines
bsalomon@google.com [Tue, 15 Oct 2013 17:51:38 +0000 (17:51 +0000)]
gpu rebaselines

Review URL: https://codereview.chromium.org/27347004

git-svn-id: http://skia.googlecode.com/svn/trunk@11779 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSecond wave of Win64 warning cleanup
robertphillips@google.com [Tue, 15 Oct 2013 17:47:36 +0000 (17:47 +0000)]
Second wave of Win64 warning cleanup

https://codereview.chromium.org/27343002/

git-svn-id: http://skia.googlecode.com/svn/trunk@11778 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoARM Skia NEON patches - 30 - Xfermode: NEON modeprocs
commit-bot@chromium.org [Tue, 15 Oct 2013 16:18:40 +0000 (16:18 +0000)]
ARM Skia NEON patches - 30 - Xfermode: NEON modeprocs

Xfermode: NEON implementation of SIMD procs

This patch contains a NEON implementation for a number of Xfermodes.
It provides a big speedup on Xfermode benchmarks (currently up to 3x
with gcc4.7 but up to 10x when gcc produces optimal code for it).

Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
BUG=
R=djsollen@google.com, mtklein@google.com, reed@google.com

Author: kevin.petit.arm@gmail.com

Review URL: https://codereview.chromium.org/26627004

git-svn-id: http://skia.googlecode.com/svn/trunk@11777 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoaccount for inverse-paths when we prealloc storage in the rgn-builder
reed@google.com [Tue, 15 Oct 2013 15:44:35 +0000 (15:44 +0000)]
account for inverse-paths when we prealloc storage in the rgn-builder

test inversepath->rgn

BUG=
R=caryclark@google.com

Review URL: https://codereview.chromium.org/27222005

git-svn-id: http://skia.googlecode.com/svn/trunk@11776 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agomeant to DISABLE this test
reed@google.com [Tue, 15 Oct 2013 15:40:32 +0000 (15:40 +0000)]
meant to DISABLE this test

git-svn-id: http://skia.googlecode.com/svn/trunk@11775 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd test for https://code.google.com/p/skia/issues/detail?id=1706
reed@google.com [Tue, 15 Oct 2013 15:35:29 +0000 (15:35 +0000)]
add test for https://code.google.com/p/skia/issues/detail?id=1706

BUG=

Review URL: https://codereview.chromium.org/27344002

git-svn-id: http://skia.googlecode.com/svn/trunk@11774 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSkRectShaderImageFilter: add a new factory method which takes a CropRect.
senorblanco@chromium.org [Tue, 15 Oct 2013 15:25:18 +0000 (15:25 +0000)]
SkRectShaderImageFilter: add a new factory method which takes a CropRect.
This will become the preferred API, and the old Create method will be deprecated.

R=reed@google.com, reed
BUG=

Review URL: https://codereview.chromium.org/26220004

git-svn-id: http://skia.googlecode.com/svn/trunk@11773 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoremove clipstack/region bounds assertion
commit-bot@chromium.org [Tue, 15 Oct 2013 15:14:43 +0000 (15:14 +0000)]
remove clipstack/region bounds assertion

BUG=skia_1720
R=robertphillips@google.com

Author: bsalomon@google.com

Review URL: https://codereview.chromium.org/26237010

git-svn-id: http://skia.googlecode.com/svn/trunk@11772 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFix build break in assert
bsalomon@google.com [Tue, 15 Oct 2013 14:35:06 +0000 (14:35 +0000)]
Fix build break in assert

git-svn-id: http://skia.googlecode.com/svn/trunk@11771 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoseparate state for msaa renderability
commit-bot@chromium.org [Tue, 15 Oct 2013 14:18:16 +0000 (14:18 +0000)]
separate state for msaa renderability

R=robertphillips@google.com, brian@thesalomons.net

Author: bsalomon@google.com

Review URL: https://codereview.chromium.org/26695005

git-svn-id: http://skia.googlecode.com/svn/trunk@11770 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Tue, 15 Oct 2013 07:02:27 +0000 (07:02 +0000)]
Sanitizing source files in Housekeeper-Nightly

git-svn-id: http://skia.googlecode.com/svn/trunk@11769 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSuppresses failing test due to change of bench_graph_svg. Will fix later.
bensong@google.com [Tue, 15 Oct 2013 00:35:18 +0000 (00:35 +0000)]
Suppresses failing test due to change of bench_graph_svg. Will fix later.
Review URL: https://codereview.chromium.org/26894004

git-svn-id: http://skia.googlecode.com/svn/trunk@11766 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoChanges bench to output with git hash filename; cleans up bench_graph_svg to only...
bensong@google.com [Tue, 15 Oct 2013 00:08:14 +0000 (00:08 +0000)]
Changes bench to output with git hash filename; cleans up bench_graph_svg to only handle bench alerts; renames it to check_bench_regressions.
Review URL: https://codereview.chromium.org/26592010

git-svn-id: http://skia.googlecode.com/svn/trunk@11765 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoStart cleaning up 64bit Win warnings
robertphillips@google.com [Mon, 14 Oct 2013 21:53:24 +0000 (21:53 +0000)]
Start cleaning up 64bit Win warnings

https://codereview.chromium.org/27192003/

git-svn-id: http://skia.googlecode.com/svn/trunk@11764 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRuntime configuration setting for suppressing JPEG decoder errors.
halcanary@google.com [Mon, 14 Oct 2013 20:08:48 +0000 (20:08 +0000)]
Runtime configuration setting for suppressing JPEG decoder errors.

Add new runtime config variable, images.jpeg.suppressDecoderErrors
which defaults to false in Debug and true otherwise.  When Jpeg errors
are suppressed and an error happens, SkJPEGImageDecoder::onDecode()
will return silently false (Consequently, so will SkImageDecoder's
DecodeFile() and DecodeMemory() functions).

Also, the test_image_decoder program now respects runtime
configuration settings.

BUG=skia:1680
R=scroggo@google.com

Review URL: https://codereview.chromium.org/27230002

git-svn-id: http://skia.googlecode.com/svn/trunk@11763 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agochange SkAnnotation to not inherit from SkFlattenable (does not need dynamic factories)
reed@google.com [Mon, 14 Oct 2013 20:02:44 +0000 (20:02 +0000)]
change SkAnnotation to not inherit from SkFlattenable (does not need dynamic factories)

BUG=
R=scroggo@google.com

Review URL: https://codereview.chromium.org/26606004

git-svn-id: http://skia.googlecode.com/svn/trunk@11762 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoswizzle color table if necessary
commit-bot@chromium.org [Mon, 14 Oct 2013 18:29:23 +0000 (18:29 +0000)]
swizzle color table if necessary

R=reed@google.com

Author: bsalomon@google.com

Review URL: https://codereview.chromium.org/27224003

git-svn-id: http://skia.googlecode.com/svn/trunk@11761 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdding SkLumaColorFilter baselines.
fmalita@google.com [Mon, 14 Oct 2013 17:13:35 +0000 (17:13 +0000)]
Adding SkLumaColorFilter baselines.

Review URL: https://codereview.chromium.org/27213003

git-svn-id: http://skia.googlecode.com/svn/trunk@11760 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoremove SkDataSet, and just store a key/value in SkAnnotation
reed@google.com [Mon, 14 Oct 2013 16:49:15 +0000 (16:49 +0000)]
remove SkDataSet, and just store a key/value in SkAnnotation

BUG=
R=mtklein@google.com

Review URL: https://codereview.chromium.org/27208002

git-svn-id: http://skia.googlecode.com/svn/trunk@11759 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRemove need for readFlattenableT from SkLightingImageFilter.
commit-bot@chromium.org [Mon, 14 Oct 2013 16:28:56 +0000 (16:28 +0000)]
Remove need for readFlattenableT from SkLightingImageFilter.

This will need new picture version.

BUG=
R=reed@android.com, sugoi@google.com, senorblanco@chromium.org, reed@google.com

Author: mtklein@google.com

Review URL: https://codereview.chromium.org/26594008

git-svn-id: http://skia.googlecode.com/svn/trunk@11758 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agohandle configuration variables longer than 30 characters long
humper@google.com [Mon, 14 Oct 2013 16:27:30 +0000 (16:27 +0000)]
handle configuration variables longer than 30 characters long

BUG=
R=bsalomon@google.com, halcanary@google.com, reed@google.com

Review URL: https://codereview.chromium.org/26206003

git-svn-id: http://skia.googlecode.com/svn/trunk@11757 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMove renderable config list to GrDrawTargetCaps
commit-bot@chromium.org [Mon, 14 Oct 2013 15:33:45 +0000 (15:33 +0000)]
Move renderable config list to GrDrawTargetCaps

R=robertphillips@google.com

Author: bsalomon@google.com

Review URL: https://codereview.chromium.org/26342006

git-svn-id: http://skia.googlecode.com/svn/trunk@11756 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agosave/restore the canvas around every bench draw call
commit-bot@chromium.org [Mon, 14 Oct 2013 15:28:01 +0000 (15:28 +0000)]
save/restore the canvas around every bench draw call

BUG=

Committed: http://code.google.com/p/skia/source/detail?r=11728

R=djsollen@google.com, reed@google.com

Author: mtklein@google.com

Review URL: https://codereview.chromium.org/26848013

git-svn-id: http://skia.googlecode.com/svn/trunk@11755 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSkData need not be a Flattenable, since it does not need subclass/factories
reed@google.com [Mon, 14 Oct 2013 14:33:11 +0000 (14:33 +0000)]
SkData need not be a Flattenable, since it does not need subclass/factories

BUG=
R=mtklein@google.com

Review URL: https://codereview.chromium.org/26928002

git-svn-id: http://skia.googlecode.com/svn/trunk@11754 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoUpdate Housekeeper-PerCommit after adding a new type of gm result.
edisonn@google.com [Mon, 14 Oct 2013 14:31:14 +0000 (14:31 +0000)]
Update Housekeeper-PerCommit after adding a new type of gm result.

R=epoger@google.com

Review URL: https://codereview.chromium.org/27191002

git-svn-id: http://skia.googlecode.com/svn/trunk@11753 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSpin off incidental changes from DM CL (22839016).
commit-bot@chromium.org [Mon, 14 Oct 2013 14:15:28 +0000 (14:15 +0000)]
Spin off incidental changes from DM CL (22839016).

BUG=
R=epoger@google.com, bsalomon@google.com

Author: mtklein@google.com

Review URL: https://codereview.chromium.org/27023004

git-svn-id: http://skia.googlecode.com/svn/trunk@11752 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd SkPDFDeviceFlatenner which extends SkPDFDevice to add support to flatten the...
commit-bot@chromium.org [Mon, 14 Oct 2013 13:42:12 +0000 (13:42 +0000)]
Add SkPDFDeviceFlatenner which extends SkPDFDevice to add support to flatten the path and the text when we have perspective.
prepare to deprecate SkPDFDevice constructor, and route gm and render_pdfs to use SkDocument::Create pdf interface instead. - controlled by a flag
add comments where we are supposed to flatten other features (paint, shaders, ... )

R=reed@google.com, bungeman@google.com, scroggo@google.com, vandebo@chromium.org, bsalomon@google.com

Author: edisonn@google.com

Review URL: https://codereview.chromium.org/24811002

git-svn-id: http://skia.googlecode.com/svn/trunk@11751 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRemove SkLumaXfermode.
commit-bot@chromium.org [Mon, 14 Oct 2013 13:11:11 +0000 (13:11 +0000)]
Remove SkLumaXfermode.

Possibly the shortest-lived Skia feature, SkLumaXfermode is now replaced
by a color filter implementation (SkLumaColorFilter). All known existing
clients (Blink) have been converted.

R=reed@google.com

Author: fmalita@chromium.org

Review URL: https://codereview.chromium.org/26916002

git-svn-id: http://skia.googlecode.com/svn/trunk@11750 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSimplify code for configuring suppression of ImageDecoder warnings
halcanary@google.com [Mon, 14 Oct 2013 12:49:15 +0000 (12:49 +0000)]
Simplify code for configuring suppression of ImageDecoder warnings

For images.png.suppressDecoderWarnings and
images.jpeg.suppressDecoderWarnings, the default behavior is now:

Debug - DON'T suppress
Developer Release - suppress
Release - suppress

This behavior can be changed in Debug and in Developer through
the SkRTConf mechanism.

BUG=skia:1680
R=caryclark@google.com

Review URL: https://codereview.chromium.org/26863003

git-svn-id: http://skia.googlecode.com/svn/trunk@11749 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSampleApp - reduce unnecessary verbosity [with --picture $path]
halcanary@google.com [Mon, 14 Oct 2013 12:47:37 +0000 (12:47 +0000)]
SampleApp - reduce unnecessary verbosity [with --picture $path]

Before this change, `SampleApp --picture $path` prints out usage (as
well as --pictureDir) as if there was a syntax error in the command
line arguments.

BUG=skia:1677
R=reed@google.com

Review URL: https://codereview.chromium.org/24503003

git-svn-id: http://skia.googlecode.com/svn/trunk@11748 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRemove unnamed namespace usage from tests.
commit-bot@chromium.org [Sat, 12 Oct 2013 17:25:17 +0000 (17:25 +0000)]
Remove unnamed namespace usage from tests.

Skia code prefers static over unnamed namespace.

BUG=None
TEST=None
R=bsalomon@google.com, robertphillips@google.com

Author: tfarina@chromium.org

Review URL: https://codereview.chromium.org/26962002

git-svn-id: http://skia.googlecode.com/svn/trunk@11747 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Sat, 12 Oct 2013 07:02:05 +0000 (07:02 +0000)]
Sanitizing source files in Housekeeper-Nightly

git-svn-id: http://skia.googlecode.com/svn/trunk@11746 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd stdio include to SkFonrConfigParser_android.
bungeman@google.com [Fri, 11 Oct 2013 20:13:41 +0000 (20:13 +0000)]
Add stdio include to SkFonrConfigParser_android.

git-svn-id: http://skia.googlecode.com/svn/trunk@11745 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoTry to work around VS2010 intsafe/stdint multiple define issues.
bungeman@google.com [Fri, 11 Oct 2013 20:04:08 +0000 (20:04 +0000)]
Try to work around VS2010 intsafe/stdint multiple define issues.

git-svn-id: http://skia.googlecode.com/svn/trunk@11744 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd stdio include to SkDebug_android.
bungeman@google.com [Fri, 11 Oct 2013 19:47:36 +0000 (19:47 +0000)]
Add stdio include to SkDebug_android.

git-svn-id: http://skia.googlecode.com/svn/trunk@11743 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd stdio include for Android specific code in SkRegion.
bungeman@google.com [Fri, 11 Oct 2013 19:23:56 +0000 (19:23 +0000)]
Add stdio include for Android specific code in SkRegion.

git-svn-id: http://skia.googlecode.com/svn/trunk@11741 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd stdio include to skdiff_image.
bungeman@google.com [Fri, 11 Oct 2013 19:19:10 +0000 (19:19 +0000)]
Add stdio include to skdiff_image.

git-svn-id: http://skia.googlecode.com/svn/trunk@11740 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoCorrect 32bit pointer assumption in assert in SkMatrix.
bungeman@google.com [Fri, 11 Oct 2013 19:11:10 +0000 (19:11 +0000)]
Correct 32bit pointer assumption in assert in SkMatrix.

git-svn-id: http://skia.googlecode.com/svn/trunk@11739 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoClean up SkTypes.h.
bungeman@google.com [Fri, 11 Oct 2013 18:50:45 +0000 (18:50 +0000)]
Clean up SkTypes.h.

This change removes sk_stdint.h since it is only needed for vs2008 and earlier.
This change removes SK_MMAP_SUPPORT define since it is no longer used.
This change removes the stdio.h include from SkTypes.h since on many systems
this is a very large header, few Skia files actually use it, it is
available everywhere standard, and SkDebugf should be used instead.

After this change there is no need for external users to put Skia's
include/config into their own list of includes, saving the headache
of having two header files of the same name and sometimes getting the
wrong one depending on include order.

R=bsalomon@google.com, djsollen@google.com

Review URL: https://codereview.chromium.org/27044002

git-svn-id: http://skia.googlecode.com/svn/trunk@11738 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agorebaseline_server: allow client to pull all results, or just failures
epoger@google.com [Fri, 11 Oct 2013 18:45:33 +0000 (18:45 +0000)]
rebaseline_server: allow client to pull all results, or just failures
(SkipBuildbotRuns)

This will be handy for constrained networks or devices, where we don't want
to bother downloading info about all the successful tests.

R=jcgregorio@google.com

Review URL: https://codereview.chromium.org/26891003

git-svn-id: http://skia.googlecode.com/svn/trunk@11737 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd valgrind suppressions for driver bugs
robertphillips@google.com [Fri, 11 Oct 2013 18:28:18 +0000 (18:28 +0000)]
Add valgrind suppressions for driver bugs

https://codereview.chromium.org/27019005/

git-svn-id: http://skia.googlecode.com/svn/trunk@11736 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agopdfviewer: more code comments + concat the pdf matrix with the existing matrix in...
edisonn@google.com [Fri, 11 Oct 2013 18:26:45 +0000 (18:26 +0000)]
pdfviewer: more code comments + concat the pdf matrix with the existing matrix in canvas, instead of reseting it.

Review URL: https://codereview.chromium.org/27057003

git-svn-id: http://skia.googlecode.com/svn/trunk@11735 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoGIF decode: optional error messages and fault tolerance.
halcanary@google.com [Fri, 11 Oct 2013 18:21:56 +0000 (18:21 +0000)]
GIF decode: optional error messages and fault tolerance.

Add new runtime configuration variable,
images.gif.suppressDecoderWarnings, which suppresses warning and
errors from the GIF library.  It defaults to "true", which is current
behavior.

(This setting can be changed by setting the environment variable
skia_images_gif_suppressDecoderWarnings="false".)

Some conditions which were errors before are now warnings:

-   If the image width or height is greater than the GIF screen width or
    height (respectively) we expand the screen to hold the image.

-   If the offset of the image inside the screen would place the
    image outside of the screen, we shift the image to fix this.

-   If the image lacks a color table, we create a default color table.

-   If the image is truncated, then the rest of the image is filled with
    the fill color.

In all four cases, if images.gif.suppressDecoderWarnings is set to
false, then a warning message is printed via SkDebugf.

In the event of another kind of error, SkGIFImageDecoder::onDecode()
will still return false.  But with this change, if
images.gif.suppressDecoderWarnings is set to false, a description of
the error is printed via SkDebugf.

Also, added a new unit test GifTest, which tests the deconing of both
good GIf files and corrupted files that should now work with this
change.  This unit test is disabled on Win32, iOS, and Mac.

BUG=skia:1689
R=scroggo@google.com

Review URL: https://codereview.chromium.org/26743002

git-svn-id: http://skia.googlecode.com/svn/trunk@11734 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSkRectShaderImageFilter: add a workaround for the zero-sized rects currently passed...
senorblanco@chromium.org [Fri, 11 Oct 2013 17:57:47 +0000 (17:57 +0000)]
SkRectShaderImageFilter: add a workaround for the zero-sized rects currently passed by Blink.

BUG=306488
R=robertphillips@google.com, robertphillips

Review URL: https://codereview.chromium.org/26799004

git-svn-id: http://skia.googlecode.com/svn/trunk@11733 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoUse #if insteadof #ifdef DYNAMIC_ANNOTATIONS_ENABLED. It's always defined, just...
senorblanco@chromium.org [Fri, 11 Oct 2013 16:45:50 +0000 (16:45 +0000)]
Use #if insteadof #ifdef DYNAMIC_ANNOTATIONS_ENABLED.  It's always defined, just to 0 or 1.

BUG=
R=mtklein

Review URL: https://codereview.chromium.org/26358010

git-svn-id: http://skia.googlecode.com/svn/trunk@11731 2bbb7eff-a529-9590-31e7-b0007b416f81