platform/upstream/libSkiaSharp.git
9 years agoFix vertex/index buffer leaks
bsalomon [Tue, 5 May 2015 20:20:09 +0000 (13:20 -0700)]
Fix vertex/index buffer leaks

TBR=robertphillips@google.com

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

9 years agoAdd matrix configs to DM
borenet [Tue, 5 May 2015 20:11:27 +0000 (13:11 -0700)]
Add matrix configs to DM

BUG=skia:832

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

9 years agoDM: add a Via to simulate SP pictures.
mtklein [Tue, 5 May 2015 19:59:56 +0000 (12:59 -0700)]
DM: add a Via to simulate SP pictures.

Will use this to test the other CL that adds small SkPicture implementations.

Not quite sure why patch_primitive doesn't draw the same in 8888 and sp-8888, but everything else does, so I'm not going to let that hold me back for now.

BUG=skia:

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

9 years agoMake drawImage a virtual on SkDevice
reed [Tue, 5 May 2015 19:54:33 +0000 (12:54 -0700)]
Make drawImage a virtual on SkDevice

Now with patch for SkDeferredCanvas

This reverts commit 119468b71f8f4f45657ab30ead331be665de5a57.

BUG=skia:

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

9 years agoadd DeferredCanvas mode to SampleApp
reed [Tue, 5 May 2015 19:14:45 +0000 (12:14 -0700)]
add DeferredCanvas mode to SampleApp

BUG=skia:

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

9 years agocreate GrInOrderCommandBuilder
joshualitt [Tue, 5 May 2015 18:55:39 +0000 (11:55 -0700)]
create GrInOrderCommandBuilder

BUG=skia:

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

9 years agoDM: add draw_to_canvas() to trim some boilerplate for Vias.
mtklein [Tue, 5 May 2015 18:38:45 +0000 (11:38 -0700)]
DM: add draw_to_canvas() to trim some boilerplate for Vias.

BUG=skia:

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

9 years agoremove dead code behind BOOL_ONGETINFO
reed [Tue, 5 May 2015 18:36:02 +0000 (11:36 -0700)]
remove dead code behind BOOL_ONGETINFO

need this to land in chrome first https://codereview.chromium.org/1125573002

BUG=skia:
TBR=

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

9 years agoSkPDF: Remove unused deprecated functions in SkPDFTypes
halcanary [Tue, 5 May 2015 18:28:55 +0000 (11:28 -0700)]
SkPDF: Remove unused deprecated functions in SkPDFTypes

depends on:
    http://crrev.com/1107923002
    http://crrev.com/1103163002
    http://crrev.com/1110533002
    http://crrev.com/1107913002
    http://crrev.com/1106163002

BUG=skia:3585

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

9 years agoMove RectBatch to GrRect
joshualitt [Tue, 5 May 2015 17:45:57 +0000 (10:45 -0700)]
Move RectBatch to GrRect

BUG=skia:

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

9 years agoAdd presubmit to run `{dm,nanobench}_flags.py test` when changed.
mtklein [Tue, 5 May 2015 17:28:44 +0000 (10:28 -0700)]
Add presubmit to run `{dm,nanobench}_flags.py test` when changed.

BUG=skia:

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

9 years agoSkPDF: clean up uses of deprecated calls in SkPDFFont
halcanary [Tue, 5 May 2015 17:24:09 +0000 (10:24 -0700)]
SkPDF: clean up uses of deprecated calls in SkPDFFont

BUG=skia:3585

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

9 years agoMove DrawInfo out from GrDrawTarget and rename to GrVertices.
bsalomon [Tue, 5 May 2015 16:51:38 +0000 (09:51 -0700)]
Move DrawInfo out from GrDrawTarget and rename to GrVertices.

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

9 years agoCreate GrCommandBuilder
joshualitt [Tue, 5 May 2015 15:41:50 +0000 (08:41 -0700)]
Create GrCommandBuilder

BUG=skia:

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

9 years agoBlacklist tiles_rt-gpu gm imagefilterscropped on GalaxyS4
borenet [Tue, 5 May 2015 15:28:23 +0000 (08:28 -0700)]
Blacklist tiles_rt-gpu gm imagefilterscropped on GalaxyS4

BUG=skia:3802

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

