platform/upstream/libSkiaSharp.git
9 years agoCleanup: Remove a bunch of SkFontHost.h includes (unused).
tfarina [Thu, 18 Dec 2014 13:48:53 +0000 (05:48 -0800)]
Cleanup: Remove a bunch of SkFontHost.h includes (unused).

Nobody that is including SkFontHost is using SkFontHost API, so lets
remove this includes, since the API per se is deprecated.

BUG=None
R=reed@google.com

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

9 years agoOne more pass at getting half float texture configs correct.
jvanverth [Thu, 18 Dec 2014 13:44:55 +0000 (05:44 -0800)]
One more pass at getting half float texture configs correct.

Added in check for sized internal format.
Made choice between RED and ALPHA orthogonal to HALF_FLOAT and
HALF_FLOAT_OES.
Enabled rendertarget support on ES 2.0.

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

9 years agoUpdate SKP version
skia.buildbots [Thu, 18 Dec 2014 07:06:08 +0000 (23:06 -0800)]
Update SKP version

Automatic commit by the RecreateSKPs bot.

TBR=

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

9 years agoCleanup: More override fixes.
tfarina [Thu, 18 Dec 2014 01:50:21 +0000 (17:50 -0800)]
Cleanup: More override fixes.

Fixes errors like:

../../src/gpu/GrGeometryProcessor.h:172:25: error: 'name' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
    virtual const char* name() const = 0;
                            ^
../../include/gpu/GrProcessor.h:66:25: note: overridden virtual function is here
                                virtual const char* name() const = 0;

BUG=skia:3075
TEST=ninja -C out/Debug skia_lib
TBR=mtklein@google.com

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

9 years agorebase
joshualitt [Thu, 18 Dec 2014 01:13:37 +0000 (17:13 -0800)]
rebase

TBR=
NOTRY=True
BUG=skia:

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

9 years agoremove view matrix from context
joshualitt [Wed, 17 Dec 2014 23:50:11 +0000 (15:50 -0800)]
remove view matrix from context

BUG=skia:

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

9 years agouse conics for addRRect
reed [Wed, 17 Dec 2014 22:42:09 +0000 (14:42 -0800)]
use conics for addRRect

BUG=skia:

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

9 years agoadd inverted path draw cases to complexclip gm
bsalomon [Wed, 17 Dec 2014 22:38:49 +0000 (14:38 -0800)]
add inverted path draw cases to complexclip gm

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

9 years agoIgnore buggy clip gm on Mac 10.9
egdaniel [Wed, 17 Dec 2014 22:03:51 +0000 (14:03 -0800)]
Ignore buggy clip gm on Mac 10.9

TBR=
NOTRY=true

BUG=skia:

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

9 years agoStop creating GrODS for stencilPath commands.
bsalomon [Wed, 17 Dec 2014 21:43:13 +0000 (13:43 -0800)]
Stop creating GrODS for stencilPath commands.

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

9 years agoAdd Coverage Drawing XP
egdaniel [Wed, 17 Dec 2014 21:37:13 +0000 (13:37 -0800)]
Add Coverage Drawing XP

BUG=skia:

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

9 years agorebaseline after perspective/conic fix
reed [Wed, 17 Dec 2014 21:32:20 +0000 (13:32 -0800)]
rebaseline after perspective/conic fix

BUG=skia:
TBR=
NOTRY=True

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

9 years agoversion 0 of imgconv tool
reed [Wed, 17 Dec 2014 21:08:17 +0000 (13:08 -0800)]
version 0 of imgconv tool

BUG=skia:

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

9 years agoRebaseline HD7770 GMs for https://codereview.chromium.org/811133002.
jvanverth [Wed, 17 Dec 2014 20:07:20 +0000 (12:07 -0800)]
Rebaseline HD7770 GMs for https://codereview.chromium.org/811133002.

TBR=bensong@google.com

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

9 years agorebaseline after perspective/conic change
reed [Wed, 17 Dec 2014 19:28:35 +0000 (11:28 -0800)]
rebaseline after perspective/conic change

BUG=skia:
TBR=
NOTRY=True

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

9 years agoTurn off warnings as errors for the debugger
robertphillips [Wed, 17 Dec 2014 19:27:47 +0000 (11:27 -0800)]
Turn off warnings as errors for the debugger

Compiling the debugger on Linux was running afoul of warnings-as-errors

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

