reed
7cdfa8a3f4
decrement lockcount if we failed to get pixels
...
BUG=519581
Review URL: https://codereview.chromium.org/1284953002
2015-08-11 12:23:45 -07:00
jvanverth
4d0d81aec2
Add high resolution WallTimer to SampleApp
...
Gives better than 1 ms results when timing framerate.
Review URL: https://codereview.chromium.org/1288473002
2015-08-11 11:07:07 -07:00
halcanary
8ee06f21a2
SkPDF: allow PDF module to be disabled in DM and SampleApp
...
To disable PDF:
GYP_DEFINES='skia_pdf=0' bin/sync-and-gyp
ninja -C out/Debug dm SampleApp
When disabled, SkDocument::CreatePDF() always returns NULL.
Review URL: https://codereview.chromium.org/1279123007
2015-08-11 10:30:12 -07:00
reed
4cf9e7e147
Revert "move some public headers into private"
...
This reverts commit eedf0fb204
.
BUG=skia:
TBR=
NOTRY=True
Review URL: https://codereview.chromium.org/1270313005
2015-08-11 08:39:18 -07:00
reed
eedf0fb204
move some public headers into private
...
BUG=skia:
Review URL: https://codereview.chromium.org/1289483002
2015-08-11 07:15:00 -07:00
hcm
95d79132cf
Move Perf documentation to the testing section
...
BUG=skia:
NOTRY=true
DOCS_PREVIEW= https://skia.org/?cl=1280533003
Review URL: https://codereview.chromium.org/1280533003
2015-08-11 07:00:01 -07:00
bsalomon
5ac42ea807
Make initBatchTracker private, move towards pipeline on batch
...
Review URL: https://codereview.chromium.org/1282893002
2015-08-10 13:03:51 -07:00
mtklein
4977983510
Sk4px blit mask.
...
Local SKP nanobenching ranges SSE between 1.05x and 0.87x, much more heavily weighted toward <1.0x ratios (speedups).
I profiled the top five regressions (1.05x-1.01x) and they look like noise. Will follow up after broad bot results.
NEON looks similar but less extreme than SSE changes, ranging between 1.02x and 0.95x, again mostly speedups in 0.99x-0.97x range.
The old code trifurcated into black, opaque-but-not-black, and general versions as a function of the constant src color. I did not see a significant difference between general and opaque-but-not-black, and I don't think a black version would be faster using SIMD. So we have here just one version of the code, the general version.
Somewhat fantastically, I see no pixel diffs on GMs or SKPs.
I will be following up with more CLs for the other procs called by SkBlitMask.
BUG=skia:
Review URL: https://codereview.chromium.org/1278253003
2015-08-10 12:58:17 -07:00
bsalomon
c699873ac7
Remove GrPipelineOptimizations member from GrPipeline
...
Review URL: https://codereview.chromium.org/1275003004
2015-08-10 12:01:15 -07:00
joshualitt
b7ee1bf017
trivial CL to add drawBatch to GrDrawContext
...
TBR=bsalomon@google.com
BUG=skia:
Review URL: https://codereview.chromium.org/1282883002
2015-08-10 11:59:03 -07:00
joshualitt
14205b114a
Expand functionality of GrRectBatchFactory with AARects
...
BUG=skia:
Review URL: https://codereview.chromium.org/1279303002
2015-08-10 11:40:56 -07:00
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