9 years agoadd deferred config to DM
reed [Tue, 5 May 2015 15:11:33 +0000 (08:11 -0700)]
add deferred config to DM

BUG=skia:

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

9 years agoAdjust tolerance to fix GPU hairline curve issues
jvanverth [Tue, 5 May 2015 15:01:51 +0000 (08:01 -0700)]
Adjust tolerance to fix GPU hairline curve issues

BUG=chromium:472847

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

9 years agoSkPDF: clean up uses of deprecated calls in SkDocument_PDF
halcanary [Tue, 5 May 2015 15:00:24 +0000 (08:00 -0700)]
SkPDF: clean up uses of deprecated calls in SkDocument_PDF

BUG=skia:3585

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

9 years agoAvoid using SkPathEffect::DashInfo in GrStrokeInfo
kkinnunen [Tue, 5 May 2015 15:00:10 +0000 (08:00 -0700)]
Avoid using SkPathEffect::DashInfo in GrStrokeInfo

Avoid using SkPathEffect::DashInfo for storing the phase
in GrStrokeInfo. Instead, just use normal instance variables.

Fixes the copy constructor pointing the DashInfo interval pointer
to the wrong interval data.

Also fixes GrStrokeInfo::setDashInfo(const SkPathEffect::DashInfo&)
by updating the fDashType correctly.

Makes it simpler to write code such as the operator== in the future.

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

9 years agoremove dead code for SK_SUPPORT_LEGACY_RADIAL_GRADIENT_SQRT
reed [Tue, 5 May 2015 14:55:19 +0000 (07:55 -0700)]
remove dead code for  SK_SUPPORT_LEGACY_RADIAL_GRADIENT_SQRT

BUG=skia:
TBR=

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

9 years agocleanup
stephana [Tue, 5 May 2015 14:55:06 +0000 (07:55 -0700)]
cleanup

BUG=skia:

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

9 years agoremove dead SK_SUPPORT_LEGACY_CUBIC_CHOPPER code
reed [Tue, 5 May 2015 14:49:56 +0000 (07:49 -0700)]
remove dead SK_SUPPORT_LEGACY_CUBIC_CHOPPER code

BUG=skia:
TBR=

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

9 years agoStart on simplifying generateGeometry() overrides
bsalomon [Tue, 5 May 2015 14:49:49 +0000 (07:49 -0700)]
Start on simplifying generateGeometry() overrides

Committed: https://skia.googlesource.com/skia/+/f28381c6866cad92af8ebe5b9d2db074613b1963

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