9 years agoAdd new complexclip3 gm.
egdaniel [Wed, 17 Dec 2014 19:22:37 +0000 (11:22 -0800)]
Add new complexclip3 gm.

This GM is used to test the combined clipping of a complex clip (packman shape)
and a simple one (circle). We loop over all combinations of clip ops, aa/bw clip,
and inverse/non-inverse clips.

This GM triggers a current bug in the gpu clipping code which fires an assert. Thus
the skipGPU flag is set until that bug is fixed.

BUG=skia:

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

9 years agoMark flaky gm as ignore-failure on mac 10.9
Brian Salomon [Wed, 17 Dec 2014 19:05:17 +0000 (14:05 -0500)]
Mark flaky gm as ignore-failure on mac 10.9

BUG=skia:3256

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

9 years agoRe-enable default sized formats, handling BGRA exception.
jvanverth [Wed, 17 Dec 2014 18:46:01 +0000 (10:46 -0800)]
Re-enable default sized formats, handling BGRA exception.

Sized texture formats are accepted by OpenGL desktop and ES 3.0,
except when using BGRA with GL_EXT_texture_format_BGRA8888.
In that case we fall back to using the unsized format.

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

9 years agorebaseline after perspective/conic fix
reed [Wed, 17 Dec 2014 17:47:28 +0000 (09:47 -0800)]
rebaseline after perspective/conic fix

BUG=skia:
TBR=
NOTRY=True

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

9 years agoStop calling flushGLState in onStencilPath
bsalomon [Wed, 17 Dec 2014 17:43:13 +0000 (09:43 -0800)]
Stop calling flushGLState in onStencilPath

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

9 years agoremove flags that are now in chrome's userconfig
reed [Wed, 17 Dec 2014 17:40:50 +0000 (09:40 -0800)]
remove flags that are now in chrome's userconfig

BUG=skia:

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

9 years agorebaseline after perspective fix (using conics)
reed [Wed, 17 Dec 2014 17:27:34 +0000 (09:27 -0800)]
rebaseline after perspective fix (using conics)

BUG=skia:
TBR=
NOTRY=True

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

9 years agouse conics
reed [Wed, 17 Dec 2014 16:21:04 +0000 (08:21 -0800)]
use conics

BUG=skia:

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

9 years agorebaseline after fix to cornerpatheffect
reed [Wed, 17 Dec 2014 15:49:58 +0000 (07:49 -0800)]
rebaseline after fix to cornerpatheffect

BUG=skia:
TBR=
NOTRY=True

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

9 years agoFix a case of kPartialSuccess.
scroggo [Wed, 17 Dec 2014 14:55:02 +0000 (06:55 -0800)]
Fix a case of kPartialSuccess.

Missed in https://codereview.chromium.org/647023006/

When JPEG decoder does not have the remainder of the image, it should
return kPartialSuccess.

BUG:b/17419670
BUG:b/18769124

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

9 years agoRebaseline HD7770 images after sized texture format revert.
jvanverth [Wed, 17 Dec 2014 14:34:45 +0000 (06:34 -0800)]
Rebaseline HD7770 images after sized texture format revert.

TBR=bensong@google.com

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

9 years agofix end-point and conic bugs in cornerpatheffect
reed [Wed, 17 Dec 2014 13:50:55 +0000 (05:50 -0800)]
fix end-point and conic bugs in cornerpatheffect

fixes bug in GM/patheffect -- will need to be rebaselined

BUG=skia:

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

9 years agoUpdate SKP version
skia.buildbots [Wed, 17 Dec 2014 12:52:31 +0000 (04:52 -0800)]
Update SKP version

Automatic commit by the RecreateSKPs bot.

TBR=

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

9 years agowebpages_playback.py: Page sets to use changed telemetry API (AddUserStory)
kkinnunen [Wed, 17 Dec 2014 12:06:54 +0000 (04:06 -0800)]
webpages_playback.py: Page sets to use changed telemetry API (AddUserStory)

Make page sets to use telemetry.page.page_set.AddUserStory instead of
AddPage.

BUG=chromium:439512
BUG=skia:3196

NOTRY=true

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

9 years agoadd arcto patheffect
reed [Wed, 17 Dec 2014 09:47:32 +0000 (01:47 -0800)]
add arcto patheffect

BUG=skia:
TBR=

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

9 years agoWhitespace change
fmalita [Wed, 17 Dec 2014 09:25:33 +0000 (01:25 -0800)]
Whitespace change

