platform/upstream/libSkiaSharp.git
10 years agoFix genID cloning bugs.
commit-bot@chromium.org [Fri, 10 Jan 2014 17:22:01 +0000 (17:22 +0000)]
Fix genID cloning bugs.

SkBitmap.cpp:
When copyTo calls readPixels, only clone the genID if the resulting
SkPixelRef has the same dimensions as the original. This catches a
bug where copying an SkBitmap representing the subset of an SkPixelRef
(which implements onReadPixels) would result in the copy sharing the
genID. (Thanks to r6710, this case can only happen using setPixelRef,
so the updated GpuBitmapCopyTest checks for that.)

Move some unnecessary NULL checks to asserts.

When copyTo performs a memcpy, only clone the genID if the resulting
SkPixelRef has the same dimensions as the original. This catches a bug
where copying an extracted SkBitmap with the same width as its original
SkPixelRef would incorrectly have the same genID.

Add a comment and assert in deepCopyTo, when cloning the genID, since
that case correctly clones it.

BitmapCopyTest.cpp:
Pull redundant work out of the inner loop (setting up the source bitmaps
and testing extractSubset). Create a new inner loop for extractSubset, to
test copying the result to each different config.

Extract a subset that has the same width as the original, to catch the
bug mentioned above.

Remove the reporter assert which checks for the resulting rowbytes.

Add checks to ensure that copying the extracted subset changes the genID.

GpuBitmapCopyTest:
Create an SkBitmap that shares an existing SkPixelRef, but only represents
a subset. This is to test the first call to cloneGenID in SkBitmap::copyTo.
In this case, the genID should NOT be copied, since only a portion of the
SkPixelRef was copied.

Also test deepCopy on this subset.

TestIndividualCopy now takes a parameter stating whether the genID should
change in the copy. It also does a read back using the appropriate subset.
It no longer differentiates between copyTo and deepCopyTo, since that
distinction was only necessary for copying from/to configs other than 8888
(which are no longer being tested), where copyTo did a read back in 8888 and
then drew the result to the desired config (resulting in an imperfect copy).

BUG=skia:1742
R=mtklein@google.com, bsalomon@google.com, reed@google.com

Author: scroggo@google.com

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

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

10 years agoremove poplar building from mac, until it is fixed
commit-bot@chromium.org [Fri, 10 Jan 2014 17:21:00 +0000 (17:21 +0000)]
remove poplar building from mac, until it is fixed

BUG=skia:2008
R=mtklein@google.com, vandebo@chromium.org

Author: reed@google.com

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

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

10 years agoDelete all invalidated resources with same key
commit-bot@chromium.org [Fri, 10 Jan 2014 16:39:20 +0000 (16:39 +0000)]
Delete all invalidated resources with same key

Delete all invalidated resources with same key instead of deleting
just the first resource.

R=mtklein@google.com, kkinnunen@nvidia.com

Author: kkinnunen@nvidia.com

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

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

10 years agoSuppressing imagefiltersbase_gpu on RHB device
robertphillips@google.com [Fri, 10 Jan 2014 15:28:19 +0000 (15:28 +0000)]
Suppressing imagefiltersbase_gpu on RHB device

https://codereview.chromium.org/134093002/

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

10 years agoReduce verbosity of SkGraphics::Init in default case.
halcanary@google.com [Fri, 10 Jan 2014 15:00:45 +0000 (15:00 +0000)]
Reduce verbosity of SkGraphics::Init in default case.

SkGraphics::Init() now checks to see if there are any non-default
runtime configuration options before announcing that it is about
to print out the non-default runtime configuration options.

This makes the executables in tools/ less verbose.

Add SkRTConfRegistry::countNonDefault() function.

BUG=
R=mtklein@google.com, reed@google.com

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

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

10 years agoAdd REPORTF test macro.
halcanary@google.com [Fri, 10 Jan 2014 14:58:10 +0000 (14:58 +0000)]
Add REPORTF test macro.

This macro replaces:
    SkString str;
    str.printf("Foo test Expected %d got %d", x, y);
    reporter->reportFailed(str);
with the shorter code:
    REPORTF(reporter, ("Foo test Expected %d got %d", x, y));

The new form also appends __FILE__:__LINE__ to the message before calling reportFailed().

BUG=
R=mtklein@google.com

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

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

10 years agoSampleApp Cleanup:
halcanary@google.com [Fri, 10 Jan 2014 14:53:49 +0000 (14:53 +0000)]
SampleApp Cleanup:

 -   Set resoursePath to sensible default.
 -   Remove verbosity of DitherBitmap.
 -   SampleEncode no longer tries to mkdir('/encoded'), now stores
     encoded data in memory and uses the SkDecodingImageGenerator
     to decode.