9 years agoRevert of Make drawImage a virtual on SkDevice (patchset #3 id:40001 of https://coder...
reed [Tue, 5 May 2015 12:42:02 +0000 (05:42 -0700)]
Revert of Make drawImage a virtual on SkDevice (patchset #3 id:40001 of https://codereview.chromium.org/11188… (patchset #2 id:20001 of https://codereview.chromium.org/1122813002/)

Reason for revert:
did not update DeferredCanvas

Original issue's description:
> Make drawImage a virtual on SkDevice (patchset #3 id:40001 of https://codereview.chromium.org/1118823004/)"
>
> Fixed serialization from prev CL
>
> This reverts commit 973d1f1f60f2710a268a3165aa4f3460502d4be5.
>
> BUG=skia:3803
> TBR=
>
> Committed: https://skia.googlesource.com/skia/+/5392785080001fe737fac9e5801fc2127a78d4fb

TBR=
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:3803

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

9 years agoRemove canTweakAlphaForCoverage from XP's since batch reads flag.
egdaniel [Mon, 4 May 2015 19:58:16 +0000 (12:58 -0700)]
Remove canTweakAlphaForCoverage from XP's since batch reads flag.

BUG=skia:

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

9 years agoFix typeface ids on Mac.
bungeman [Mon, 4 May 2015 19:03:50 +0000 (12:03 -0700)]
Fix typeface ids on Mac.

The current typeface ids with CoreText rely on ATS (which causes
memory use issues) or font data (which is unreliable, and will not
work with axes and synthetics). This changes the code so that stream
fonts never end up in the cache and always get a unique id, and
system fonts will be given an id as they are used.

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

9 years agoDon't attempt to draw path if dashing or stroking fails
bsalomon [Mon, 4 May 2015 18:41:57 +0000 (11:41 -0700)]
Don't attempt to draw path if dashing or stroking fails

TBR=egdaniel@google.com

Committed: https://skia.googlesource.com/skia/+/39202f12d37b6ef69ffaddcaa8cc92c621fcda41

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

9 years agoRevert of Start on simplifying generateGeometry() overrides (patchset #10 id:160001...
bsalomon [Mon, 4 May 2015 18:41:41 +0000 (11:41 -0700)]
Revert of Start on simplifying generateGeometry() overrides (patchset #10 id:160001 of https://codereview.chromium.org/1122673002/)

Reason for revert:
Breaking bots

Original issue's description:
> Start on simplifying generateGeometry() overrides
>
> Committed: https://skia.googlesource.com/skia/+/f28381c6866cad92af8ebe5b9d2db074613b1963

TBR=joshualitt@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

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

9 years agoStart on simplifying generateGeometry() overrides
bsalomon [Mon, 4 May 2015 18:27:45 +0000 (11:27 -0700)]
Start on simplifying generateGeometry() overrides

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

9 years agoRevert of Don't attempt to draw path if dashing or stroking fails (patchset #1 id...
bsalomon [Mon, 4 May 2015 18:21:34 +0000 (11:21 -0700)]
Revert of Don't attempt to draw path if dashing or stroking fails (patchset #1 id:1 of https://codereview.chromium.org/1119393002/)

Reason for revert:
Doesn't draw

Original issue's description:
> Don't attempt to draw path if dashing or stroking fails
>
>
> TBR=egdaniel@google.com
>
> Committed: https://skia.googlesource.com/skia/+/39202f12d37b6ef69ffaddcaa8cc92c621fcda41

TBR=egdaniel@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

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

9 years agoignore_result()
mtklein [Mon, 4 May 2015 17:54:48 +0000 (10:54 -0700)]
ignore_result()

BUG=skia:3801

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

9 years agoMake drawImage a virtual on SkDevice (patchset #3 id:40001 of https://codereview...
reed [Mon, 4 May 2015 17:49:41 +0000 (10:49 -0700)]
Make drawImage a virtual on SkDevice (patchset #3 id:40001 of https://codereview.chromium.org/1118823004/)"

Fixed serialization from prev CL

This reverts commit 973d1f1f60f2710a268a3165aa4f3460502d4be5.

BUG=skia:3803
TBR=

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

9 years agoGet debugger compiling again
robertphillips [Mon, 4 May 2015 17:42:05 +0000 (10:42 -0700)]
Get debugger compiling again

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

9 years agoMove state management to GrInOrderDrawBuffer
joshualitt [Mon, 4 May 2015 17:41:57 +0000 (10:41 -0700)]
Move state management to GrInOrderDrawBuffer

BUG=skia:

Committed: https://skia.googlesource.com/skia/+/5d6bb6f795143ca360b868560b52165de51fa269

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

9 years agoDon't attempt to draw path if dashing or stroking fails
bsalomon [Mon, 4 May 2015 17:36:53 +0000 (10:36 -0700)]
Don't attempt to draw path if dashing or stroking fails

TBR=egdaniel@google.com

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

9 years agoMove instanced index buffer creation to flush time
bsalomon [Mon, 4 May 2015 17:36:42 +0000 (10:36 -0700)]
Move instanced index buffer creation to flush time

Committed: https://skia.googlesource.com/skia/+/ab622c7b8cc8c39f0a594e4392b9e31b7e1ddb26

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

9 years agoRevert of Move instanced index buffer creation to flush time (patchset #6 id:100001...
bsalomon [Mon, 4 May 2015 17:09:23 +0000 (10:09 -0700)]
Revert of Move instanced index buffer creation to flush time (patchset #6 id:100001 of https://codereview.chromium.org/1116943004/)

Reason for revert:
messed up caching, recreating index buffers all the time.

Original issue's description:
> Move instanced index buffer creation to flush time
>
> Committed: https://skia.googlesource.com/skia/+/ab622c7b8cc8c39f0a594e4392b9e31b7e1ddb26

TBR=joshualitt@google.com,robertphillips@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

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

9 years agoRevert of make drawImage a virtual on SkDevice (patchset #3 id:40001 of https://coder...
reed [Mon, 4 May 2015 16:00:45 +0000 (09:00 -0700)]
Revert of make drawImage a virtual on SkDevice (patchset #3 id:40001 of https://codereview.chromium.org/1118823004/)

Reason for revert:
need to make serialization work for pictures, now that images are "real"

Original issue's description:
> make drawImage a virtual on SkDevice
>
> default impl will turn the Image into a (raster) bitmap and call drawBitmap.
>
> BUG=skia:3803
>
> Committed: https://skia.googlesource.com/skia/+/f603fb3d0e5fa57c3f228d66945bef198b001135

TBR=bsalomon@google.com,robertphillips@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:3803

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

9 years agoremove redundant/deprecated TwoPointRadial gradiet -- use TwoPointConical
reed [Mon, 4 May 2015 15:32:51 +0000 (08:32 -0700)]
remove redundant/deprecated TwoPointRadial gradiet -- use TwoPointConical

This CL derived from https://codereview.chromium.org/1114243005/

BUG=skia:

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

9 years agomake drawImage a virtual on SkDevice
reed [Mon, 4 May 2015 15:32:02 +0000 (08:32 -0700)]
make drawImage a virtual on SkDevice

default impl will turn the Image into a (raster) bitmap and call drawBitmap.

BUG=skia:3803

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

9 years agoMove instanced index buffer creation to flush time
bsalomon [Mon, 4 May 2015 15:09:30 +0000 (08:09 -0700)]
Move instanced index buffer creation to flush time

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

9 years agoSupport SKIA_OUT on Mac and ChromeOS
borenet [Mon, 4 May 2015 15:04:28 +0000 (08:04 -0700)]
Support SKIA_OUT on Mac and ChromeOS

BUG=skia:3774

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

9 years agoRevert of Move state management to GrInOrderDrawBuffer (patchset #4 id:60001 of https...
joshualitt [Mon, 4 May 2015 14:51:09 +0000 (07:51 -0700)]
Revert of Move state management to GrInOrderDrawBuffer (patchset #4 id:60001 of https://codereview.chromium.org/1120143002/)

Reason for revert:
Breaks windows

Original issue's description:
> Move state management to GrInOrderDrawBuffer
>
> BUG=skia:
>
> Committed: https://skia.googlesource.com/skia/+/5d6bb6f795143ca360b868560b52165de51fa269

TBR=bsalomon@google.com,robertphillips@google.com,joshualitt@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:

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

9 years agoMove state management to GrInOrderDrawBuffer
joshualitt [Mon, 4 May 2015 14:41:40 +0000 (07:41 -0700)]
Move state management to GrInOrderDrawBuffer

BUG=skia:

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

9 years agoUpdate src/svg to follow C++11 style rule for {virtual,override}.
tfarina [Mon, 4 May 2015 13:40:31 +0000 (06:40 -0700)]
Update src/svg to follow C++11 style rule for {virtual,override}.

The Google style guide states that only one of {virtual,override,final}
should be used for each declaration, since override implies virtual
and final implies both virtual and override.

The entries were found using the following command line:

$ find src/ -iname "*.h" -o -iname "*.cpp" | xargs pcregrep -M
"[^\n/]+virtual\ [^;{]+\ [a-zA-Z0-9_]+\([^;{]+\ override[ \n]*[;{]"

The regex was a courtesy of nick@chromium.org

BUG=None
R=mtklein@google.com

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

9 years agoSkPictureShader: scale down if width or height is larger than maxTextureSize
gen.kim [Mon, 4 May 2015 05:36:30 +0000 (22:36 -0700)]
SkPictureShader: scale down if width or height is larger than maxTextureSize

Grdient renders black because of failure onCreateTexture
if one of width or height is larger than maxTextureSize
with --force-gpu-rasterization.

BUG=chromium:473166

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

9 years agoUpdate SKP version
skia.buildbots [Sun, 3 May 2015 08:03:55 +0000 (01:03 -0700)]
Update SKP version

Automatic commit by the RecreateSKPs bot.

TBR=

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

9 years agoremove unneeded SK_SUPPORT_LEGACY_IMAGEFILTER_TO_COLORFILTER flag
reed [Sat, 2 May 2015 15:00:03 +0000 (08:00 -0700)]
remove unneeded SK_SUPPORT_LEGACY_IMAGEFILTER_TO_COLORFILTER flag

BUG=skia:
TBR=

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

9 years agoAdd hairlines batch unit test
joshualitt [Sat, 2 May 2015 14:07:17 +0000 (07:07 -0700)]
Add hairlines batch unit test

BUG=skia:

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

9 years agoFix for valgrind
joshualitt [Sat, 2 May 2015 13:58:10 +0000 (06:58 -0700)]
Fix for valgrind

TBR=bsalomon@google.com
BUG=skia:

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

9 years agoMove bounds to GrBatch
joshualitt [Fri, 1 May 2015 20:43:30 +0000 (13:43 -0700)]
Move bounds to GrBatch

BUG=skia:

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

9 years agoclean up pre-storage in canvas
reed [Fri, 1 May 2015 16:34:31 +0000 (09:34 -0700)]
clean up pre-storage in canvas

BUG=skia:
TBR=

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

9 years agoSimple CL to add a joinWithPossiblyEmptyArg to SkRect
joshualitt [Fri, 1 May 2015 15:51:48 +0000 (08:51 -0700)]
Simple CL to add a joinWithPossiblyEmptyArg to SkRect

BUG=skia:

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

9 years agoSkPDF: clean up uses of deprecated calls in tests
halcanary [Fri, 1 May 2015 14:35:45 +0000 (07:35 -0700)]
SkPDF: clean up uses of deprecated calls in tests

BUG=skia:3585

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

9 years agoSkTime: return timezone information; format in ISO-8601
halcanary [Fri, 1 May 2015 14:06:23 +0000 (07:06 -0700)]
SkTime: return timezone information; format in ISO-8601

Motivation: PDF/A metadata will need the creation date embedded in it.

Also, GetDateTime returns local time in Win32.  This now behaves the
same as on Unix systems.

BUG=skia:3110

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

9 years agoThis replaces the texture creation/caching functions on GrContext with a GrTexturePro...
bsalomon [Thu, 30 Apr 2015 21:18:54 +0000 (14:18 -0700)]
This replaces the texture creation/caching functions on GrContext with a GrTextureProvider interface. The goal is to pass this narrowly focused object in places that currently take a GrContext but don't need and shouldn't use its other methods. It also has an extended private interface for interacting with non-texture resource types.

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

9 years agoMove resource fonts to common location.
bungeman [Thu, 30 Apr 2015 21:12:58 +0000 (17:12 -0400)]
Move resource fonts to common location.

Move resource fonts to resources/fonts, add a destortable font for
testing, and clean up how the tests create fonts from resources.

R=joshualitt@google.com

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

9 years agoSimple CL to Compute bounds in GrContext::drawVertices
joshualitt [Thu, 30 Apr 2015 21:03:02 +0000 (14:03 -0700)]
Simple CL to Compute bounds in GrContext::drawVertices

BUG=skia:

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

9 years agoAdd batch unit tests for ovals
joshualitt [Thu, 30 Apr 2015 20:49:27 +0000 (13:49 -0700)]
Add batch unit tests for ovals

BUG=skia:

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

9 years agoadd heuristic to pour small pictures into recordings, rather than ref'ing
reed [Thu, 30 Apr 2015 20:09:24 +0000 (13:09 -0700)]
add heuristic to pour small pictures into recordings, rather than ref'ing

BUG=skia:

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

9 years agoMake SkAutoTDelete's operator T*() const, like all the others.
mtklein [Thu, 30 Apr 2015 19:06:19 +0000 (12:06 -0700)]
Make SkAutoTDelete's operator T*() const, like all the others.

BUG=skia:

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

9 years agoFix gpu memory accounting for auto-resolving MSAA.
senorblanco [Thu, 30 Apr 2015 19:06:10 +0000 (12:06 -0700)]
Fix gpu memory accounting for auto-resolving MSAA.

BUG=skia:

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

9 years agoUpdate SKP version
skia.buildbots [Thu, 30 Apr 2015 17:59:13 +0000 (10:59 -0700)]
Update SKP version

Automatic commit by the RecreateSKPs bot.

TBR=
NOTREECHECKS=true

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

9 years agoAdd missing include to SkPictureContentInfo.
mtklein [Thu, 30 Apr 2015 16:15:44 +0000 (09:15 -0700)]
Add missing include to SkPictureContentInfo.

BUG=skia:

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

9 years agosimple cleanup in GrTargetCommands
joshualitt [Thu, 30 Apr 2015 16:05:54 +0000 (09:05 -0700)]
simple cleanup in GrTargetCommands

BUG=skia:

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

9 years agoFix for texture allocation failure in 'preAbandonGpuContext' mode
robertphillips [Thu, 30 Apr 2015 15:55:06 +0000 (08:55 -0700)]
Fix for texture allocation failure in 'preAbandonGpuContext' mode

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

9 years agouse pathops utils to improve precision of cubic chopping in scan converter
reed [Thu, 30 Apr 2015 14:47:13 +0000 (07:47 -0700)]
use pathops utils to improve precision of cubic chopping in scan converter

BUG=skia:

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

9 years agoFix build warning: 'this' pointer cannot be null in well-defined C++ code; comparison...
dongseong.hwang [Thu, 30 Apr 2015 14:47:05 +0000 (07:47 -0700)]
Fix build warning: 'this' pointer cannot be null in well-defined C++ code; comparison may be assumed to always evaluate to true [-Wtautological-undefined-compare]

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

9 years agoLooks like rssPages * pageSize is overflowing on 32-bit Linux...
mtklein [Thu, 30 Apr 2015 14:35:27 +0000 (07:35 -0700)]
Looks like rssPages * pageSize is overflowing on 32-bit Linux...

... resulting in apparently negative memory usage:

  (-2040/2058MB  5867) 1.81s    serialize-8888 skp  top25desk_google_com_calendar_.skp

Turns out long is 32-bit there, long long is 64-bit.

NOTREECHECKS=true

BUG=skia:

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

9 years agoDM+nanobench: print both current and max RSS.
mtklein [Thu, 30 Apr 2015 14:11:22 +0000 (07:11 -0700)]
DM+nanobench: print both current and max RSS.

out/Debug/dm:
    ( 360/380 MB  2112) 396ms   gpu gm  xfermodes

out/Release/nanobench:
    32/33  MB 1659    2.46µs  2.55µs  2.54µs  2.67µs  2%  ▄▄▄▅▅▃▂▁▂█  gpu gradient_conicalZero_clamp_hicolor

out/Debug/nanobench:
    42/42  MB   desk_css3gradients.skp_1    8888

BUG=skia:

NOTREECHECKS=true

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

9 years agoFix build warning: reference cannot be bound to dereferenced null pointer in well...
dongseong.hwang [Thu, 30 Apr 2015 12:53:27 +0000 (05:53 -0700)]
Fix build warning: reference cannot be bound to dereferenced null pointer in well-defined C++ code; comparison may be assumed to always evaluate to true [-Wtautological-undefined-compare]

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

9 years agoUpdate SKP version
skia.buildbots [Thu, 30 Apr 2015 12:19:38 +0000 (05:19 -0700)]
Update SKP version

Automatic commit by the RecreateSKPs bot.

TBR=

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

9 years agoCheck for NULL familyName in SkFontMgr_fontconfig.
bungeman [Wed, 29 Apr 2015 21:35:49 +0000 (14:35 -0700)]
Check for NULL familyName in SkFontMgr_fontconfig.

If the familyName is NULL, don't bother spending time trying to add
it to the FcPattern.

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

9 years agoUse texture barriers to read directly from the RT
cdalton [Wed, 29 Apr 2015 21:17:00 +0000 (14:17 -0700)]
Use texture barriers to read directly from the RT

Updates GrXferProcessor to read directly from the RT texture when
texture barriers are supported and it needs to know the dst color.
Also adds the notion of an Xfer barrier and uses it to issue texture
barriers when the XP will read the RT.

BUG=skia:

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

9 years agoUse colorfilter instead of imagefilter when possible
reed [Wed, 29 Apr 2015 19:18:57 +0000 (12:18 -0700)]
Use colorfilter instead of imagefilter when possible

needs https://codereview.chromium.org/1115713003 to land first in chrome

BUG=skia:

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

9 years agoMake XPFragmentBuilder only Builder with access to DstCopy.
egdaniel [Wed, 29 Apr 2015 18:54:42 +0000 (11:54 -0700)]
Make XPFragmentBuilder only Builder with access to DstCopy.
Plus a bunch of renaming.

BUG=skia:

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

9 years agoFontConfig character/lang match requires weak family.
bungeman [Wed, 29 Apr 2015 18:32:57 +0000 (11:32 -0700)]
FontConfig character/lang match requires weak family.

In FontConfig the normal priority order of matches is character, family,
language; however family can be marked as weak which changes the order to
character, language, family. This is what is desired in
matchFamilyStyleCharacter.

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

9 years agoAdd dash lines batch unit test
joshualitt [Wed, 29 Apr 2015 18:32:05 +0000 (11:32 -0700)]
Add dash lines batch unit test

BUG=skia:

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

9 years agoPull out shader-specific caps into GrShaderCaps and GrGLSLCaps
jvanverth [Wed, 29 Apr 2015 18:18:05 +0000 (11:18 -0700)]
Pull out shader-specific caps into GrShaderCaps and GrGLSLCaps

BUG=skia:

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

9 years agoHandpick 16 Skia page sets to create SP enabled SKPs from
rmistry [Wed, 29 Apr 2015 17:15:07 +0000 (10:15 -0700)]
Handpick 16 Skia page sets to create SP enabled SKPs from

Context is in: https://code.google.com/p/skia/issues/detail?id=3763#c18

NOTRY=true
BUG=skia:3763

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

9 years agoFix double blend in GrAAConvexPathRenderer
cdalton [Wed, 29 Apr 2015 17:14:03 +0000 (10:14 -0700)]
Fix double blend in GrAAConvexPathRenderer

Updates GrAAConvexPathRenderer to not draw the interior fan of a
convex path when it does not exist (i.e when segment count <= 2).

TODO: We should also detect and combine colinear segments in order to
make sure we catch every case.

BUG=skia:

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

9 years agoInitial CL to create GrBatchTest infrastructure
joshualitt [Wed, 29 Apr 2015 17:01:22 +0000 (10:01 -0700)]
Initial CL to create GrBatchTest infrastructure

BUG=skia:

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

9 years agoonCreateDevice -> NULL now means the caller should create its own (bitmap) device
reed [Wed, 29 Apr 2015 15:34:00 +0000 (08:34 -0700)]
onCreateDevice -> NULL now means the caller should create its own (bitmap) device

BUG=skia:

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

9 years agominor fixes to cubics code and overall alignment of how bounds and tops are computed...
caryclark [Wed, 29 Apr 2015 15:28:30 +0000 (08:28 -0700)]
minor fixes to cubics code and overall alignment of how bounds and tops are computed for all curve types

All but 17 extended tests work.

A helper function is privately added to SkPath.h to permit a test to modify a given point in a path.

BUG=skia:3588

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

9 years agoImplementing a scanline decoder for jpeg
msarett [Wed, 29 Apr 2015 15:17:15 +0000 (08:17 -0700)]
Implementing a scanline decoder for jpeg

BUG=skia:3257

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

9 years agoStraighten out SkPicture::AccelData APIs.
mtklein [Wed, 29 Apr 2015 15:16:50 +0000 (08:16 -0700)]
Straighten out SkPicture::AccelData APIs.

Must have been we needed them to be weird (mutable, const setter) before.
It doesn't look like that's necessary now... we can just pass it to the
constructor.

BUG=skia:

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

9 years agoRemove system call in DW for default font.
bungeman [Wed, 29 Apr 2015 15:15:31 +0000 (08:15 -0700)]
Remove system call in DW for default font.

The last user of the GDI default font in DW is
onMatchFamilyStyleCharacter and it doesn't appear to actually need
to use it. This change removes a system call, making things a bit
faster, as well as eliminating a call blocked in the sandbox.

BUG=chromium:459056

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

9 years agoRequires a minor API change to pass the color table to getScanlineDecoder, as we...
msarett [Wed, 29 Apr 2015 14:38:43 +0000 (07:38 -0700)]
Requires a minor API change to pass the color table to getScanlineDecoder, as we do with getPixels().

BUG=skia:3722

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

9 years agoCreate SP enabled SKPs from only the top_25_smooth page set.
rmistry [Wed, 29 Apr 2015 14:26:33 +0000 (07:26 -0700)]
Create SP enabled SKPs from only the top_25_smooth page set.

Context is here: https://code.google.com/p/skia/issues/detail?id=3763#c14

BUG=skia:3763
NOTRY=true

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

9 years agoRemove unneeded features from GrBufferAllocPool
bsalomon [Wed, 29 Apr 2015 11:33:52 +0000 (04:33 -0700)]
Remove unneeded features from GrBufferAllocPool

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

9 years agoPass dashing info from drawPath to Gr side
kkinnunen [Wed, 29 Apr 2015 05:19:25 +0000 (22:19 -0700)]
Pass dashing info from drawPath to Gr side

Pass dashing info also from drawPath calls to gpu path rendering code.
Previously dashing info was preserved only for fast-pathed drawRects and
such.

This enables path renderers to see dashing info for arbitrary paths.

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

9 years agoSkRWBuffer for thread-safe 'stream' sharing
reed [Wed, 29 Apr 2015 00:50:31 +0000 (17:50 -0700)]
SkRWBuffer for thread-safe 'stream' sharing

WIP
- Can accumulate (write) data in one thread, and share snapshots of it in other threads
  ... e.g. network accumulates image data, and periodically we want to decode/draw it
- If this sort of thing sticks, should we promote SkData to have the same generality as
  SkRBuffer?

BUG=skia:
TBR=

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

9 years agoRemove GrFlushToGpuDrawTarget and move functionality up to GrDrawTarget.
bsalomon [Tue, 28 Apr 2015 20:35:17 +0000 (13:35 -0700)]
Remove GrFlushToGpuDrawTarget and move functionality up to GrDrawTarget.

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

9 years agocreate GrTestUtils.h, move some common functions into it
joshualitt [Tue, 28 Apr 2015 20:31:18 +0000 (13:31 -0700)]
create GrTestUtils.h, move some common functions into it

BUG=skia:

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

9 years agodoc: add quickstart to linux and macos
halcanary [Tue, 28 Apr 2015 20:06:54 +0000 (13:06 -0700)]
doc: add quickstart to linux and macos

also, better install_deps

NOTRY=true
DOCS_PREVIEW= https://skia.org/?cl=1112663002

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

9 years agoRemove useless SkASSERT in SkRect.h and SkRegion.h
dongseong.hwang [Tue, 28 Apr 2015 19:47:48 +0000 (12:47 -0700)]
Remove useless SkASSERT in SkRect.h and SkRegion.h

The pointer of reference is always not-null. It causes >50k lines of warnning when chromium is compiled by clang.
Warning looks like
../../third_party/skia/include/core/SkRect.h:284:19: warning: reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]
    do { if (&r) break; SkNO_RETURN_HINT(); SkDebugf_FileLine("../../third_party/skia/include/core/SkRect.h", 284, false, "%s:%d: failed assertion \"%s\"\n", "../../third_party/skia/include/core/SkRect.h", 284, "&r"); SkDebugf_FileLine("../../third_party/skia/include/core/SkRect.h", 284, true, "SK_CRASH"); } while (false);

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

9 years agoDo circular clipping in normalized space
bsalomon [Tue, 28 Apr 2015 19:43:01 +0000 (12:43 -0700)]
Do circular clipping in normalized space

BUG=skia:426217

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

9 years agoFix SkTDynamicHash.h:183:29: warning: equality comparison with extraneous parentheses...
dongseong.hwang [Tue, 28 Apr 2015 19:26:52 +0000 (12:26 -0700)]
Fix SkTDynamicHash.h:183:29: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]

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

9 years agoUpdate documentation for "COMMIT=false".
rmistry [Tue, 28 Apr 2015 17:28:13 +0000 (10:28 -0700)]
Update documentation for "COMMIT=false".

The meaning of "COMMIT=false" was changed in https://code.google.com/p/chromium/issues/detail?id=470609.
I have also updated the corresponding Chromium documentation in https://sites.google.com/a/chromium.org/dev/developers/testing/commit-queue

BUG=skia:
NOTRY=true
DOCS_PREVIEW= https://skia.org/?cl=1107343004

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

9 years agoRun DM on GalaxyS* in one thread
borenet [Tue, 28 Apr 2015 16:54:55 +0000 (09:54 -0700)]
Run DM on GalaxyS* in one thread

Drive-by cleanup of Xoom

BUG=skia:3214

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