To re-trigger the build bots.

TBR=bensong@google.com
NOTREECHECKS=true
NOTRY=true

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

9 years agoGive the hoisting surfaces surface props
robertphillips [Tue, 16 Dec 2014 22:25:08 +0000 (14:25 -0800)]
Give the hoisting surfaces surface props

This mimics how layers are set up in SkGpuDevice::onCreateCompatibleDevice

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

9 years agoRevert using sized formats for everything except ES 2.0.
jvanverth [Tue, 16 Dec 2014 21:32:27 +0000 (13:32 -0800)]
Revert using sized formats for everything except ES 2.0.

Temporary fix for WritePixels test on Nexus 5/Nexus 7-2013.

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

9 years agoRemove GrGpu::flushGraphicsState
bsalomon [Tue, 16 Dec 2014 21:05:12 +0000 (13:05 -0800)]
Remove GrGpu::flushGraphicsState

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

9 years agoCatch the stragglers from skbug.com/3241
scroggo [Tue, 16 Dec 2014 20:59:56 +0000 (12:59 -0800)]
Catch the stragglers from skbug.com/3241

Update expectations for tests that were using SkLCGRandom (and now
use SkRandom).

TBR=benchen
BUG=skia:3241

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

9 years agoUpdate expectations for Win8-HD7770.
jvanverth [Tue, 16 Dec 2014 20:00:12 +0000 (12:00 -0800)]
Update expectations for Win8-HD7770.

TBR=bensong@google.com

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

9 years agoMassive rebaseline for SkRandom.
scroggo [Tue, 16 Dec 2014 18:59:55 +0000 (10:59 -0800)]
Massive rebaseline for SkRandom.

All of the following GMs have been switched from SkLCGRandom to
SkRandom. Update their expectations for the new images.

-beziers
-circles
-convexpaths
-complexclip2
-complexclip2_rect_aa
-complexclip2_rect_bw
-complexclip2_path_aa
-complexclip2_path_bw
-complexclip2_rrect_aa
-complexclip2_rrect_bw
-cubicpath
-cubicclosepath
-degeneratesegments
-emptypath
-getpostextpath
-hittestpath
-linepath
-lineclosepath
-points
-polygons
-quadpath
-quadclosepath
-strokerects
-strokes_round
-strokes_poly

BUG=skia:3241
TBR=mtklein

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

9 years agoChange desktop and ES 3.0 to always use sized internal texture formats.
jvanverth [Tue, 16 Dec 2014 17:49:38 +0000 (09:49 -0800)]
Change desktop and ES 3.0 to always use sized internal texture formats.

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

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

9 years agoAlter GM's --mpd option to write out images
robertphillips [Tue, 16 Dec 2014 17:31:42 +0000 (09:31 -0800)]
Alter GM's --mpd option to write out images

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

9 years agoSkMatrix44(const SkMatrix&) needs to initialize the type mask
fs [Tue, 16 Dec 2014 16:36:11 +0000 (08:36 -0800)]
SkMatrix44(const SkMatrix&) needs to initialize the type mask

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

9 years agoFix layer hoisting image filter corner cases
robertphillips [Tue, 16 Dec 2014 16:25:55 +0000 (08:25 -0800)]
Fix layer hoisting image filter corner cases

This CL fixes 5 bugs related to hoisting image filters:

For image filters the src layer (the one prior to filtering) often needs to be
smaller then the final layer. This requires the saveLayer's optional bounds
to be stored (in SkLayerInfo.h and SkRecordDraw.cpp) and then used in
compute_source_rect and carried around in GrCachedLayer.

The image filters can add an extra offset to the final draw operation.
This is now computed in GrLayerHoister::FilterLayer and  carried around in
GrCachedLayer.

Filtered layers must use exact matches. This is now done in GrLayerCache::lock.

The filter cache requires a valid matrix so it can compute the correct offset.
This is now done in GrLayerHoister::FilterLayer.

Filtered layers need to be drawn with drawSprite while unfiltered (and therefore
hopefully atlased) layers can be drawn with drawBitmap. This is now done in
draw_replacement_bitmap.

Committed: https://skia.googlesource.com/skia/+/702eb9622102599d94ab6798e6227cf29f48c2d3

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

9 years agoRename GrGpuGL_program.cpp to GrGLGpuProgramCache.cpp
bsalomon [Tue, 16 Dec 2014 16:13:53 +0000 (08:13 -0800)]
Rename GrGpuGL_program.cpp to GrGLGpuProgramCache.cpp

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

