borenet@google.com [Tue, 23 Jul 2013 15:45:50 +0000 (15:45 +0000)]
Use SKIA_OUT variable in make.py
R=djsollen@google.com
Review URL: https://codereview.chromium.org/
19743005
git-svn-id: http://skia.googlecode.com/svn/trunk@10272
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Tue, 23 Jul 2013 15:27:41 +0000 (15:27 +0000)]
turn off debugging printfs
fix pathops issues 1417, 1418
be more rigorous about pulling intersections of lines to end points
rewrite cubic/line and quad/line intersections to share style
BUG=
Review URL: https://codereview.chromium.org/
19543005
git-svn-id: http://skia.googlecode.com/svn/trunk@10270
2bbb7eff-a529-9590-31e7-
b0007b416f81
borenet@google.com [Tue, 23 Jul 2013 14:46:58 +0000 (14:46 +0000)]
Update gyp DEPS
R=djsollen@google.com
Review URL: https://codereview.chromium.org/
19996003
git-svn-id: http://skia.googlecode.com/svn/trunk@10266
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Tue, 23 Jul 2013 13:54:58 +0000 (13:54 +0000)]
Roll freetype back to 2.4.9 until Android/NaCL errors are resolved.
R=borenet@google.com, fmalita@google.com
Review URL: https://codereview.chromium.org/
19956003
git-svn-id: http://skia.googlecode.com/svn/trunk@10264
2bbb7eff-a529-9590-31e7-
b0007b416f81
zachr@google.com [Tue, 23 Jul 2013 12:57:52 +0000 (12:57 +0000)]
put max on outputted poi in skpdiff
R=djsollen@google.com
Review URL: https://codereview.chromium.org/
19601006
git-svn-id: http://skia.googlecode.com/svn/trunk@10262
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Tue, 23 Jul 2013 12:22:11 +0000 (12:22 +0000)]
Update freetype DEPS to version 2.5 with PNG encoded color bitmap glyphs
R=bungeman@google.com
Review URL: https://codereview.chromium.org/
19931003
git-svn-id: http://skia.googlecode.com/svn/trunk@10259
2bbb7eff-a529-9590-31e7-
b0007b416f81
borenet@google.com [Tue, 23 Jul 2013 12:20:28 +0000 (12:20 +0000)]
Accidentally skipped buildbot runs on r10257
Review URL: https://codereview.chromium.org/
19598005
git-svn-id: http://skia.googlecode.com/svn/trunk@10258
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Tue, 23 Jul 2013 11:28:45 +0000 (11:28 +0000)]
I don't want these changes as part of the "allow bleeding" CL.
R=bsalomon@google.com
Author: robertphillips@google.com
Review URL: https://chromiumcodereview.appspot.com/
19842002
git-svn-id: http://skia.googlecode.com/svn/trunk@10256
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Tue, 23 Jul 2013 11:13:56 +0000 (11:13 +0000)]
Turn on -Wall -Wextra on Mac, and fix all the warnings that crop up for /usr/bin/g++ and Clang 3.3.
BUG=
R=bungeman@google.com
Author: mtklein@google.com
Review URL: https://chromiumcodereview.appspot.com/
19569012
git-svn-id: http://skia.googlecode.com/svn/trunk@10255
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Tue, 23 Jul 2013 07:01:05 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@10254
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Mon, 22 Jul 2013 20:03:22 +0000 (20:03 +0000)]
This patch implements a crop rect for SkImageFilter. It has been implemented for SkColorFilterImageFilter and SkBlurImageFilter as examples.
In order to preserve the immutability of SkImageFilters, the crop rect is passed as a constructor parameter. If NULL (the default), the bounds of the input image are used, as before.
This also tightens up the boundary handling for SkImageBlurFilter on the GPU backend. Where we were previously using clamping semantics, we now respect decal semantics (so we don't oversaturate the edges). This brings the GPU and raster backends into closer alignment, but will require some new baselines for the GPU tests.
At a minimum, the following tests will need new baselines: imageblur, imagefiltersbase, imagefilterscropped, spritebitmap.
R=reed@google.com
Review URL: https://codereview.chromium.org/
19775006
git-svn-id: http://skia.googlecode.com/svn/trunk@10251
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Mon, 22 Jul 2013 19:28:40 +0000 (19:28 +0000)]
Last friday I changed this file to un-break the build.
I introduced a bug in my tool that is fixed by this CL.
R=caryclark@google.com
Author: sglez@google.com
Review URL: https://chromiumcodereview.appspot.com/
19780004
git-svn-id: http://skia.googlecode.com/svn/trunk@10250
2bbb7eff-a529-9590-31e7-
b0007b416f81
zachr@google.com [Mon, 22 Jul 2013 18:46:45 +0000 (18:46 +0000)]
move skpdiff into tools
R=djsollen@google.com
Review URL: https://codereview.chromium.org/
19608005
git-svn-id: http://skia.googlecode.com/svn/trunk@10249
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Mon, 22 Jul 2013 18:31:24 +0000 (18:31 +0000)]
Revert "Adds SkPDFResourceDict class, refactor existing code to use it."
This reverts commit r10245
Review URL: https://codereview.chromium.org/
19523007
git-svn-id: http://skia.googlecode.com/svn/trunk@10247
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Mon, 22 Jul 2013 18:20:52 +0000 (18:20 +0000)]
Adds SkPDFResourceDict class, refactor existing code to use it.
Committed: http://code.google.com/p/skia/source/detail?r=10202
R=vandebo@chromium.org, edisonn@google.com
Author: richardlin@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
18977002
git-svn-id: http://skia.googlecode.com/svn/trunk@10245
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 22 Jul 2013 17:44:54 +0000 (17:44 +0000)]
include SkPaint.h
git-svn-id: http://skia.googlecode.com/svn/trunk@10244
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 22 Jul 2013 17:33:43 +0000 (17:33 +0000)]
copy/paste error. don't use s.
git-svn-id: http://skia.googlecode.com/svn/trunk@10243
2bbb7eff-a529-9590-31e7-
b0007b416f81
edisonn@google.com [Mon, 22 Jul 2013 17:29:43 +0000 (17:29 +0000)]
pdfviewer: SkTDict, does accept to pass the length of the key also. We will use it, as this is a prerequirment for optimizing memory usage for pdf parser.
Review URL: https://codereview.chromium.org/
19964003
git-svn-id: http://skia.googlecode.com/svn/trunk@10242
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 22 Jul 2013 17:26:19 +0000 (17:26 +0000)]
rename fFilterQuality to fFilterLevel
git-svn-id: http://skia.googlecode.com/svn/trunk@10241
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 22 Jul 2013 17:18:18 +0000 (17:18 +0000)]
stop using bitmap-filter flags outside of paint itself, as a step towards really changing them into an enum
BUG=
Review URL: https://codereview.chromium.org/
19825002
git-svn-id: http://skia.googlecode.com/svn/trunk@10240
2bbb7eff-a529-9590-31e7-
b0007b416f81
zachr@google.com [Mon, 22 Jul 2013 17:05:24 +0000 (17:05 +0000)]
ports for mac, ios, android, linux, windows
R=djsollen@google.com
Review URL: https://codereview.chromium.org/
19787006
git-svn-id: http://skia.googlecode.com/svn/trunk@10239
2bbb7eff-a529-9590-31e7-
b0007b416f81
fmalita@google.com [Mon, 22 Jul 2013 17:01:37 +0000 (17:01 +0000)]
Revert "Add SkImage->draw() call with src and dst rects."
This reverts commit
9c730e27e0bb550dc228ad496cadeed8787b2244.
git-svn-id: http://skia.googlecode.com/svn/trunk@10238
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Mon, 22 Jul 2013 16:16:37 +0000 (16:16 +0000)]
Add SkImage->draw() call with src and dst rects.
R=junov@chromium.org, senorblanco@chromium.org, reed@google.com
Author: arbesfeld@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
19729007
git-svn-id: http://skia.googlecode.com/svn/trunk@10237
2bbb7eff-a529-9590-31e7-
b0007b416f81
edisonn@google.com [Mon, 22 Jul 2013 15:36:39 +0000 (15:36 +0000)]
pdfviewer: All NulCanvas (does not draw operations), TrackDevice (trackes what pixels have been changed)
Review URL: https://codereview.chromium.org/
19793006
git-svn-id: http://skia.googlecode.com/svn/trunk@10236
2bbb7eff-a529-9590-31e7-
b0007b416f81
edisonn@google.com [Mon, 22 Jul 2013 15:29:55 +0000 (15:29 +0000)]
pdfviewer: fix typo (false != NULL)
Review URL: https://codereview.chromium.org/
19543016
git-svn-id: http://skia.googlecode.com/svn/trunk@10235
2bbb7eff-a529-9590-31e7-
b0007b416f81
edisonn@google.com [Mon, 22 Jul 2013 15:24:26 +0000 (15:24 +0000)]
Add --csv parameter to skpdiff to dump all scores in a csv file. We can run it with all skps, and have scores available to look at worst offenders progarmatically.
R=djsollen@google.com, zachr@google.com
Review URL: https://codereview.chromium.org/
19826002
git-svn-id: http://skia.googlecode.com/svn/trunk@10234
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Mon, 22 Jul 2013 15:21:23 +0000 (15:21 +0000)]
Clean up a few warnings on Windows x64.
git-svn-id: http://skia.googlecode.com/svn/trunk@10233
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Mon, 22 Jul 2013 14:39:45 +0000 (14:39 +0000)]
Update obvious deps.
This is a step toward targets declaring their deps in a sane fashion.
This change resolves cycles by forcing core to the root, then everything
in skia_lib pointing toward core as best possible, then everything
outside skia_lib depending on skia_lib for things in skia_lib. This
prevents double definitions where a symbol is provided by both the
skia_lib shared object and and a statically linked component of skia_lib.
R=djsollen@google.com
Review URL: https://codereview.chromium.org/
19823003
git-svn-id: http://skia.googlecode.com/svn/trunk@10231
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Mon, 22 Jul 2013 14:18:08 +0000 (14:18 +0000)]
Update android_make to use arrays instead of space delimited strings
R=borenet@google.com
Review URL: https://codereview.chromium.org/
19796008
git-svn-id: http://skia.googlecode.com/svn/trunk@10230
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Mon, 22 Jul 2013 14:12:56 +0000 (14:12 +0000)]
refactor gyp to isolate freetype usage
R=bungeman@google.com
Review URL: https://codereview.chromium.org/
19835002
git-svn-id: http://skia.googlecode.com/svn/trunk@10229
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Mon, 22 Jul 2013 14:10:08 +0000 (14:10 +0000)]
Make the copy of fontconfig font names before freeing their memory.
R=reed@google.com
Review URL: https://codereview.chromium.org/
19466004
git-svn-id: http://skia.googlecode.com/svn/trunk@10228
2bbb7eff-a529-9590-31e7-
b0007b416f81
zachr@google.com [Mon, 22 Jul 2013 13:29:20 +0000 (13:29 +0000)]
Revert "migrate skpdiff to tools"
This reverts commit
58a7ec70ce6b4548793a2ddc37c63d3d44edbc36.
git-svn-id: http://skia.googlecode.com/svn/trunk@10226
2bbb7eff-a529-9590-31e7-
b0007b416f81
zachr@google.com [Mon, 22 Jul 2013 13:14:04 +0000 (13:14 +0000)]
migrate skpdiff to tools
R=djsollen@google.com
Review URL: https://codereview.chromium.org/
19671002
git-svn-id: http://skia.googlecode.com/svn/trunk@10225
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Sat, 20 Jul 2013 15:03:26 +0000 (15:03 +0000)]
Add SkNWayCanvas comment API overrides.
SkNWayCanvas should also dispatch beginCommentGroup(), addComment() & endCommentGroup.
R=robertphillips@google.com
Author: fmalita@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
19723012
git-svn-id: http://skia.googlecode.com/svn/trunk@10224
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Sat, 20 Jul 2013 07:00:58 +0000 (07:00 +0000)]
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@10223
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Sat, 20 Jul 2013 00:24:35 +0000 (00:24 +0000)]
Revert deps changes in r10220 and r10217.
Need to avoid linking in .a things which are already provided by .so things.
git-svn-id: http://skia.googlecode.com/svn/trunk@10222
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Fri, 19 Jul 2013 23:18:52 +0000 (23:18 +0000)]
Add a 'unique' method to SkRefCnt, document the usage, and add support.
std::shared_ptr has a method called 'unique' which captures the concept that
a reference count of 1 is special, and can be used to optimize copy on write.
It also has some undocumented need for memory barriers in certain situations
and those needs are documented here.
The motivation for looking into this is crbug.com/258499 . The use of the
reference count in this manner is a benign race with both ref() and unref().
By introducing sk_atomic_unprotected_read, it is possible for Chromium to
annotate this read to tell ThreadSanitizer that this is known.
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/
18770007
git-svn-id: http://skia.googlecode.com/svn/trunk@10221
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Fri, 19 Jul 2013 23:10:37 +0000 (23:10 +0000)]
Lie about views_animated dependencies until Android situation is resolved.
git-svn-id: http://skia.googlecode.com/svn/trunk@10220
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Fri, 19 Jul 2013 22:43:15 +0000 (22:43 +0000)]
Fix latent warning as error in Android specific code.
git-svn-id: http://skia.googlecode.com/svn/trunk@10219
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Fri, 19 Jul 2013 22:32:11 +0000 (22:32 +0000)]
Add a detachAsStream to SkDynamicMemoryWStream.
R=reed@google.com
Committed: https://code.google.com/p/skia/source/detail?r=10171
Committed: https://code.google.com/p/skia/source/detail?r=10178
Review URL: https://codereview.chromium.org/
19677002
git-svn-id: http://skia.googlecode.com/svn/trunk@10218
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Fri, 19 Jul 2013 22:31:23 +0000 (22:31 +0000)]
Update obvious deps.
This is a step toward targets declaring their deps in a sane fashion.
This change resolves cycles by forcing core to the root,
then opts, ports, and utils depending on core, then everything else.
We will need some other change to resolve the fact that
core, opts, ports, and utils depend on each other and other targets which
depend on them. Outside of these targets, things look ok.
R=djsollen@google.com
Review URL: https://codereview.chromium.org/
19823003
git-svn-id: http://skia.googlecode.com/svn/trunk@10217
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Fri, 19 Jul 2013 22:30:11 +0000 (22:30 +0000)]
Fix some noisy warnings on Windows x64.
On Windows x64, sizeof(long) < sizeof(size_t).
Review URL: https://codereview.chromium.org/
19786010
git-svn-id: http://skia.googlecode.com/svn/trunk@10216
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 19 Jul 2013 21:45:10 +0000 (21:45 +0000)]
Revert "Slipping in a small bug fix for my previous patch"
This reverts commit
1908ef0441e37c98b00ffe6c0a89d247393aeead.
git-svn-id: http://skia.googlecode.com/svn/trunk@10215
2bbb7eff-a529-9590-31e7-
b0007b416f81
humper@google.com [Fri, 19 Jul 2013 21:26:15 +0000 (21:26 +0000)]
bad line in gyp fie snuck into last commit, continuing the ARM breakage
git-svn-id: http://skia.googlecode.com/svn/trunk@10214
2bbb7eff-a529-9590-31e7-
b0007b416f81
sglez@google.com [Fri, 19 Jul 2013 21:19:11 +0000 (21:19 +0000)]
Slipping in a small bug fix for my previous patch
Review URL: https://codereview.chromium.org/
19858002
git-svn-id: http://skia.googlecode.com/svn/trunk@10213
2bbb7eff-a529-9590-31e7-
b0007b416f81
humper@google.com [Fri, 19 Jul 2013 21:12:08 +0000 (21:12 +0000)]
use SK_ScalarPI, and fix ARM build
git-svn-id: http://skia.googlecode.com/svn/trunk@10212
2bbb7eff-a529-9590-31e7-
b0007b416f81
humper@google.com [Fri, 19 Jul 2013 20:52:12 +0000 (20:52 +0000)]
struct and class forward declarations incompatible on some compilers
git-svn-id: http://skia.googlecode.com/svn/trunk@10211
2bbb7eff-a529-9590-31e7-
b0007b416f81
humper@google.com [Fri, 19 Jul 2013 20:46:20 +0000 (20:46 +0000)]
scale --> convolution typo
git-svn-id: http://skia.googlecode.com/svn/trunk@10210
2bbb7eff-a529-9590-31e7-
b0007b416f81
humper@google.com [Fri, 19 Jul 2013 20:33:36 +0000 (20:33 +0000)]
missing M_PI include needed on Windows
git-svn-id: http://skia.googlecode.com/svn/trunk@10209
2bbb7eff-a529-9590-31e7-
b0007b416f81
humper@google.com [Fri, 19 Jul 2013 20:30:44 +0000 (20:30 +0000)]
remove unused function
git-svn-id: http://skia.googlecode.com/svn/trunk@10208
2bbb7eff-a529-9590-31e7-
b0007b416f81
sglez@google.com [Fri, 19 Jul 2013 20:21:05 +0000 (20:21 +0000)]
fix mac
BUG=
Review URL: https://codereview.chromium.org/
19845003
git-svn-id: http://skia.googlecode.com/svn/trunk@10207
2bbb7eff-a529-9590-31e7-
b0007b416f81
humper@google.com [Fri, 19 Jul 2013 20:20:04 +0000 (20:20 +0000)]
The image resampling code has been transplanted from Chrome; it's incredibly fast.
We've tested this CL plumbed into Chrome and done benchmarking with excellent results.
This CL can land independent of any Chrome changes; it's completely internal to skia.
BUG=
R=reed@google.com
Review URL: https://codereview.chromium.org/
19335002
git-svn-id: http://skia.googlecode.com/svn/trunk@10206
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Fri, 19 Jul 2013 20:13:44 +0000 (20:13 +0000)]
Revert "Adds SkPDFResourceDict class to manage resource dicts. Refactors existing code to use this class."
This reverts commit r10202
Review URL: https://codereview.chromium.org/
19790007
git-svn-id: http://skia.googlecode.com/svn/trunk@10205
2bbb7eff-a529-9590-31e7-
b0007b416f81
sglez@google.com [Fri, 19 Jul 2013 20:03:57 +0000 (20:03 +0000)]
please fix the build, please
BUG=
Review URL: https://codereview.chromium.org/
19693012
git-svn-id: http://skia.googlecode.com/svn/trunk@10204
2bbb7eff-a529-9590-31e7-
b0007b416f81
sglez@google.com [Fri, 19 Jul 2013 19:50:00 +0000 (19:50 +0000)]
Add include to fix build
BUG=
Review URL: https://codereview.chromium.org/
19516006
git-svn-id: http://skia.googlecode.com/svn/trunk@10203
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Fri, 19 Jul 2013 18:58:34 +0000 (18:58 +0000)]
Adds SkPDFResourceDict class to manage resource dicts. Refactors existing code to use this class.
BUG=
R=vandebo@chromium.org, edisonn@google.com
Author: richardlin@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
18977002
git-svn-id: http://skia.googlecode.com/svn/trunk@10202
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Fri, 19 Jul 2013 18:54:04 +0000 (18:54 +0000)]
Fix build problem with reverted issue
16948011
BUG=
R=caryclark@google.com
Author: sglez@google.com
Review URL: https://chromiumcodereview.appspot.com/
19541009
git-svn-id: http://skia.googlecode.com/svn/trunk@10201
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Fri, 19 Jul 2013 18:51:10 +0000 (18:51 +0000)]
Remove unneeded mention of SkThread_pthread.cpp in ports.gyp.
This was overlooked in r10105.
git-svn-id: http://skia.googlecode.com/svn/trunk@10200
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Fri, 19 Jul 2013 18:20:26 +0000 (18:20 +0000)]
Bench performance trigger rebaselines
(SkipBuildbotRuns)
git-svn-id: http://skia.googlecode.com/svn/trunk@10198
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Fri, 19 Jul 2013 18:13:02 +0000 (18:13 +0000)]
Fix texture allocation in SWMaskHelper
https://codereview.chromium.org/
19789006/
git-svn-id: http://skia.googlecode.com/svn/trunk@10197
2bbb7eff-a529-9590-31e7-
b0007b416f81
edisonn@google.com [Fri, 19 Jul 2013 17:47:39 +0000 (17:47 +0000)]
revert unreviewed 10194, will send to review
Review URL: https://codereview.chromium.org/
19693010
git-svn-id: http://skia.googlecode.com/svn/trunk@10196
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Fri, 19 Jul 2013 17:43:27 +0000 (17:43 +0000)]
SkAlpha constant defs
R=edisonn@google.com, vandebo@chromium.org, reed@google.com
Author: richardlin@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
19592014
git-svn-id: http://skia.googlecode.com/svn/trunk@10195
2bbb7eff-a529-9590-31e7-
b0007b416f81
edisonn@google.com [Fri, 19 Jul 2013 17:19:47 +0000 (17:19 +0000)]
skpdiff: add ability to write the diff scores in a csv file (one line per pair of diff images, with the result of each diff engine)
Review URL: https://codereview.chromium.org/
19786004
git-svn-id: http://skia.googlecode.com/svn/trunk@10194
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Fri, 19 Jul 2013 16:51:46 +0000 (16:51 +0000)]
Alter resource cache and GrContext to (optionally) never reuse a scratch texture
https://codereview.chromium.org/
19482004/
git-svn-id: http://skia.googlecode.com/svn/trunk@10193
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 19 Jul 2013 15:45:22 +0000 (15:45 +0000)]
add reformat-json.py script
R=borenet@google.com
Review URL: https://codereview.chromium.org/
19289011
git-svn-id: http://skia.googlecode.com/svn/trunk@10192
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Fri, 19 Jul 2013 13:55:41 +0000 (13:55 +0000)]
Add a detachAsStream to SkDynamicMemoryWStream.
R=reed@google.com
Committed: https://code.google.com/p/skia/source/detail?r=10171
Review URL: https://codereview.chromium.org/
19677002
git-svn-id: http://skia.googlecode.com/svn/trunk@10178
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Fri, 19 Jul 2013 07:00:57 +0000 (07:00 +0000)]
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@10175
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Fri, 19 Jul 2013 00:50:48 +0000 (00:50 +0000)]
Reverting r10173 due to compile problems
git-svn-id: http://skia.googlecode.com/svn/trunk@10174
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Fri, 19 Jul 2013 00:32:39 +0000 (00:32 +0000)]
Measurement tool for Bounding-Box-Hierarchies.
BUG=
R=caryclark@google.com, reed@google.com
Author: sglez@google.com
Review URL: https://chromiumcodereview.appspot.com/
16948011
git-svn-id: http://skia.googlecode.com/svn/trunk@10173
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 18 Jul 2013 23:59:16 +0000 (23:59 +0000)]
Revert r10171 due to test failure in StreamTest
git-svn-id: http://skia.googlecode.com/svn/trunk@10172
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 18 Jul 2013 22:27:21 +0000 (22:27 +0000)]
Add a detachAsStream to SkDynamicMemoryWStream.
R=reed@google.com
Review URL: https://codereview.chromium.org/
19677002
git-svn-id: http://skia.googlecode.com/svn/trunk@10171
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Thu, 18 Jul 2013 22:26:39 +0000 (22:26 +0000)]
Plumb in flag for reusing scratch textures
R=bsalomon@google.com, brian@thesalomons.net
Author: robertphillips@google.com
Review URL: https://chromiumcodereview.appspot.com/
19636002
git-svn-id: http://skia.googlecode.com/svn/trunk@10170
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 18 Jul 2013 21:14:04 +0000 (21:14 +0000)]
add copyright notices
git-svn-id: http://skia.googlecode.com/svn/trunk@10169
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 18 Jul 2013 21:05:50 +0000 (21:05 +0000)]
Update static SkMutex to remove static initializer on Linux.
R=reed@google.com
Review URL: https://codereview.chromium.org/
19540018
git-svn-id: http://skia.googlecode.com/svn/trunk@10168
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 18 Jul 2013 20:48:06 +0000 (20:48 +0000)]
use { 0, 0, 0, 0 } to fix warning
git-svn-id: http://skia.googlecode.com/svn/trunk@10167
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 18 Jul 2013 20:20:10 +0000 (20:20 +0000)]
init prevLevel to avoid warning
git-svn-id: http://skia.googlecode.com/svn/trunk@10166
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Thu, 18 Jul 2013 20:14:45 +0000 (20:14 +0000)]
Remove assert which is failing.
Unreviewed.
git-svn-id: http://skia.googlecode.com/svn/trunk@10165
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Thu, 18 Jul 2013 20:08:26 +0000 (20:08 +0000)]
Test decoding the bounds in skimage.
Test that the bounds match the bounds from doing a pixel decode.
R=djsollen@google.com
Review URL: https://codereview.chromium.org/
19587003
git-svn-id: http://skia.googlecode.com/svn/trunk@10164
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Thu, 18 Jul 2013 20:06:28 +0000 (20:06 +0000)]
Add test to ensure buildTileIndex stores SkStream.
PNG fails this test without https://codereview.chromium.org/
19185006/
R=djsollen@google.com
Review URL: https://codereview.chromium.org/
19555004
git-svn-id: http://skia.googlecode.com/svn/trunk@10163
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Thu, 18 Jul 2013 20:03:15 +0000 (20:03 +0000)]
Support decoding Gray to A8 in PNG.
Move the code which sets the filler and forces gray to rgb after
we get the config, so we can skip them if the caller wants A8.
Call set_gray_to_rgb consistently for both normal decode and subset
decode.
In PNG, prevent subset decodes from alternating configs, which
would otherwise fail.
Use SK_RESTRICT for pointers in getBitmapConfig.
Ref the SkStream input to buildTileIndex, so it will not be destroyed
before calling decodeSubset.
Convert some fields to match Skia style.
Builds on https://codereview.chromium.org/
18083026/, which has not yet been checked in.
R=reed@google.com
Review URL: https://codereview.chromium.org/
19185006
git-svn-id: http://skia.googlecode.com/svn/trunk@10162
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 18 Jul 2013 19:53:31 +0000 (19:53 +0000)]
pull mipmap class into its own (private) header
BUG=
R=scroggo@google.com
Review URL: https://codereview.chromium.org/
19462007
git-svn-id: http://skia.googlecode.com/svn/trunk@10161
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Thu, 18 Jul 2013 19:42:35 +0000 (19:42 +0000)]
Initialize config.
Unreviewed.
git-svn-id: http://skia.googlecode.com/svn/trunk@10159
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Thu, 18 Jul 2013 19:37:46 +0000 (19:37 +0000)]
A8 bitmaps from JPEG are not opaque.
So do not set them to be.
Depends on https://codereview.chromium.org/
19185006/
R=reed@google.com
Review URL: https://codereview.chromium.org/
19613002
git-svn-id: http://skia.googlecode.com/svn/trunk@10158
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Thu, 18 Jul 2013 19:34:49 +0000 (19:34 +0000)]
Allow decoding JPEG into A8.
If the original image is grayscale, allow decoding into A8.
Change the size of PrefConfigTable to allow for 8bit gray, a new source config.
Add a new sampler to SkScaledBitmapSampler to 'convert' to A8.
FIXME: Should there be a dithered option for gray scale?
R=reed@google.com
Review URL: https://codereview.chromium.org/
18083026
git-svn-id: http://skia.googlecode.com/svn/trunk@10157
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Thu, 18 Jul 2013 19:21:44 +0000 (19:21 +0000)]
Hold on to image-filtered texture in SkGpuDevice
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://chromiumcodereview.appspot.com/
19729006
git-svn-id: http://skia.googlecode.com/svn/trunk@10156
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Thu, 18 Jul 2013 19:11:30 +0000 (19:11 +0000)]
Add bench to test float to fixed conversion
R=reed@google.com
Review URL: https://codereview.chromium.org/
19773006
git-svn-id: http://skia.googlecode.com/svn/trunk@10155
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 18 Jul 2013 19:04:45 +0000 (19:04 +0000)]
Remove unimplemented Mutex() method from SkFontMgr.h.
R=reed@google.com
Review URL: https://codereview.chromium.org/
19543008
git-svn-id: http://skia.googlecode.com/svn/trunk@10154
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 18 Jul 2013 18:45:17 +0000 (18:45 +0000)]
svndiff.py: add support for git checkouts
(and yes, we should probably rename the tool soon)
R=senorblanco@chromium.org
Review URL: https://codereview.chromium.org/
19512002
git-svn-id: http://skia.googlecode.com/svn/trunk@10153
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 18 Jul 2013 18:33:39 +0000 (18:33 +0000)]
Fix for Ubuntu compiler complaint
git-svn-id: http://skia.googlecode.com/svn/trunk@10151
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 18 Jul 2013 18:20:20 +0000 (18:20 +0000)]
Yet another build fix for r10148
git-svn-id: http://skia.googlecode.com/svn/trunk@10150
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 18 Jul 2013 18:07:39 +0000 (18:07 +0000)]
Fix build breakages due to r10148
git-svn-id: http://skia.googlecode.com/svn/trunk@10149
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 18 Jul 2013 17:39:14 +0000 (17:39 +0000)]
Improve null gpu's memory handling
https://codereview.chromium.org/
19678010/
git-svn-id: http://skia.googlecode.com/svn/trunk@10148
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Thu, 18 Jul 2013 17:22:30 +0000 (17:22 +0000)]
Fix Android bench bots for Xoom due to OOM errors.
BUG= 1422
BUG= 1430
R=borenet@google.com
Review URL: https://codereview.chromium.org/
19672007
git-svn-id: http://skia.googlecode.com/svn/trunk@10147
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 18 Jul 2013 17:12:57 +0000 (17:12 +0000)]
The rest of: Add purgeAsNeeded calls before addResource calls
https://codereview.chromium.org/
19591003/
git-svn-id: http://skia.googlecode.com/svn/trunk@10146
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 18 Jul 2013 17:11:45 +0000 (17:11 +0000)]
Add purgeAsNeeded calls before addResource calls
https://codereview.chromium.org/
19591003/
git-svn-id: http://skia.googlecode.com/svn/trunk@10145
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 18 Jul 2013 13:47:01 +0000 (13:47 +0000)]
add FilterLevel API to SkPaint, replacing various Flag bits
BUG=
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/
19769005
git-svn-id: http://skia.googlecode.com/svn/trunk@10138
2bbb7eff-a529-9590-31e7-
b0007b416f81
edisonn@google.com [Thu, 18 Jul 2013 13:03:03 +0000 (13:03 +0000)]
pdfviewer: fix warning in release
Review URL: https://codereview.chromium.org/
19773002
git-svn-id: http://skia.googlecode.com/svn/trunk@10137
2bbb7eff-a529-9590-31e7-
b0007b416f81
rmistry@google.com [Thu, 18 Jul 2013 11:13:51 +0000 (11:13 +0000)]
Whitespace change to trigger builds.
git-svn-id: http://skia.googlecode.com/svn/trunk@10135
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Thu, 18 Jul 2013 07:00:56 +0000 (07:00 +0000)]
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@10134
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Wed, 17 Jul 2013 21:55:08 +0000 (21:55 +0000)]
[PDF] Use SkTypeface::countGlyphs instead of getAdvancedTypefaceMetrics
resubmit r10063
BUG=1088
R=bungeman@google.com
Author: vandebo@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
19668002
git-svn-id: http://skia.googlecode.com/svn/trunk@10133
2bbb7eff-a529-9590-31e7-
b0007b416f81