egdaniel
fb69bb3a5e
Fix to call SkDelete_array instead of SkDelete to fix ASAN error.
...
TBR=mtklein@google.com
BUG=skia:
Review URL: https://codereview.chromium.org/1282333002
2015-08-10 11:39:10 -07:00
egdaniel
2a5ca89ea1
Revert of [TextBlob] Fall back to TightRunBounds when the font bounds are empty (patchset #1 id:1 of https://codereview.chromium.org/1284693002/ )
...
Reason for revert:
Breaking DEPS roll on Assert in SkTextBlobBuilder::TightRunBounds.
Original issue's description:
> [TextBlob] Fall back to TightRunBounds when the font bounds are empty
>
> Empty font bounds are likely an indication of a font bug. As a best
> effort, we can use TightRunBounds in this easily detectable case.
>
> BUG=507022
> R=reed@google.com ,bungeman@google.com
>
> Committed: https://skia.googlesource.com/skia/+/d6b99cc6b84b3ec864221cbe9945d203bd9eb072
TBR=bungeman@google.com ,reed@google.com,fmalita@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=507022
Review URL: https://codereview.chromium.org/1283853002
2015-08-10 11:02:46 -07:00
bsalomon
91d844de47
Rename GrPipelineInfo to GrPipelineOptimizations
...
TBR=joshualitt@google.com
Review URL: https://codereview.chromium.org/1274513005
2015-08-10 10:47:29 -07:00
joshualitt
7fc2a2610e
Move GrStrokeRectBatch creation to behind factory
...
BUG=skia:
Review URL: https://codereview.chromium.org/1282283002
2015-08-10 10:30:14 -07:00
joshualitt
ecd1a69fbf
Create GrRectBatchFactory
...
BUG=skia:
Review URL: https://codereview.chromium.org/1287433003
2015-08-10 10:08:26 -07:00
egdaniel
9d144ac15f
This is a speculative fix for the crash on IOS
...
TBR=mtklein
Review URL: https://codereview.chromium.org/1277433005
2015-08-10 10:06:43 -07:00
fmalita
d6b99cc6b8
[TextBlob] Fall back to TightRunBounds when the font bounds are empty
...
Empty font bounds are likely an indication of a font bug. As a best
effort, we can use TightRunBounds in this easily detectable case.
BUG=507022
R=reed@google.com ,bungeman@google.com
Review URL: https://codereview.chromium.org/1284693002
2015-08-10 09:24:31 -07:00
joshualitt
9ff6425ce4
move Stroke Rect and AAFill Rect to their own file
...
BUG=skia:
Review URL: https://codereview.chromium.org/1282723004
2015-08-10 09:03:51 -07:00
djsollen
3a26fc8e9a
Ensure that android "release" apps are signed with debug key
...
Review URL: https://codereview.chromium.org/1275223003
2015-08-10 08:58:04 -07:00
halcanary
4f2b33159b
SkPDF: add assert for that SkWStream behaves.
...
Motivation: this might catch future issues like this.
BUG=skia:4181
Review URL: https://codereview.chromium.org/1287443002
2015-08-10 08:49:03 -07:00
bsalomon
47dfc36e46
Use a factory function to create GrPipeline and remove unused member
...
Review URL: https://codereview.chromium.org/1273803004
2015-08-10 08:23:12 -07:00
joshualitt
d22f37cda7
Wire up testcreate function for GrDrawAtlasBatch
...
BUG=skia:
Review URL: https://codereview.chromium.org/1285593002
2015-08-10 08:02:58 -07:00
thakis
c5b7df48b2
Remove an unused function.
...
BUG=chromium:505316
Review URL: https://codereview.chromium.org/1282143002
2015-08-10 06:05:17 -07:00
reed
021f631dc6
api helpers inspired by blink use-cases
...
BUG=skia:
TBR=
Review URL: https://codereview.chromium.org/1278323002
2015-08-09 19:41:13 -07:00
reed
41838a0194
remove unneeded _DRAWIMAGERECT flags
...
BUG=skia:
TBR=
Review URL: https://codereview.chromium.org/1281123002
2015-08-07 19:09:09 -07:00
joshualitt
7375d6bab2
fixup precision with configurable atlas
...
BUG=skia:
Review URL: https://codereview.chromium.org/1276383003
2015-08-07 13:36:44 -07:00
scroggo
0df0e43488
Revert of Update libwebp and resume testing scaled webp (patchset #2 id:20001 of https://codereview.chromium.org/1280073002/ )
...
Reason for revert:
Compile failures, e.g.
http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm7-Debug-Android_NoNeon/builds/1427/steps/build%20most/logs/stdio
Original issue's description:
> Update libwebp and resume testing scaled webp
>
> libwebp has a fix for [1]. Update to the commit that contains the fix.
>
> Update libwebp.gypi, corresponding to libwebp's latest makefile.
>
> Turn back on DM testing for scaled webp, now that it should no longer
> use uninitialized memory.
>
> Fix a warning in config.h
>
> [1] https://code.google.com/p/webp/issues/detail?id=254
>
> BUG=skia:4038
>
> Committed: https://skia.googlesource.com/skia/+/0575d3e6c272744a66ab3281f9871366717df339
TBR=djsollen@google.com ,msarett@google.com,scroggo@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:4038
Review URL: https://codereview.chromium.org/1278173004
2015-08-07 12:53:25 -07:00
scroggo
0575d3e6c2
Update libwebp and resume testing scaled webp
...
libwebp has a fix for [1]. Update to the commit that contains the fix.
Update libwebp.gypi, corresponding to libwebp's latest makefile.
Turn back on DM testing for scaled webp, now that it should no longer
use uninitialized memory.
Fix a warning in config.h
[1] https://code.google.com/p/webp/issues/detail?id=254
BUG=skia:4038
Review URL: https://codereview.chromium.org/1280073002
2015-08-07 12:49:16 -07:00
joshualitt
2771b5617c
GrDrawVertices to batches
...
BUG=skia:
Review URL: https://codereview.chromium.org/1276333004
2015-08-07 12:46:26 -07:00
jvanverth
14b8803b7c
Move GrDrawAtlasBatch to separate file
...
Committed: https://skia.googlesource.com/skia/+/b091c44c33edbad3466601b29d60bc2eaa4453fa
Review URL: https://codereview.chromium.org/1274013003
2015-08-07 12:18:54 -07:00
jvanverth
1694a936f6
Revert of Move GrDrawAtlasBatch to separate file (patchset #1 id:1 of https://codereview.chromium.org/1274013003/ )
...
Reason for revert:
Build failures
Original issue's description:
> Move GrDrawAtlasBatch to separate file
>
> Committed: https://skia.googlesource.com/skia/+/b091c44c33edbad3466601b29d60bc2eaa4453fa
TBR=joshualitt@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Review URL: https://codereview.chromium.org/1276173003
2015-08-07 11:53:13 -07:00
jvanverth
b091c44c33
Move GrDrawAtlasBatch to separate file
...
Review URL: https://codereview.chromium.org/1274013003
2015-08-07 11:49:17 -07:00
joshualitt
74417824cd
Make folder for batches
...
BUG=skia:
Review URL: https://codereview.chromium.org/1277233002
2015-08-07 11:42:17 -07:00
jvanverth
31ff762dc8
First pass at drawAtlas batching.
...
Moves drawAtlas setup into its own method in GrDrawContext, and adds
DrawAtlasBatch.
Uses pre-built index buffer for quads.
TBR=bsalomon@google.com
Review URL: https://codereview.chromium.org/1277933003
2015-08-07 10:09:28 -07:00
hcm
767276e4bd
Gold Workflows Documentation
...
BUG=skia:
NOTRY=true
DOCS_PREVIEW= https://skia.org/?cl=1276663003
Review URL: https://codereview.chromium.org/1276663003
2015-08-07 10:09:03 -07:00
joshualitt
922c8b13c5
Break LCD and Bitmap text dependency on hardcoded atlas values
...
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/846b022f6b469cfde285372f26e0d5c593d122ac
Review URL: https://codereview.chromium.org/1271873002
2015-08-07 09:55:23 -07:00
mtklein
469a3fe6ed
Add approxBytesUsed to hashes.
...
BUG=skia:
Review URL: https://codereview.chromium.org/1280653003
2015-08-07 09:33:37 -07:00
mtklein
3848427d88
The compiler can generate smulbb perfectly well nowadays.
...
BUG=skia:4117
Review URL: https://codereview.chromium.org/1273203002
2015-08-07 08:48:12 -07:00
joshualitt
ca1f07eb5f
Add Batch logging
...
BUG=skia:
Review URL: https://codereview.chromium.org/1276913002
2015-08-07 08:11:19 -07:00
mtklein
f1595185e3
This iOS crash makes little sense to me. Add some debugging.
...
We called new float[...]. The pointer returned should be aligned for float writes.
See https://uberchromegw.corp.google.com/i/client.skia/builders/Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Release
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/30e4d75c3aebf49b179c265a91adbb6012970d2b
Review URL: https://codereview.chromium.org/1270403006
2015-08-07 07:22:44 -07:00
mtklein
30e4d75c3a
This iOS crash makes little sense to me. Add some debugging.
...
We called new float[...]. The pointer returned should be aligned for float writes.
See https://uberchromegw.corp.google.com/i/client.skia/builders/Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Release
BUG=skia:
Review URL: https://codereview.chromium.org/1270403006
2015-08-07 06:55:31 -07:00
bsalomon
9bca52629c
Fix StringTest for VS2015
...
TBR=reed@google.com
Review URL: https://codereview.chromium.org/1280853002
2015-08-06 17:56:13 -07:00
bsalomon
ebc1c10fe1
Fix warnings on VS2015 x86_64 build
...
TBR=bungeman@google.com
Review URL: https://codereview.chromium.org/1276133002
2015-08-06 17:33:16 -07:00
msarett
4ab9d5f1bc
Split SkBmpCodec into three separate classes
...
Will regress behavior on gold on test32bfv4.bmp, where we
will no longer fix transparent decodes.
TODO: Start fixing transparent decodes again, or decide
that we don't want to fix them and remove isTransparent
from SkSwizzler. I think this may become more clear when I
start implementing the scanline decoder.
BUG=skia:
Review URL: https://codereview.chromium.org/1258863008
2015-08-06 15:34:42 -07:00
scroggo
74992b5794
Let SkWebpCodec decode to 565
...
BUG=skia:3257
Review URL: https://codereview.chromium.org/1277893002
2015-08-06 13:50:15 -07:00
senorblanco
275412cf3e
Plug a leak in GrTestUtils.
...
TBR=mtklein,bsalomon
Review URL: https://codereview.chromium.org/1274963003
2015-08-06 12:29:03 -07:00
scroggo
9ce386a27d
Fix color swap for webp 565
...
When webp decoding to 565, swap the colors so they look right.
BUG=skia:4174
Review URL: https://codereview.chromium.org/1280693003
2015-08-06 11:44:56 -07:00
reed
743087687a
remove guard for SrcPtr in drawBitmapRect for android
...
BUG=skia:
NOTRY=True
TBR=
Review URL: https://codereview.chromium.org/1277963002
2015-08-06 11:25:15 -07:00
mtklein
e683e810a3
Purge non-NEON ARM code.
...
As I begin to wade in here, it's nice to remove as much code as possible.
BUG=skia:4117
Review URL: https://codereview.chromium.org/1277953002
2015-08-06 11:18:50 -07:00
mtklein
765d6ad975
__ARM_NEON is defined both by ARMv8 and ARMv7 + -mfpu=neon.
...
Can't hurt to simplify a little.
BUG=skia:4117
Review URL: https://codereview.chromium.org/1274513003
2015-08-06 11:17:06 -07:00
egdaniel
51c8d409ad
Move some work from backend onClear to base class clear
...
BUG=skia:
Review URL: https://codereview.chromium.org/1275543005
2015-08-06 10:54:13 -07:00
senorblanco
b4f9d0ec6c
Implement caching of stroked paths in the tessellating path renderer.
...
This requires adding the stroke info to the cache key, and doing the
stroking and dashing before rendering as triangles.
BUG=skia:3755
Committed: https://skia.googlesource.com/skia/+/29e0d3f267a03546f236023347cdb4595ece2fd1
Review URL: https://codereview.chromium.org/1275553002
2015-08-06 10:28:55 -07:00
reed
e47829b6b1
flag to use const& instead of const* for src-rect
...
BUG=skia:
Review URL: https://codereview.chromium.org/1272713005
2015-08-06 10:02:53 -07:00
bsalomon
fb1141ae1d
Don't pass pipeline to GrBatch::generateGeometry()
...
R=joshualitt@google.com
Review URL: https://codereview.chromium.org/1275083002
2015-08-06 08:52:49 -07:00
joshualitt
c8da81df6b
Another small fix for reordering
...
BUG=skia:
Review URL: https://codereview.chromium.org/1274763008
2015-08-06 08:39:22 -07:00
mtklein
b6394746ff
Port SkTextureCompression opts to SkOpts
...
Pretty vanilla translation. I cleaned up who calls whom a little.
Used to be utils -> opts -> utils, now it's just utils -> opts.
I may follow up with a pass over the NEON code for readability
and to clean up dead code.
This turns on NEON A8->R11EAC conversion for ARMv8.
Unit tests which now hit the NEON code still pass.
I can't find any related bench.
BUG=skia:4117
Review URL: https://codereview.chromium.org/1273103002
2015-08-06 08:17:16 -07:00
robertphillips
d0cf9d831f
Remove SK_LEGACY_SKPOINT3_CTORS flag
...
Cannot land before Blink https://codereview.chromium.org/1274673002/ (Remove reliance on legacy Skia SkPoint3 ctors in FELighting.cpp)
Review URL: https://codereview.chromium.org/1269383003
2015-08-06 07:08:31 -07:00
fmalita
e2639089bd
SkSurface copy-on-write can yield stale GPU render targets.
...
Prepare_rt_for_external_access() grabs the render target and then fires
access notifications.
But the notification handlers may trigger copy-on-write, causing the
returned render target to be stale (pointing at the detached snapshot).
We should grab the render target after firing notifications.
R=reed@google.com ,bsalomon@google.com
Review URL: https://codereview.chromium.org/1276713002
2015-08-06 07:04:52 -07:00
senorblanco
ebe06c0560
Minor cleanup: remove GR_TESSELLATING_PATH_RENDERING #ifdef.
...
Also, new -> SkNEW.
Review URL: https://codereview.chromium.org/1280433002
2015-08-06 06:52:10 -07:00
reed
2dcc759cd2
use kFast_SrcRectConstraint to match drawAtlas semantics
...
BUG=skia:
TBR=
Review URL: https://codereview.chromium.org/1272743003
2015-08-06 06:51:52 -07:00