9 years agoadd sample for arcTo
reed [Tue, 16 Dec 2014 16:07:43 +0000 (08:07 -0800)]
add sample for arcTo

BUG=skia:
TBR=

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

9 years agoRevert of Fix layer hoisting image filter corner cases (patchset #3 id:40001 of https...
robertphillips [Tue, 16 Dec 2014 15:41:37 +0000 (07:41 -0800)]
Revert of Fix layer hoisting image filter corner cases (patchset #3 id:40001 of https://codereview.chromium.org/803183003/)

Reason for revert:
Breaking DM

Original issue's description:
> Fix layer hoisting image filter corner cases
>
> This CL fixes 5 bugs related to hoisting image filters:
>
> For image filters the src layer (the one prior to filtering) often needs to be
> smaller then the final layer. This requires the saveLayer's optional bounds
> to be stored (in SkLayerInfo.h and SkRecordDraw.cpp) and then used in
> compute_source_rect and carried around in GrCachedLayer.
>
> The image filters can add an extra offset to the final draw operation.
> This is now computed in GrLayerHoister::FilterLayer and  carried around in
> GrCachedLayer.
>
> Filtered layers must use exact matches. This is now done in GrLayerCache::lock.
>
> The filter cache requires a valid matrix so it can compute the correct offset.
> This is now done in GrLayerHoister::FilterLayer.
>
> Filtered layers need to be drawn with drawSprite while unfiltered (and therefore
> hopefully atlased) layers can be drawn with drawBitmap. This is now done in
> draw_replacement_bitmap.
>
> Committed: https://skia.googlesource.com/skia/+/702eb9622102599d94ab6798e6227cf29f48c2d3

TBR=bsalomon@google.com
NOTREECHECKS=true
NOTRY=true

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

9 years agoRename GrGpuGL to GrGLGpu for consistency
bsalomon [Tue, 16 Dec 2014 15:33:49 +0000 (07:33 -0800)]
Rename GrGpuGL to GrGLGpu for consistency

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

9 years agoFix layer hoisting image filter corner cases
robertphillips [Tue, 16 Dec 2014 15:27:30 +0000 (07:27 -0800)]
Fix layer hoisting image filter corner cases

This CL fixes 5 bugs related to hoisting image filters:

For image filters the src layer (the one prior to filtering) often needs to be
smaller then the final layer. This requires the saveLayer's optional bounds
to be stored (in SkLayerInfo.h and SkRecordDraw.cpp) and then used in
compute_source_rect and carried around in GrCachedLayer.

The image filters can add an extra offset to the final draw operation.
This is now computed in GrLayerHoister::FilterLayer and  carried around in
GrCachedLayer.

Filtered layers must use exact matches. This is now done in GrLayerCache::lock.

The filter cache requires a valid matrix so it can compute the correct offset.
This is now done in GrLayerHoister::FilterLayer.

Filtered layers need to be drawn with drawSprite while unfiltered (and therefore
hopefully atlased) layers can be drawn with drawBitmap. This is now done in
draw_replacement_bitmap.

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

9 years agoRevert of Use SkPaint::getFontBounds() for text bounding boxes in pictures. (patchset...
mtklein [Tue, 16 Dec 2014 14:31:01 +0000 (06:31 -0800)]
Revert of Use SkPaint::getFontBounds() for text bounding boxes in pictures. (patchset #1 id:1 of https://codereview.chromium.org/805983003/)

Reason for revert:
Test-Win7-ShuttleA-HD2000-x86-Debug-GDI

Original issue's description:
> Use SkPaint::getFontBounds() for text bounding boxes in pictures.
>
> Now that SkTextBlobs have landed, this is a perf no-op, but it at least lets us eliminate a bunch of questionable hacks.
>
> CQ_EXTRA_TRYBOTS=client.skia:Test-Win7-ShuttleA-HD2000-x86-Debug-Trybot,Test-Mac10.8-MacMini4.1-GeForce320M-x86_64-Debug-Trybot
>
>
> BUG=skia:
>
> Committed: https://skia.googlesource.com/skia/+/02d2b9831579173e783569530ab7bae08de907e9

TBR=reed@google.com,mtklein@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=skia:

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

9 years agoRevert of Change desktop and ES 3.0 to always use sized internal texture formats...
jvanverth [Tue, 16 Dec 2014 14:17:59 +0000 (06:17 -0800)]
Revert of Change desktop and ES 3.0 to always use sized internal texture formats. (patchset #2 id:20001 of https://codereview.chromium.org/806943002/)

Reason for revert:
Failing GMs on Mac, Windows and Ubuntu12.

Original issue's description:
> Change desktop and ES 3.0 to always use sized internal texture formats.
>
> Committed: https://skia.googlesource.com/skia/+/bc02bf0ee4221604796cd6d0394ca3af60c0a579

TBR=bsalomon@google.com
NOTREECHECKS=true
NOTRY=true

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

9 years agoUse SkPaint::getFontBounds() for text bounding boxes in pictures.
mtklein [Tue, 16 Dec 2014 14:17:54 +0000 (06:17 -0800)]
Use SkPaint::getFontBounds() for text bounding boxes in pictures.

Now that SkTextBlobs have landed, this is a perf no-op, but it at least lets us eliminate a bunch of questionable hacks.

CQ_EXTRA_TRYBOTS=client.skia:Test-Win7-ShuttleA-HD2000-x86-Debug-Trybot,Test-Mac10.8-MacMini4.1-GeForce320M-x86_64-Debug-Trybot

BUG=skia:

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

9 years agoChange desktop and ES 3.0 to always use sized internal texture formats.
jvanverth [Tue, 16 Dec 2014 13:45:49 +0000 (05:45 -0800)]
Change desktop and ES 3.0 to always use sized internal texture formats.

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

9 years agorebase gms and update ignore
joshualitt [Tue, 16 Dec 2014 01:42:43 +0000 (17:42 -0800)]
rebase gms and update ignore

NOTRY=True
TBR=
BUG=skia:

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

9 years agowhitespace change to context to force rebuild of skia
joshualitt [Mon, 15 Dec 2014 22:55:30 +0000 (14:55 -0800)]
whitespace change to context to force rebuild of skia

NOTREECHECKS=True
NOTRY=True
TBR=
BUG=skia:

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

9 years agoThis change will ultimately pull uniform color, and to a much lesser degree uniform...
joshualitt [Mon, 15 Dec 2014 22:16:27 +0000 (14:16 -0800)]
This change will ultimately pull uniform color, and to a much lesser degree uniform coverage, into GPs.  There are still some loose ends because drawstate has the ability to override the GP, but fixing these cleanly will have to wait until we have deferred geometry in place and can make attribute / uniform decisions on the fly.

BUG=skia:

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

9 years agoMove all non-program cache functions out of GrGpuGL_program.cpp
bsalomon [Mon, 15 Dec 2014 21:45:03 +0000 (13:45 -0800)]
Move all non-program cache functions out of GrGpuGL_program.cpp

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

9 years agopass dst-rect through from drawBitmapRect for better precision
reed [Mon, 15 Dec 2014 21:42:51 +0000 (13:42 -0800)]
pass dst-rect through from drawBitmapRect for better precision

BUG=skia:

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

9 years agoLook at DYNAMIC_ANNOTATIONS_ENABLED now.
mtklein [Mon, 15 Dec 2014 21:38:07 +0000 (13:38 -0800)]
Look at DYNAMIC_ANNOTATIONS_ENABLED now.

Defining SK_DYNAMIC_ANNOTATIONS_ENABLED as 1 whenever DYNAMIC_ANNOTATIONS_ENABLED was 1
seems to be working fine for Chrome.  Should be we can just use DYNAMIC_ANNOTATIONS_ENABLED.

BUG=skia:

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

9 years agoadd paint::getFontBounds()
reed [Mon, 15 Dec 2014 21:27:26 +0000 (13:27 -0800)]
add paint::getFontBounds()

BUG=skia:

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

9 years agoAdd missed convexpaths.
scroggo [Mon, 15 Dec 2014 21:25:49 +0000 (13:25 -0800)]
Add missed convexpaths.

TBR=reed
NOTRY=True
NOTREECHECKS=True
BUG=skia:3241

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

9 years agoDelete old bench expectation code.
mtklein [Mon, 15 Dec 2014 21:17:01 +0000 (13:17 -0800)]
Delete old bench expectation code.

Just noticed these were still here.

BUG=skia:

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

9 years agodevirtualize some functions on GrGpu
bsalomon [Mon, 15 Dec 2014 21:12:08 +0000 (13:12 -0800)]
devirtualize some functions on GrGpu

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

9 years agoRolling libwebp broke our iOS builds. Silence warnings instead.
mtklein [Mon, 15 Dec 2014 20:59:07 +0000 (12:59 -0800)]
Rolling libwebp broke our iOS builds.  Silence warnings instead.

BUG=skia:

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

9 years agoThere can be only one (SkRandom)!
scroggo [Mon, 15 Dec 2014 20:54:51 +0000 (12:54 -0800)]
There can be only one (SkRandom)!

Remove SkLCGRandom. We already decided the new one was better, which is
why we wrote the new SkRandom.

Convert GMs that were using SkLCGRandom to use the improved SkRandom.
Motivated by the fact that these GMs draw differently on some runs. We
believe this to be a result of using the old SkLCGRandom.

Add each of the tests that were using SkLCGRandom to ignore-tests.txt,
since we expect they'll draw differently using SkRandom.

Move a trimmed down version of SkLCGRandom into SkDiscretePathEffect.
In order to preserve the old behavior, trim down SkLCGRandom to only
the methods used by SkDiscretePathEffect, and hide it in
SkDiscretePathEffect's cpp file.

BUG=skia:3241

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

9 years agoskimage, die die die
mtklein [Mon, 15 Dec 2014 20:47:51 +0000 (12:47 -0800)]
skimage, die die die

DM's running with --images on all the bots now.  They look happy.

BUG=skia:3235

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

9 years agoAdd xp optimization for RGB coverage.
egdaniel [Mon, 15 Dec 2014 20:38:53 +0000 (12:38 -0800)]
Add xp optimization for RGB coverage.

This is needed since clearColorStages is being changed to ignore color input. For RGB coverage,
we want to clear all the color stages (since we know the final output color), but we don't want
to ignore the color input since it is needed.

In future we will change this so the XP stores the color internally and thus can tell the GP to
simiply ignore color.

BUG=skia:

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

9 years agoFix rrects that are large enough that we lose/gain a bit when we add the radius to...
reed [Mon, 15 Dec 2014 20:28:33 +0000 (12:28 -0800)]
Fix rrects that are large enough that we lose/gain a bit when we add the radius to a bounds coordinate.

add test that triggers assert in addRRect

BUG=skia:3239

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

9 years agoSilence warnings from libnanomsg on Mac like we do on Linux.
mtklein [Mon, 15 Dec 2014 20:24:46 +0000 (12:24 -0800)]
Silence warnings from libnanomsg on Mac like we do on Linux.

This will silence these warnings:

../../third_party/externals/nanomsg/src/core/global.c:162:34: warning: missing field 'unused' initializer [-Wmissing-field-initializers]
static struct nn_global self = {0};

../../third_party/externals/nanomsg/src/utils/clock.c:44:61: warning: missing field 'denom' initializer [-Wmissing-field-initializers]
static mach_timebase_info_data_t nn_clock_timebase_info = {0};

BUG=skia:

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

9 years agoRevert of Roll libwebp to v0.4.2 (latest stable) to fix annoying build warning. ...
mtklein [Mon, 15 Dec 2014 20:23:00 +0000 (12:23 -0800)]
Revert of Roll libwebp to v0.4.2 (latest stable) to fix annoying build warning. (patchset #1 id:1 of https://codereview.chromium.org/807553002/)

Reason for revert:
uses __builtins not available on all our compilers

Original issue's description:
> Roll libwebp to v0.4.2 (latest stable) to fix annoying build warning.
>
> This warning should now go away:
>
> ../../third_party/externals/libwebp/src/enc/quant.c:105:23: warning: unused variable 'kCoeffThresh' [-Wunused-const-variable]
> static const uint16_t kCoeffThresh[16] = {
>
>
> BUG=skia:
>
> Committed: https://skia.googlesource.com/skia/+/e655557a551c545f4153b0764269298cd01cd0c0

TBR=caryclark@google.com,mtklein@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=skia:

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

9 years agoRoll libwebp to v0.4.2 (latest stable) to fix annoying build warning.
mtklein [Mon, 15 Dec 2014 20:11:48 +0000 (12:11 -0800)]
Roll libwebp to v0.4.2 (latest stable) to fix annoying build warning.

This warning should now go away:

../../third_party/externals/libwebp/src/enc/quant.c:105:23: warning: unused variable 'kCoeffThresh' [-Wunused-const-variable]
static const uint16_t kCoeffThresh[16] = {

BUG=skia:

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

9 years agoRewrite NaN checks in terms of SkScalarIsNaN()
ehsan.akhgari [Mon, 15 Dec 2014 20:08:47 +0000 (12:08 -0800)]
Rewrite NaN checks in terms of SkScalarIsNaN()

We are trying to replace Skia's NaN checker with our own in Mozilla,
so it would be nice to have to patch a single place by making sure
these NaN checks used SkScalarIsNaN().

BUG=skia:

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

9 years agoRemove SkCanvas::isDrawingToLayer
junov [Mon, 15 Dec 2014 19:34:06 +0000 (11:34 -0800)]
Remove SkCanvas::isDrawingToLayer

BUG=3245

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

9 years agoUpdate SKP version
skia.buildbots [Mon, 15 Dec 2014 19:09:05 +0000 (11:09 -0800)]
Update SKP version

Automatic commit by the RecreateSKPs bot.

TBR=

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

9 years agofinal circles?
Brian Salomon [Mon, 15 Dec 2014 18:50:26 +0000 (13:50 -0500)]
final circles?

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

9 years agoWAE on Macs too. That leaves only Android framework builds.
mtklein [Mon, 15 Dec 2014 18:38:42 +0000 (10:38 -0800)]
WAE on Macs too.  That leaves only Android framework builds.

Will rebase after yours lands.

BUG=skia:

Committed: https://skia.googlesource.com/skia/+/161b6dee11a67e877ef5b339b17775b8e44c5927

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

9 years agoRevert of WAE on Macs too. That leaves only Android framework builds. (patchset...
mtklein [Mon, 15 Dec 2014 17:49:12 +0000 (09:49 -0800)]
Revert of WAE on Macs too.  That leaves only Android framework builds. (patchset #3 id:40001 of https://codereview.chromium.org/804063002/)

Reason for revert:
Forgot CrOS and NaCl builds.

Original issue's description:
> WAE on Macs too.  That leaves only Android framework builds.
>
> Will rebase after yours lands.
>
> BUG=skia:
>
> Committed: https://skia.googlesource.com/skia/+/161b6dee11a67e877ef5b339b17775b8e44c5927

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

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

9 years agoWAE on Macs too. That leaves only Android framework builds.
mtklein [Mon, 15 Dec 2014 17:45:00 +0000 (09:45 -0800)]
WAE on Macs too.  That leaves only Android framework builds.

Will rebase after yours lands.

BUG=skia:

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

9 years agocircles circles circles
Brian Salomon [Mon, 15 Dec 2014 17:14:59 +0000 (12:14 -0500)]
circles circles circles

TBR=bensong@google.com

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

9 years agofix last warnings on w64 and turn on w.a.e.
bsalomon [Mon, 15 Dec 2014 17:13:35 +0000 (09:13 -0800)]
fix last warnings on w64 and turn on w.a.e.

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

9 years agoAdd SK_OVERRIDE to a few places that are missing it.
mtklein [Mon, 15 Dec 2014 17:08:33 +0000 (09:08 -0800)]
Add SK_OVERRIDE to a few places that are missing it.

This was done automatically by running clang-modernize -add-override -override-macros.

It's not clear to me whether include/ is already clean or I just can't get the tool to work for headers.

BUG=skia:

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

9 years agoAdd more filetypes to DM's image tests.
scroggo [Mon, 15 Dec 2014 16:53:35 +0000 (08:53 -0800)]
Add more filetypes to DM's image tests.

ico, wbmp, plus the alternate suffix jpeg.

Also check for capitalized versions, since files sometimes use
capitalized suffixes.

BUG=skia:3235

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

9 years agoMore circle rebaselines on gpu
Brian Salomon [Mon, 15 Dec 2014 16:44:14 +0000 (11:44 -0500)]
More circle rebaselines on gpu

TBR=bensong@google.com

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

9 years agoRebaseline after circle normalization change.
Brian Salomon [Mon, 15 Dec 2014 16:34:37 +0000 (11:34 -0500)]
Rebaseline after circle normalization change.

TBR=bensong@google.com

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

9 years agoadd dumpHex option to rect and rrect, to match path
reed [Mon, 15 Dec 2014 15:59:53 +0000 (07:59 -0800)]
add dumpHex option to rect and rrect, to match path

BUG=skia:

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

9 years agoDo circle anti-aliasing in normalized space to avoid precision issues with half-float...
bsalomon [Mon, 15 Dec 2014 15:11:22 +0000 (07:11 -0800)]
Do circle anti-aliasing in normalized space to avoid precision issues with half-floats on Adreno.

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

9 years agoensure 4-byte alignment for storage, as SkWriterBuffer requires it
reed [Mon, 15 Dec 2014 14:41:02 +0000 (06:41 -0800)]
ensure 4-byte alignment for storage, as SkWriterBuffer requires it

BUG=skia:3244

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

9 years agoCleanup: Mark some overridden methods with 'SK_OVERRIDE'.
tfarina [Sun, 14 Dec 2014 23:20:10 +0000 (15:20 -0800)]
Cleanup: Mark some overridden methods with 'SK_OVERRIDE'.

This fixes errors like this:

../../include/gpu/effects/GrPorterDuffXferProcessor.h:27:25: error:
'name' overrides a member function but is not marked 'override'
[-Werror,-Winconsistent-missing-override]

BUG=skia:3075
TEST=ninja -C out/Debug skia_lib
TBR=bsalomon@google.com

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

9 years agoadd get9 and set9 to matrix, to aid in making keys
reed [Sat, 13 Dec 2014 16:46:48 +0000 (08:46 -0800)]
add get9 and set9 to matrix, to aid in making keys

BUG=skia:
TBR=
NOTREECHECKS=True

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

9 years agoGLPrograms leak fix
joshualitt [Sat, 13 Dec 2014 14:46:13 +0000 (06:46 -0800)]
GLPrograms leak fix

NOTREECHECKS=True
TBR=
BUG=skia:

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

9 years agoDM warning-free on win64
bsalomon [Sat, 13 Dec 2014 00:41:46 +0000 (16:41 -0800)]
DM warning-free on win64

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

9 years agoAdd image decoding mode to DM.
mtklein [Sat, 13 Dec 2014 00:41:12 +0000 (16:41 -0800)]
Add image decoding mode to DM.

This is meant to supplant skimage.

BUG=skia:3235

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

9 years agoEven more win64 warning fixes
bsalomon [Fri, 12 Dec 2014 23:11:17 +0000 (15:11 -0800)]
Even more win64 warning fixes

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

9 years agoRebaselines.
scroggo [Fri, 12 Dec 2014 23:10:55 +0000 (15:10 -0800)]
Rebaselines.

TBR=borenet

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

9 years agoCheck in skimage expectations for nexus player.
scroggo [Fri, 12 Dec 2014 22:26:41 +0000 (14:26 -0800)]
Check in skimage expectations for nexus player.

TBR=borenet

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

9 years agoimprove cull, so we don't create empty segments
reed [Fri, 12 Dec 2014 20:48:50 +0000 (12:48 -0800)]
improve cull, so we don't create empty segments

BUG=skia:3224

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

9 years agoHarden validation for SkPathRef
robertphillips [Fri, 12 Dec 2014 20:47:59 +0000 (12:47 -0800)]
Harden validation for SkPathRef

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

9 years agoAdd Herb as a Skia committer
hcm [Fri, 12 Dec 2014 20:37:28 +0000 (12:37 -0800)]
Add Herb as a Skia committer

TBR=hcm@google.com

NOTRY=true

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

9 years agoHandle SkBitmaps which have no pixels in SkPDFImage.
jbroman [Fri, 12 Dec 2014 19:28:16 +0000 (11:28 -0800)]
Handle SkBitmaps which have no pixels in SkPDFImage.

A test that ensures this no longer crashes has been added.

BUG=skia:3232

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

9 years agoUpdate expectations for Test-Mac10.9-MacMini6.2-HD4000-x86_64-Debug
scroggo [Fri, 12 Dec 2014 19:13:35 +0000 (11:13 -0800)]
Update expectations for Test-Mac10.9-MacMini6.2-HD4000-x86_64-Debug

TBR=borenet

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

9 years agoRemove gms from ignore-tests.
egdaniel [Fri, 12 Dec 2014 19:01:29 +0000 (11:01 -0800)]
Remove gms from ignore-tests.

TBR=

BUG=skia:

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

9 years agoBlindly check in GM and skimage expectations for new bots
borenet [Fri, 12 Dec 2014 17:50:23 +0000 (09:50 -0800)]
Blindly check in GM and skimage expectations for new bots

BUG=skia:

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