BUG=
R=reed@google.com

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

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

10 years agoSuppress imagefiltersgraph_msaa4 failure on Nexus10
robertphillips@google.com [Fri, 10 Jan 2014 13:50:23 +0000 (13:50 +0000)]
Suppress imagefiltersgraph_msaa4 failure on Nexus10

https://codereview.chromium.org/133643003/

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

10 years agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Fri, 10 Jan 2014 07:08:11 +0000 (07:08 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

10 years agoFix Mac fontconfig build (try 2)
commit-bot@chromium.org [Thu, 9 Jan 2014 22:54:26 +0000 (22:54 +0000)]
Fix Mac fontconfig build (try 2)

The Mac fontconfig just #defines the cache directory, which works fine if fontconfig never has to look up any fonts (the case until now). If it has to actually find fonts from the disk, the cache directory and config directory need to be properly defined as well as running fc-cache to populate the cache directory.

Populating the cache directory can take some time, but should only happen on a clean build. To remove this extra time, we have to not build poppler on Mac, which can now be accomplished with GYP_DEFINES="skia_mac_poppler=0"

R=epoger@google.com

Author: vandebo@chromium.org

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

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

10 years agoRemove references to Skia's SVN repository
borenet@google.com [Thu, 9 Jan 2014 21:41:39 +0000 (21:41 +0000)]
Remove references to Skia's SVN repository

BUG=
R=epoger@google.com

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

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

10 years agoremove bad gm expected images
reed@google.com [Thu, 9 Jan 2014 21:05:59 +0000 (21:05 +0000)]
remove bad gm expected images

BUG=skia:1986
R=epoger@google.com

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

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

10 years agouse bitmap's fRowBytes, as the pixelref's is not (yet) reliable
reed@google.com [Thu, 9 Jan 2014 20:00:14 +0000 (20:00 +0000)]
use bitmap's fRowBytes, as the pixelref's is not (yet) reliable

should fix linux browser_tests for DEPS roll

BUG=
R=robertphillips@google.com

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

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

10 years agoFix for Mac-specific compilation issue in r13000
robertphillips@google.com [Thu, 9 Jan 2014 19:45:29 +0000 (19:45 +0000)]
Fix for Mac-specific compilation issue in r13000

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

10 years agoExpand GatherPixelRefs unit test
robertphillips@google.com [Thu, 9 Jan 2014 19:20:45 +0000 (19:20 +0000)]
Expand GatherPixelRefs unit test

https://codereview.chromium.org/132293002/

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

10 years agoAdd 565 to dm defaults.
commit-bot@chromium.org [Thu, 9 Jan 2014 19:14:57 +0000 (19:14 +0000)]
Add 565 to dm defaults.

Now that optimizations picture modes pass (are skipped) in 565, add 565 to the default configs DM runs.

BUG=skia:1994
R=bsalomon@google.com

Author: mtklein@google.com

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

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

10 years agoMark imagefiltersgraph, IntelRhb, msaa4 config as ignore failure due to garbage on...
bsalomon@google.com [Thu, 9 Jan 2014 17:59:55 +0000 (17:59 +0000)]
Mark imagefiltersgraph, IntelRhb, msaa4 config as ignore failure due to garbage on bottom line.

BUG=skia:2005

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

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

10 years agoRevert of https://codereview.chromium.org/113203003/
commit-bot@chromium.org [Thu, 9 Jan 2014 17:52:54 +0000 (17:52 +0000)]
Revert of https://codereview.chromium.org/113203003/
Reason for revert: Broken under XCode.

R=bungeman@google.com, epoger@google.com
TBR=bungeman@google.com, epoger@google.com
NOTREECHECKS=true
NOTRY=true

Author: vandebo@chromium.org

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

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

10 years agoConvert Checksum test to DEF_TEST() macro.
commit-bot@chromium.org [Thu, 9 Jan 2014 17:48:48 +0000 (17:48 +0000)]
Convert Checksum test to DEF_TEST() macro.

BUG=None
TEST=tests
R=mtklein@google.com, bungeman@google.com

Author: tfarina@chromium.org

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

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

10 years agoUse truncation, not rounding, when converting perlin noise seed (required by SVG...
senorblanco@chromium.org [Thu, 9 Jan 2014 17:41:42 +0000 (17:41 +0000)]
Use truncation, not rounding, when converting perlin noise seed (required by SVG spec).

BUG=
R=reed@google.com

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

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

10 years agoFix Mac fontconfig build
commit-bot@chromium.org [Thu, 9 Jan 2014 17:37:38 +0000 (17:37 +0000)]
Fix Mac fontconfig build

The Mac fontconfig just #defines the cache directory, which works fine if fontconfig never has to look up any fonts (the case until now).  If it has to actually find fonts from the disk, the cache directory and config directory need to be properly defined as well as running fc-cache to populate the cache directory.

Populating the cache directory can take some time, but should only happen on a clean build.  To remove this extra time, we have to not build poppler on Mac, which can now be accomplished with GYP_DEFINES="skia_mac_poppler=0"

R=bungeman@google.com, epoger@google.com

Author: vandebo@chromium.org

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

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

10 years agoFix race on creating the default typeface.
bungeman@google.com [Thu, 9 Jan 2014 17:13:32 +0000 (17:13 +0000)]
Fix race on creating the default typeface.

BUG=skia:1906
R=mtklein@google.com, reed@google.com

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

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

10 years agoAllocate SkPictureFlat::fScratch lazily.
commit-bot@chromium.org [Thu, 9 Jan 2014 16:45:45 +0000 (16:45 +0000)]
Allocate SkPictureFlat::fScratch lazily.

Cuts out half to two thirds of allocations of this object.
Since we're already lazily allocating fWriteBuffer, we don't have to add any other code complexity.

BUG=http://skbug.com/1980
R=mtklein@google.com, tomhudson@google.com

Author: tomhudson@chromium.org

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

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

10 years agoDisable optimizations GM for 565 targets.
commit-bot@chromium.org [Thu, 9 Jan 2014 16:45:38 +0000 (16:45 +0000)]
Disable optimizations GM for 565 targets.

BUG=skia:1994
R=robertphillips@google.com

Author: mtklein@google.com

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

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

10 years agoUpdate baselines for NVPR bot
robertphillips@google.com [Thu, 9 Jan 2014 15:57:25 +0000 (15:57 +0000)]
Update baselines for NVPR bot

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

10 years agoFix GL context creation on Windows when NV path rendering
robertphillips@google.com [Thu, 9 Jan 2014 13:20:48 +0000 (13:20 +0000)]
Fix GL context creation on Windows when NV path rendering

https://codereview.chromium.org/129033003/

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

10 years agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Thu, 9 Jan 2014 07:01:42 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

10 years agoFix TODO in SkMutex_win.h to prevent accidental copying.
bungeman@google.com [Thu, 9 Jan 2014 00:02:52 +0000 (00:02 +0000)]
Fix TODO in SkMutex_win.h to prevent accidental copying.

R=mtklein@google.com

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

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

10 years agoRename GPU functions on SkBlurMaskFilter and pass ctm.
commit-bot@chromium.org [Wed, 8 Jan 2014 22:25:53 +0000 (22:25 +0000)]
Rename GPU functions on SkBlurMaskFilter and pass ctm.

R=robertphillips@google.com

Author: bsalomon@google.com

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

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

10 years agouse SkImageInfo directly, instead of convert to Config
commit-bot@chromium.org [Wed, 8 Jan 2014 22:24:55 +0000 (22:24 +0000)]
use SkImageInfo directly, instead of convert to Config

BUG=
R=scroggo@google.com

Author: reed@google.com

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

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

10 years agoMore rebaselines after r12895 for the mega-stragglers.
senorblanco@chromium.org [Wed, 8 Jan 2014 22:21:07 +0000 (22:21 +0000)]
More rebaselines after r12895 for the mega-stragglers.

TBR=caryclark
BUG=1985

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

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

10 years agoRevert of https://codereview.chromium.org/127223004/
commit-bot@chromium.org [Wed, 8 Jan 2014 21:31:11 +0000 (21:31 +0000)]
Revert of https://codereview.chromium.org/127223004/
Reason for revert: VS can't comprehend std::vector without exceptions.

R=bsalomon@google.com, caryclark@google.com, mtklein@chromium.org
TBR=bsalomon@google.com, caryclark@google.com, mtklein@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=

Author: mtklein@google.com

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

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

10 years agoChanges to roll_deps.py
halcanary@google.com [Wed, 8 Jan 2014 21:29:34 +0000 (21:29 +0000)]
Changes to roll_deps.py
-  Code cleanup
-  Stop assuming that chromium's checkout would be via git-svn.
-  Verbose commit message for the deps revision
-  Shorter branch names.
-  New default: save_branches = yes.
-  New option: --git_hash=GIT_HASH

BUG=skia:1973
BUG=skia:1974
BUG=skia:1993
BUG=skia:1995
R=borenet@google.com

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

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

10 years agoMove geometry allocator for drawVertices inside autoflush scope.
commit-bot@chromium.org [Wed, 8 Jan 2014 21:26:09 +0000 (21:26 +0000)]
Move geometry allocator for drawVertices inside autoflush scope.

BUG=skia:1956
R=bsalomon@google.com, reed@google.com

Author: jvanverth@google.com

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

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

10 years agouse SkImageInfo directly, instead of converting to SkBitmap::Config
reed@google.com [Wed, 8 Jan 2014 21:25:26 +0000 (21:25 +0000)]
use SkImageInfo directly, instead of converting to SkBitmap::Config

BUG=
R=scroggo@google.com

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

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

10 years agoRemove GPU-only flag for vertices GM
commit-bot@chromium.org [Wed, 8 Jan 2014 21:19:12 +0000 (21:19 +0000)]
Remove GPU-only flag for vertices GM

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

Author: jvanverth@google.com

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

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

10 years agoSmall tweaks to be able to build everything target:
commit-bot@chromium.org [Wed, 8 Jan 2014 21:16:14 +0000 (21:16 +0000)]
Small tweaks to be able to build everything target:
 - fParsed is unused.
 - Quiet down a bogus -Wuninitialized warning in QWeakPointer.
Tested Clang and GCC on Linux.

BUG=
R=bungeman@google.com

Author: mtklein@google.com

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

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

10 years agoFor comparison, add std::vector.
commit-bot@chromium.org [Wed, 8 Jan 2014 21:16:04 +0000 (21:16 +0000)]
For comparison, add std::vector.

Where I've tested, it's second-place to SkTDArray, though the closest API equivalent in our code is SkTArray, which it's significantly faster than.  This is probably a good approximation to how fast we can possibly make something like SkTArray that constructs and destroys its values.  In fact, it might be worth trying making SkTArray a thin shim over std::vector.

BUG=
R=bsalomon@google.com, caryclark@google.com, mtklein@google.com

Author: mtklein@chromium.org

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

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

10 years agoUse a spinlock in SkOnce.
commit-bot@chromium.org [Wed, 8 Jan 2014 21:15:56 +0000 (21:15 +0000)]
Use a spinlock in SkOnce.

SkOnceFlag is now statically initializable on all platforms.

Also adds sk_atomic_cas, used to implement new SkSpinlock.

Going to punt on making SkOnceFlag any smaller (for now, it's 8 bytes).  We could conceivably get it down to two bits, one for done and one for a one-bit spinlock (we'd need atomic-& and atomic-| to make that work, but they appear to be available everywhere).

BUG=skia:1929
R=bungeman@google.com, reed@google.com

Author: mtklein@google.com

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

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

10 years agosubmit_try: create the diff file using git, rather than relying on trychange.py
borenet@google.com [Wed, 8 Jan 2014 21:00:30 +0000 (21:00 +0000)]
submit_try: create the diff file using git, rather than relying on trychange.py

BUG=skia:1862

(SkipBuildbotRuns)

R=epoger@google.com

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

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

10 years agoImprove 'stretch' in legacy create typeface for DirectWrite.
bungeman@google.com [Wed, 8 Jan 2014 20:32:07 +0000 (20:32 +0000)]
Improve 'stretch' in legacy create typeface for DirectWrite.

Previously the stretch (width) property was set to UNDEFINED, since the
legacy create typeface does not have this information. However, a better
default here is NORMAL.

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

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

10 years agoBuildbot SKPs have been recreated. Triggering rebuilds.
rmistry@google.com [Wed, 8 Jan 2014 19:21:23 +0000 (19:21 +0000)]
Buildbot SKPs have been recreated. Triggering rebuilds.

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

10 years agofix gm self-test
commit-bot@chromium.org [Wed, 8 Jan 2014 17:59:22 +0000 (17:59 +0000)]
fix gm self-test

BUG=skia:1971
NOTREECHECKS=True
NOTRY=True
R=caryclark@google.com
TBR=caryclark

Author: epoger@google.com

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

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

10 years agoMove DM from everything to most, to build it by default.
commit-bot@chromium.org [Wed, 8 Jan 2014 16:52:42 +0000 (16:52 +0000)]
Move DM from everything to most, to build it by default.

BUG=
R=reed@google.com

Author: mtklein@google.com

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

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

10 years agoWork around SkString::gEmptyRec->writable_str() is unwritable.
bungeman@google.com [Wed, 8 Jan 2014 15:53:19 +0000 (15:53 +0000)]
Work around SkString::gEmptyRec->writable_str() is unwritable.

See https://code.google.com/p/skia/issues/detail?id=1989

R=reed@google.com

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

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

10 years agoone more filterbitmap ASAN ignore
bsalomon@google.com [Wed, 8 Jan 2014 15:46:19 +0000 (15:46 +0000)]
one more filterbitmap ASAN ignore

BUG=skia:1984

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

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

10 years agoRebaselines for filterbitmap and downsample GMs on gpu N4
bsalomon@google.com [Wed, 8 Jan 2014 15:42:53 +0000 (15:42 +0000)]
Rebaselines for filterbitmap and downsample GMs on gpu N4

BUG=skia:1984

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

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

10 years agochange offset to xy for pixelref subsetting
reed@google.com [Wed, 8 Jan 2014 15:42:01 +0000 (15:42 +0000)]
change offset to xy for pixelref subsetting

BUG=
R=scroggo@google.com

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

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

10 years agoMark ASAN filterbitmap images as ignore failure
bsalomon@google.com [Wed, 8 Jan 2014 15:34:27 +0000 (15:34 +0000)]
Mark ASAN filterbitmap images as ignore failure

BUG=1984

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

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

10 years agoMark filterbitmap_* on N4 (persp) as ignore failure because of skia issue 1966
bsalomon@google.com [Wed, 8 Jan 2014 15:26:01 +0000 (15:26 +0000)]
Mark filterbitmap_* on N4 (persp) as ignore failure because of skia issue 1966

BUG=skia:1966
BUG=skia:1984

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

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

10 years agoMore rebaselines from r12895.
senorblanco@chromium.org [Wed, 8 Jan 2014 15:18:20 +0000 (15:18 +0000)]
More rebaselines from r12895.

BUG=1985
TBR=caryclark

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

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

10 years agoMove v8 into third_party.
commit-bot@chromium.org [Wed, 8 Jan 2014 15:14:09 +0000 (15:14 +0000)]
Move v8 into third_party.

BUG=
R=robertphillips@google.com

Author: jcgregorio@google.com

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

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

10 years agosuppress on gpu for now
reed@google.com [Wed, 8 Jan 2014 14:39:34 +0000 (14:39 +0000)]
suppress on gpu for now

BUG=skia:1956

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

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

10 years agoTrigger builds after https://skia.googlesource.com/buildbot/+/49f751a735103de70ef7e4a...
borenet@google.com [Wed, 8 Jan 2014 13:18:48 +0000 (13:18 +0000)]
Trigger builds after https://skia.googlesource.com/buildbot/+/49f751a735103de70ef7e4a5108ebf13d345633f

This will trigger failures on bots who haven't updated their slave-side scripts.

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

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

10 years agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Wed, 8 Jan 2014 07:01:49 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

10 years agoUpdate utils.gyp to find SkNoSaveLayerCanvas.h in 'src'.
commit-bot@chromium.org [Tue, 7 Jan 2014 20:11:38 +0000 (20:11 +0000)]
Update utils.gyp to find SkNoSaveLayerCanvas.h in 'src'.

R=robertphillips@google.com

Author: bungeman@google.com

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

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

10 years agoAdd the gears.js demo and all the code changes needed to get it working, including...
commit-bot@chromium.org [Tue, 7 Jan 2014 19:00:27 +0000 (19:00 +0000)]
Add the gears.js demo and all the code changes needed to get it working, including implementing both fill and stroke style. Also add the HTML and JS files to compare with browser performance.

BUG=
R=robertphillips@google.com

Author: jcgregorio@google.com

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

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

10 years agomore PDF filterbitmap ignores
bsalomon@google.com [Tue, 7 Jan 2014 17:50:04 +0000 (17:50 +0000)]
more PDF filterbitmap ignores

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

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

10 years agorebaseline_server: allow spaces within test/config names
commit-bot@chromium.org [Tue, 7 Jan 2014 17:21:11 +0000 (17:21 +0000)]
rebaseline_server: allow spaces within test/config names

(SkipBuildbotRuns)
BUG=skia:1969
NOTREECHECKS=True
NOTRY=True
R=bsalomon@google.com
TBR=bsalomon

Author: epoger@google.com

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

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

10 years agoMake imagealphathreshold GM skip replay modes until it is fixed.
bsalomon@google.com [Tue, 7 Jan 2014 17:20:33 +0000 (17:20 +0000)]
Make imagealphathreshold GM skip replay modes until it is fixed.

TBR=zork@chromium.org

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

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

10 years agoadd unittest for render_pictures binary
commit-bot@chromium.org [Tue, 7 Jan 2014 17:03:40 +0000 (17:03 +0000)]
add unittest for render_pictures binary

Once committed, this will be run as part of RunToolSelfTests on http://108.170.217.252:10117/builders/Housekeeper-PerCommit .

BUG=skia:1943
R=rmistry@google.com

Author: epoger@google.com

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

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

10 years agoAdd StackBench to measure performance on stack-like (fixed element size) work loads.
commit-bot@chromium.org [Tue, 7 Jan 2014 17:03:31 +0000 (17:03 +0000)]
Add StackBench to measure performance on stack-like (fixed element size) work loads.

BUG=303282
R=reed@google.com, caryclark@google.com, mtklein@chromium.org

Author: mtklein@google.com

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

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

10 years agoNoSaveLayerCanvas now its own file
robertphillips@google.com [Tue, 7 Jan 2014 16:08:04 +0000 (16:08 +0000)]
NoSaveLayerCanvas now its own file

https://codereview.chromium.org/120553003/

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

10 years agoFix build warnings in SkAlphaThresholdFilter
commit-bot@chromium.org [Tue, 7 Jan 2014 16:04:01 +0000 (16:04 +0000)]
Fix build warnings in SkAlphaThresholdFilter

BUG=None
R=bsalomon@google.com

Author: zork@chromium.org

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

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

10 years agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Tue, 7 Jan 2014 07:01:50 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

10 years agoAdd AlphaThreshold filter.
commit-bot@chromium.org [Mon, 6 Jan 2014 23:41:14 +0000 (23:41 +0000)]
Add AlphaThreshold filter.

This is based on the Bitmap Alpha Threshold filter, and will be used by Chromium
to implement the window shape API.

R=bsalomon@chromium.org, wez@chromium.org, bsalomon@google.com, reed@google.com

Author: zork@chromium.org

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

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

10 years agoMark pdf filterbitmap images as failure ignored
bsalomon@google.com [Mon, 6 Jan 2014 23:25:38 +0000 (23:25 +0000)]
Mark pdf filterbitmap images as failure ignored

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

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

10 years agoRebaseline filterbitmap_image_mandrill N4 GPU images
bsalomon@google.com [Mon, 6 Jan 2014 22:50:28 +0000 (22:50 +0000)]
Rebaseline filterbitmap_image_mandrill N4 GPU images

BUG=skia:1879

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

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

10 years agorebaseline downsample_text and downsample_checkerboard GMs on gpu configs
bsalomon@google.com [Mon, 6 Jan 2014 22:31:14 +0000 (22:31 +0000)]
rebaseline downsample_text and downsample_checkerboard GMs on gpu configs

BUG=skia:1879

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

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

10 years agoRebaselines for filterbitmap_text GMs
bsalomon@google.com [Mon, 6 Jan 2014 22:00:04 +0000 (22:00 +0000)]
Rebaselines for filterbitmap_text GMs

BUG=skia:1879

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

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

10 years agoRebaselines for filterbitmap_checkerboard
bsalomon@google.com [Mon, 6 Jan 2014 21:48:23 +0000 (21:48 +0000)]
Rebaselines for filterbitmap_checkerboard

BUG=skia:1879

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

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

10 years agoDM: fix failures when using -r by comparing unpremultiplied.
commit-bot@chromium.org [Mon, 6 Jan 2014 20:24:21 +0000 (20:24 +0000)]
DM: fix failures when using -r by comparing unpremultiplied.

PNGs store unpremultiplied colors, so we have to convert back and forth with
SkBitmap.  This is lossy.  GM solves this problem by stripping the alpha
channel before writing the PNG.

This flips it around, converting the GM's output to unpremultiplied as needed.  This way each pixel goes from premul to unpremul once, never back.

Tested:
out/Release/dm -w /tmp/w --config 565 8888 gpu
out/Release/dm -r /tmp/w --config 565 8888 gpu
BUG=
R=bsalomon@google.com

Author: mtklein@google.com

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

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

10 years agoCap memory usage in path_create bench.
commit-bot@chromium.org [Mon, 6 Jan 2014 20:19:14 +0000 (20:19 +0000)]
Cap memory usage in path_create bench.

Memory usage grows unbounded in path_create without this patch (growing the
paths).  This bench also somewhat needlessly cycles through 32 paths, so now
we just work with one.

Peak memory usage drops from ~2-3G to ~150M.  This should fix the NexusS crashes,
or at least get us to the next one.

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

Author: mtklein@google.com

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

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

10 years agoRebaseline mandrill GMs
bsalomon@google.com [Mon, 6 Jan 2014 20:18:15 +0000 (20:18 +0000)]
Rebaseline mandrill GMs

BUG=skia:1879

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

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

10 years agoTurn on GL drawing, allow switching via --gpu flag.
commit-bot@chromium.org [Mon, 6 Jan 2014 20:03:55 +0000 (20:03 +0000)]
Turn on GL drawing, allow switching via --gpu flag.

This CL comes after https://codereview.chromium.org/121303004/.

BUG=
R=robertphillips@google.com

Author: jcgregorio@google.com

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

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

10 years agoDEPS roll script
halcanary@google.com [Mon, 6 Jan 2014 19:50:22 +0000 (19:50 +0000)]
DEPS roll script

This script:
    -  searches through the last N commits to find out the hash that is
       associated with the revision number.
    -  creates a new branch in the chromium tree, modifies the DEPS
       file, commits, and uploads to Rietveld.
    -  create a whitespace-only commit and uploads that to to Rietveld.

BUG=
R=borenet@google.com

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

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

10 years agoPatch for Windows compilation errors from r12916
robertphillips@google.com [Mon, 6 Jan 2014 19:09:29 +0000 (19:09 +0000)]
Patch for Windows compilation errors from r12916

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

10 years agoremove SK_SUPPORTED_DEPRECATED_FIXEDROUND, no longer needed
reed@google.com [Mon, 6 Jan 2014 18:49:32 +0000 (18:49 +0000)]
remove SK_SUPPORTED_DEPRECATED_FIXEDROUND, no longer needed

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

10 years agoSupport mesa config in render_pictures.
rmistry@google.com [Mon, 6 Jan 2014 18:37:24 +0000 (18:37 +0000)]
Support mesa config in render_pictures.

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

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

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

10 years agocreate gm/rebaseline_server/test_all.py
commit-bot@chromium.org [Mon, 6 Jan 2014 18:33:19 +0000 (18:33 +0000)]
create gm/rebaseline_server/test_all.py

Uses proper Python unittest framework to launch all unittests within the directory.

NOTRY=True
R=rmistry@google.com

Author: epoger@google.com

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

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

10 years agoThese strings are unused.
commit-bot@chromium.org [Mon, 6 Jan 2014 18:29:14 +0000 (18:29 +0000)]
These strings are unused.

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

Author: mtklein@google.com

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

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

10 years agoRenamed JsCanvas to JsContext and moved into it's own file.
commit-bot@chromium.org [Mon, 6 Jan 2014 18:17:24 +0000 (18:17 +0000)]
Renamed JsCanvas to JsContext and moved into it's own file.

Fleshed out a lot of the Path interface.

BUG=
R=robertphillips@google.com, tfarina@chromium.org, reed@google.com

Author: jcgregorio@google.com

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

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

10 years agoRevert "Revert "Revert "Revert of https://codereview.chromium.org/110593003/"""
reed@google.com [Mon, 6 Jan 2014 17:08:27 +0000 (17:08 +0000)]
Revert "Revert "Revert "Revert of https://codereview.chromium.org/110593003/"""

This reverts commit aaa89649590323fe40f52439d9a9a3376bb3b8ae.

BUG=

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

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

10 years agoAvoid some work on SkClipStack equality when the topmost genids match
commit-bot@chromium.org [Mon, 6 Jan 2014 16:54:20 +0000 (16:54 +0000)]
Avoid some work on SkClipStack equality when the topmost genids match

Two clip stacks are defined being equal if the topmost genids match.

R=bsalomon@google.com

Author: kkinnunen@nvidia.com

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

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

10 years agoadd rowBytes param to setPreLock, in prep for onNewLockPixels change
reed@google.com [Mon, 6 Jan 2014 15:01:48 +0000 (15:01 +0000)]
add rowBytes param to setPreLock, in prep for onNewLockPixels change

need _win.cc change from https://codereview.chromium.org/124503002/ when this lands in chrome

R=robertphillips@google.com

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

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

10 years agoRevert "Revert "Revert of https://codereview.chromium.org/110593003/""
reed@google.com [Mon, 6 Jan 2014 13:34:39 +0000 (13:34 +0000)]
Revert "Revert "Revert of https://codereview.chromium.org/110593003/""

This reverts commit 0fef787f33aa38109a0c8427e0098d997efdd5ff.

failed in chrome: https://codereview.chromium.org/124503002/

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

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

10 years agoConvert two more tests to DEF_TEST() macro.
tfarina@chromium.org [Mon, 6 Jan 2014 12:43:53 +0000 (12:43 +0000)]
Convert two more tests to DEF_TEST() macro.

Out of three, two were converted.

These tests were found with the following command line:

$ g grep "public Test"

BUG=None
TEST=ran tests executable fine.
R=mtklein@google.com

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

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

10 years agoSK_SUPPORTED_DEPRECATED_FIXEDROUND around deprecated fixed[round,ceil,floor]
mike@reedtribe.org [Mon, 6 Jan 2014 03:02:37 +0000 (03:02 +0000)]
SK_SUPPORTED_DEPRECATED_FIXEDROUND around deprecated fixed[round,ceil,floor]

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

10 years agoRebaselines for more straggling bots.
senorblanco@chromium.org [Sat, 4 Jan 2014 17:22:04 +0000 (17:22 +0000)]
Rebaselines for more straggling bots.

TBR=

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

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

10 years agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Sat, 4 Jan 2014 07:01:40 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

10 years agoYet more rebaselines from straggling bots.
senorblanco@chromium.org [Sat, 4 Jan 2014 04:19:38 +0000 (04:19 +0000)]
Yet more rebaselines from straggling bots.

BUG=
TBR=

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

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

10 years agoStragglers.
senorblanco@chromium.org [Sat, 4 Jan 2014 02:36:24 +0000 (02:36 +0000)]
Stragglers.

TBR=

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

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

10 years agoNew baselines for tileimagefilter, imagefiltersgraph, and everything Nexus4.
senorblanco@chromium.org [Sat, 4 Jan 2014 00:14:54 +0000 (00:14 +0000)]
New baselines for tileimagefilter, imagefiltersgraph, and everything Nexus4.

TBR=

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

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

10 years agoWiden suppression to tileimagefilter-pdf.
senorblanco@chromium.org [Fri, 3 Jan 2014 22:27:05 +0000 (22:27 +0000)]
Widen suppression to tileimagefilter-pdf.

TBR=

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

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

10 years agoIgnore failures on tileimagefilter-pdf_poppler.
senorblanco@chromium.org [Fri, 3 Jan 2014 22:18:12 +0000 (22:18 +0000)]
Ignore failures on tileimagefilter-pdf_poppler.

TBR=

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

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

10 years agoMake SkImageFilter crop rects relative to the primitive origin, instead of relative...
senorblanco@chromium.org [Fri, 3 Jan 2014 21:48:22 +0000 (21:48 +0000)]
Make SkImageFilter crop rects relative to the primitive origin, instead of relative to their parent's crop rect.  This is required by SVG semantics, and is more sane anyway.

To do this, this patch changes the "offset/loc" parameter in filterImage() / onFilterImage() from an inout-param to an out-param only, so that the calling filter can know how much the input filter wants its result offset (and doesn't include the original primitive position). This offset can then be applied to the current filter's crop rect. (I've renamed the parameter "offset" in all cases to make this clear.) This makes the call sites in SkCanvas/SkGpuDevice responsible for applying the resulting offset to the primitive's position, which is actually a fairly small change.

This change also fixes SkTileImageFilter and SkOffsetImageFilter to correctly handle an input offset, which they weren't before. This required modifying the GM's, since they assumed the broken behaviour.

NOTE: this will require rebaselining the imagefiltersgraph test, since it has a new test case.

NOTE: this will "break" the Blink layout tests css3/filters/effect-reference-subregion-chained-hw.html and css3/filters/effect-reference-subregion-hw.html, but it actually makes them give correct results. It should be suppressed on the skia roll, and I'll rebaseline it.

R=reed@google.com

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

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

10 years agoRevert "Revert of https://codereview.chromium.org/110593003/"
reed@google.com [Fri, 3 Jan 2014 17:58:57 +0000 (17:58 +0000)]
Revert "Revert of https://codereview.chromium.org/110593003/"

This reverts commit c7abb25b25ba8b97948371d2bf0a2e3e78468f73.

and fixes the ashmem break

BUG=

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

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

10 years agoAdd SkPreConfig.h to core.gypi
commit-bot@chromium.org [Fri, 3 Jan 2014 17:25:52 +0000 (17:25 +0000)]
Add SkPreConfig.h to core.gypi

BUG=
R=reed@google.com

Author: borenet@google.com

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

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

10 years agorebaseline gm self-tests after https://code.google.com/p/skia/source/detail?r=12850
commit-bot@chromium.org [Fri, 3 Jan 2014 16:37:16 +0000 (16:37 +0000)]
rebaseline gm self-tests after https://code.google.com/p/skia/source/detail?r=12850

The GM self-test's fragility is already noted in https://code.google.com/p/skia/issues/detail?id=1068 ('make gm self-test more robust')

NOTRY=True
NOTREECHECKS=True
R=mtklein@google.com
TBR=mtklein

Author: epoger@google.com

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

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

10 years agoRevert of https://codereview.chromium.org/110593003/
commit-bot@chromium.org [Fri, 3 Jan 2014 16:32:45 +0000 (16:32 +0000)]
Revert of https://codereview.chromium.org/110593003/
Reason for revert: SkImageRef_ashmem doesn't compile

R=halcanary@google.com, scroggo@google.com
TBR=halcanary@google.com, scroggo@google.com
NOTREECHECKS=true
NOTRY=true
BUG=

Author: reed@google.com

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

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