reed@google.com [Fri, 6 Dec 2013 18:51:08 +0000 (18:51 +0000)]
Revert "PixelRef now returns (nearly) everything that is currently in SkBitmap. The goal is to refactor bitmap later to remove redundancy, and more interestingly, remove the chance for a disconnect between the actual (pixelref) rowbytes and config, and the one claimed by the bitmap."
This reverts commit
154e08b2f5904ef533da694e3510befcb9a3f3e2.
revert due to warnings
Review URL: https://codereview.chromium.org/
108513003
git-svn-id: http://skia.googlecode.com/svn/trunk@12538
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 6 Dec 2013 18:41:33 +0000 (18:41 +0000)]
PixelRef now returns (nearly) everything that is currently in SkBitmap. The goal is to refactor bitmap later to remove redundancy, and more interestingly, remove the chance for a disconnect between the actual (pixelref) rowbytes and config, and the one claimed by the bitmap.
R=mtklein@google.com, scroggo@google.com
Review URL: https://codereview.chromium.org/
68973005
git-svn-id: http://skia.googlecode.com/svn/trunk@12537
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Fri, 6 Dec 2013 18:05:03 +0000 (18:05 +0000)]
Fix #define for distance field fonts
R=robertphillips@google.com
Author: jvanverth@google.com
Review URL: https://codereview.chromium.org/
108413002
git-svn-id: http://skia.googlecode.com/svn/trunk@12536
2bbb7eff-a529-9590-31e7-
b0007b416f81
jvanverth@google.com [Fri, 6 Dec 2013 17:59:33 +0000 (17:59 +0000)]
Nobody knows the rebaselines I've seen...
git-svn-id: http://skia.googlecode.com/svn/trunk@12535
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Fri, 6 Dec 2013 17:44:15 +0000 (17:44 +0000)]
Reverting 12528 & 12533 (Implement srcRect and dstRect functionality in SkBitmapSource) due to image differences on N4
https://codereview.chromium.org/
108623002/
git-svn-id: http://skia.googlecode.com/svn/trunk@12534
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Fri, 6 Dec 2013 17:08:50 +0000 (17:08 +0000)]
Fix Windows compiler warnings/errors
https://codereview.chromium.org/
108563002/
git-svn-id: http://skia.googlecode.com/svn/trunk@12533
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Fri, 6 Dec 2013 17:08:19 +0000 (17:08 +0000)]
Whitespace change to test CQ.
(SkipBuildbotRuns)
BUG=
TBR=borenet@google.com
NOTREECHECKS=true
NOTRY=true
Author: rmistry@google.com
Review URL: https://codereview.chromium.org/
108553002
git-svn-id: http://skia.googlecode.com/svn/trunk@12532
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Fri, 6 Dec 2013 17:03:39 +0000 (17:03 +0000)]
Generalize valgrind suppressions & a 2 more
https://codereview.chromium.org/
107443004/
git-svn-id: http://skia.googlecode.com/svn/trunk@12531
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 6 Dec 2013 17:03:25 +0000 (17:03 +0000)]
commit remaining pdf-poppler GM results as unreviewed-by-humans
BUG=skia:1884
TBR=vandebo
Review URL: https://codereview.chromium.org/
103033004
git-svn-id: http://skia.googlecode.com/svn/trunk@12530
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 6 Dec 2013 16:35:26 +0000 (16:35 +0000)]
pdf-poppler GM results: updated more still-unreviewed expectations
(The prior revision of these expectations were unreviewed-by-humans anyway)
BUG=skia:1578,skia:1759
TBR=vandebo
Review URL: https://codereview.chromium.org/
93883003
git-svn-id: http://skia.googlecode.com/svn/trunk@12529
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Fri, 6 Dec 2013 15:59:03 +0000 (15:59 +0000)]
Implement srcRect and dstRect functionality in SkBitmapSource. This is required for the "preserveAspectRatio" options of SVG's feImage. Covered by new GM "bitmapsource".
This also includes some changes to the xfermodeimagefilter and tileimagefilter GMs to properly handle the CTM. This worked before only because SkBitmapSource was ignoring the CTM. Now that it respects it, we need to give the correct transform. This also means the GMs now work while zoomed.
R=reed@google.com
Author: senorblanco@chromium.org
Review URL: https://codereview.chromium.org/
106933002
git-svn-id: http://skia.googlecode.com/svn/trunk@12528
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Fri, 6 Dec 2013 15:24:52 +0000 (15:24 +0000)]
A simple draw() function in Javascript.
R=robertphillips@google.com
Author: jcgregorio@google.com
Review URL: https://codereview.chromium.org/
102803003
git-svn-id: http://skia.googlecode.com/svn/trunk@12527
2bbb7eff-a529-9590-31e7-
b0007b416f81
jvanverth@google.com [Fri, 6 Dec 2013 15:23:15 +0000 (15:23 +0000)]
Really truly final (?) rebaseline for https://codereview.chromium.org/
102683002/
git-svn-id: http://skia.googlecode.com/svn/trunk@12526
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Fri, 6 Dec 2013 11:32:27 +0000 (11:32 +0000)]
ARM Skia NEON patches - 32 - Xfermode: 1-pixel NEON modeprocs
In some cases, it's easy to provide a NEON version of the 1-pixel modeprocs.
Combined with https://codereview.chromium.org/
23724013/ (merged) it allows
up to 35% speed improvement on Xfermodes when aa is non-NULL.
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
BUG=
R=djsollen@google.com, reed@google.com, mtklein@google.com, luisjoseromeroesclusa@hotmail.com
Author: kevin.petit.arm@gmail.com
Review URL: https://codereview.chromium.org/
104883004
git-svn-id: http://skia.googlecode.com/svn/trunk@12525
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Fri, 6 Dec 2013 07:02:04 +0000 (07:02 +0000)]
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@12524
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Thu, 5 Dec 2013 23:06:07 +0000 (23:06 +0000)]
Revert "Implement srcRect and dstRect functionality in SkBitmapSource. This is required for the "preserveAspectRatio" options of SVG's feImage. Covered by new GM "bitmapsource"." until I can sort out the xfermodeimagefilter and tileimagefilter failures.
This reverts commit
b26725c8c9755415284c34399e76be098868e01a, aka r12522.
BUG=
TBR=reed@google.com
Review URL: https://codereview.chromium.org/
107093005
git-svn-id: http://skia.googlecode.com/svn/trunk@12523
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Thu, 5 Dec 2013 22:41:53 +0000 (22:41 +0000)]
Implement srcRect and dstRect functionality in SkBitmapSource. This is required for the "preserveAspectRatio" options of SVG's feImage. Covered by new GM "bitmapsource".
Note: I initially implemented this as a fully-generic SkResizeImageFilter, but then I realized that the dstRect should always be transformed by the filter matrix, but that the srcRect should not (since it's specified relative to the dimensions of the original bitmap). Since this would be confusing for someone attempting to use this as a generic resizing filter, I decided to build the functionality into SkBitmapSource instead.
BUG=
R=reed@google.com
Review URL: https://codereview.chromium.org/
106933002
git-svn-id: http://skia.googlecode.com/svn/trunk@12522
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 5 Dec 2013 22:07:08 +0000 (22:07 +0000)]
Update not-reviewed-by-human poppler baselines
BUG=skia:1657,skia:1578
TBR=vandebo
These were already annotated as belonging to
https://code.google.com/p/skia/issues/detail?id=1578 ('commit GM actuals
as expectations for all tests, marking them as unreviewed'),
which means they had not been visually reviewed in the first place.
So we have no reason to believe their current results are incorrect
(for all we know, they were wrong before)
For these and all other expectations with the bug1578 annotation, we should
figure out a way to validate them. But that's for another day...
Review URL: https://codereview.chromium.org/
107293002
git-svn-id: http://skia.googlecode.com/svn/trunk@12521
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Thu, 5 Dec 2013 21:14:02 +0000 (21:14 +0000)]
Fix refcounting bug for Type1 font usage with more than 255 characters.
R=bungeman@google.com
Author: vandebo@chromium.org
Review URL: https://codereview.chromium.org/
103423003
git-svn-id: http://skia.googlecode.com/svn/trunk@12520
2bbb7eff-a529-9590-31e7-
b0007b416f81
halcanary@google.com [Thu, 5 Dec 2013 20:40:04 +0000 (20:40 +0000)]
Fix change src/ports/SkImageDecoder_empty.cpp missed in
103033002
BUG=
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/
107123002
git-svn-id: http://skia.googlecode.com/svn/trunk@12519
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Thu, 5 Dec 2013 19:20:49 +0000 (19:20 +0000)]
SkOnce: let f be any functor, update comments
BUG=
R=bungeman@google.com
Author: mtklein@google.com
Review URL: https://codereview.chromium.org/
104433005
git-svn-id: http://skia.googlecode.com/svn/trunk@12518
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 5 Dec 2013 18:45:18 +0000 (18:45 +0000)]
expectations/gm/ignored-tests.txt: add links to tracking bugs
(SkipBuildbotRuns)
Review URL: https://codereview.chromium.org/
106643003
git-svn-id: http://skia.googlecode.com/svn/trunk@12516
2bbb7eff-a529-9590-31e7-
b0007b416f81
halcanary@google.com [Thu, 5 Dec 2013 18:31:42 +0000 (18:31 +0000)]
Big Cleanup: SkBitmapFactory, SkLazyPixelRef, SkImageCache
Removed SkBitmapFactory since no clients were using it. New cache
selection mechanism can simply pass a SkDiscardableMemory::Factory
into the SkDiscardablePixelRef if non-default SkDiscardableMemory
should be used. Removed BitmapFactoryTest.
SkDiscardableMemory::Factory interface. Android will need this
functionality in the future inside their BitmapFactory.
Removed SkLazyPixelRef, since it's functionality is now subsumed into
SkDiscardablePixelRef. Removed LazyPixelRef test.
Modified SkDiscardablePixelRef to optionally allow it to use a
SkDiscardableMemory::Factory. This tiny change makes it a replacement
for SkLazyPixelRef. This functioanlity is also necessary for moving
Android over to SkDiscardablePixelRef from SkImageRef in a later CL.
Added a test for this.
SkDecodingImageGenerator::Install can optionally pass a factory in to
SkDiscardablePixelRef.
Removed SkImageCache, SkLruImageCache, and SkPurgeableImageCache.
This functionality can be handled much more cleanly by
SkDiscardableMemory.
New SkDiscardableMemoryPool class to replace SkLruImageCache. In a
later CL, we will replace SkImageRef_GlobalPool (used by android) as
well. This is a concrete implementation of
SkDiscardableMemory::Factory. Added a test for this.
modified gm/factory.cpp to remove dependnce on SkBitmapFactory +
SkLruImageCache. Now uses SkDecodingImageGenerator +
SkDiscardablePixelRef + SkDiscardableMemoryPool.
SkImageDecoder::Target replaces SkBitmapFactory::Target. The
DecodeMemoryToTarget function may disappear in the future.
Moved SkLazyCachingPixelRef::DecodeProc replaces
SkBitmapFactory::DecodeProc. This is a short term change, since
another CL changes SkLazyCachingPixelRef to use SkImageGenerator
instead of DecodeProc.
Modified DrawBitmapRectTest to use SkDiscardablePixelRef instead of
SkLazyPixelRef.
tools/LazyDecodeBitmap.cpp now uses SkDecodingImageGenerator +
SkDiscardablePixelRef instead of a SkBitmapFactory.
bench_pictures uses the Global SkDiscardableMemoryPool instead of a
global gLruImageCache.
R=reed@google.com, scroggo@google.com
Review URL: https://codereview.chromium.org/
103033002
git-svn-id: http://skia.googlecode.com/svn/trunk@12515
2bbb7eff-a529-9590-31e7-
b0007b416f81
jvanverth@google.com [Thu, 5 Dec 2013 18:12:47 +0000 (18:12 +0000)]
One last rebaseline (I hope)
git-svn-id: http://skia.googlecode.com/svn/trunk@12514
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 5 Dec 2013 18:03:24 +0000 (18:03 +0000)]
rebaseline_server: add "deep linking" to allow bookmarking of particular views
(SkipBuildbotRuns)
R=jcgregorio@google.com
Review URL: https://codereview.chromium.org/
104623003
git-svn-id: http://skia.googlecode.com/svn/trunk@12513
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Thu, 5 Dec 2013 16:43:08 +0000 (16:43 +0000)]
Make sure four_byte_interp benches the entire FourByteInterp call.
Relative bench performance still says switch to Fast.
Desktop:
four_byte_interp_slow_256 11.68
four_byte_interp_slow_255 12.11
four_byte_interp_fast_256 7.17
four_byte_interp_fast_255 8.17
N5:
four_byte_interp_slow_256 28.49
four_byte_interp_slow_255 25.08
four_byte_interp_fast_256 19.40
four_byte_interp_fast_255 21.69
BUG=
R=reed@google.com
Author: mtklein@google.com
Review URL: https://codereview.chromium.org/
102053006
git-svn-id: http://skia.googlecode.com/svn/trunk@12512
2bbb7eff-a529-9590-31e7-
b0007b416f81
jvanverth@google.com [Thu, 5 Dec 2013 16:26:02 +0000 (16:26 +0000)]
Finish rebaselines for https://codereview.chromium.org/
102683002/
Review URL: https://codereview.chromium.org/
106773002
git-svn-id: http://skia.googlecode.com/svn/trunk@12511
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 5 Dec 2013 16:23:37 +0000 (16:23 +0000)]
Update valgrind suppressions for new driver
https://codereview.chromium.org/
102473003/
git-svn-id: http://skia.googlecode.com/svn/trunk@12510
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 5 Dec 2013 16:05:16 +0000 (16:05 +0000)]
rebaseline_server: start HTTP server immediately, auto-reload once results are available
BUG=skia:1877
(SkipBuildbotRuns)
R=vandebo@chromium.org
Review URL: https://codereview.chromium.org/
106453002
git-svn-id: http://skia.googlecode.com/svn/trunk@12509
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 5 Dec 2013 15:55:00 +0000 (15:55 +0000)]
Add Windows compilation support to V8 example
https://codereview.chromium.org/
106163004/
git-svn-id: http://skia.googlecode.com/svn/trunk@12508
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Thu, 5 Dec 2013 15:43:19 +0000 (15:43 +0000)]
Update documentation around drawBitmap and shaders
R=reed@google.com
Author: djsollen@google.com
Review URL: https://codereview.chromium.org/
105823004
git-svn-id: http://skia.googlecode.com/svn/trunk@12507
2bbb7eff-a529-9590-31e7-
b0007b416f81
halcanary@google.com [Thu, 5 Dec 2013 14:18:07 +0000 (14:18 +0000)]
Fix MacOS build error from
36d08c5c90c7
BUG=
Review URL: https://codereview.chromium.org/
105453005
git-svn-id: http://skia.googlecode.com/svn/trunk@12506
2bbb7eff-a529-9590-31e7-
b0007b416f81
halcanary@google.com [Thu, 5 Dec 2013 14:00:03 +0000 (14:00 +0000)]
SkCachingPixelRef to use SkImageGenerator
- Remove SkLazyCachingPixelRef class.
- Refactor unit tests.
BUG=
R=reed@google.com, scroggo@google.com
Review URL: https://codereview.chromium.org/
84083002
git-svn-id: http://skia.googlecode.com/svn/trunk@12505
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Thu, 5 Dec 2013 13:57:54 +0000 (13:57 +0000)]
update android build to use SDK API level 19.
BUG=1817
Review URL: https://codereview.chromium.org/
88223002
git-svn-id: http://skia.googlecode.com/svn/trunk@12504
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Thu, 5 Dec 2013 13:45:19 +0000 (13:45 +0000)]
V8 and Skia
R=robertphillips@google.com
Author: jcgregorio@google.com
Review URL: https://codereview.chromium.org/
93933005
git-svn-id: http://skia.googlecode.com/svn/trunk@12503
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 5 Dec 2013 13:39:47 +0000 (13:39 +0000)]
Image rebaselines
https://codereview.chromium.org/
101313004/
git-svn-id: http://skia.googlecode.com/svn/trunk@12502
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Thu, 5 Dec 2013 12:08:12 +0000 (12:08 +0000)]
Fix compilation with SK_ENABLE_INST_COUNT=1
Add INHERITED declarations to class declarations that prevent
compilation with the flag.
Remove SK_DEFINE_INST_COUNT from all class implementations. Instead,
use function-local static variables in the reference count helper
classes to create the global instances to store the needed info. The
accessor functions are defined inline in the helper classes, so
definitions are not needed. The initialization point of the variables
should be as well defined as previously.
Remove SK_DECLARE_INST_COUNT_TEMPLATE and use SK_DECLARE_INST_COUNT
instead. This avoids possible future compilation errors further.
For SK_ENABLE_INST_COUNT=0 compilation, add an empty static member
function to all classes that use SK_DECLARE_INST_COUNT and
SK_DECLARE_INST_COUNT_ROOT macros. The function ensures that classes
contain public INHERITED typedef. This member function seems to be
compiled away. This shouĺd ensure that part of the compilation errors
are caught earlier.
Also adds DSK_DECLARE_INST_COUNT to few SkPDFDict subclasses.
R=robertphillips@google.com, richardlin@chromium.org, bsalomon@google.com
Author: kkinnunen@nvidia.com
Review URL: https://codereview.chromium.org/
98703002
git-svn-id: http://skia.googlecode.com/svn/trunk@12501
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Thu, 5 Dec 2013 12:07:44 +0000 (12:07 +0000)]
Move non-trivial work in RectBench() to onPreDraw.
Saw this on a profile where rects was filtered out. ಠ_ಠ
BUG=
R=reed@google.com
Author: mtklein@google.com
Review URL: https://codereview.chromium.org/
93703003
git-svn-id: http://skia.googlecode.com/svn/trunk@12500
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Thu, 5 Dec 2013 07:02:16 +0000 (07:02 +0000)]
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@12499
2bbb7eff-a529-9590-31e7-
b0007b416f81
bensong@google.com [Thu, 5 Dec 2013 01:31:56 +0000 (01:31 +0000)]
Fixes bench_util's CONFIG_RE to cope with space flexibility.
The real "fix" down the road is Joe's ongoing work of switching to JSON.
Review URL: https://codereview.chromium.org/
103943004
git-svn-id: http://skia.googlecode.com/svn/trunk@12498
2bbb7eff-a529-9590-31e7-
b0007b416f81
jvanverth@google.com [Thu, 5 Dec 2013 00:28:04 +0000 (00:28 +0000)]
More rebaselines for https://codereview.chromium.org/
102683002
Review URL: https://codereview.chromium.org/
105963002
git-svn-id: http://skia.googlecode.com/svn/trunk@12497
2bbb7eff-a529-9590-31e7-
b0007b416f81
jvanverth@google.com [Wed, 4 Dec 2013 23:46:30 +0000 (23:46 +0000)]
Rebaseline ANGLE for https://codereview.chromium.org/
102683002.
git-svn-id: http://skia.googlecode.com/svn/trunk@12496
2bbb7eff-a529-9590-31e7-
b0007b416f81
jvanverth@google.com [Wed, 4 Dec 2013 23:16:40 +0000 (23:16 +0000)]
Update ignored tests.
BUG=
Review URL: https://codereview.chromium.org/
105793002
git-svn-id: http://skia.googlecode.com/svn/trunk@12495
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Wed, 4 Dec 2013 21:33:08 +0000 (21:33 +0000)]
Simplify matrix generation for convex path renderer
Addresses precision issues which were leading to asserts in Debug
R=bsalomon@google.com, mtklein@google.com
Author: jvanverth@google.com
Review URL: https://codereview.chromium.org/
102683002
git-svn-id: http://skia.googlecode.com/svn/trunk@12494
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Wed, 4 Dec 2013 20:55:24 +0000 (20:55 +0000)]
Nit to self: NULL is not false.
R=mtklein@google.com, mtklein
BUG=
Review URL: https://codereview.chromium.org/
105423002
git-svn-id: http://skia.googlecode.com/svn/trunk@12493
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Wed, 4 Dec 2013 20:07:47 +0000 (20:07 +0000)]
Changed maxInputCount for exact inputCount
Processing still had issue when the number of inputs was 0, so I changed my previous fix from a maximum input count to an exact input count. -1 is used when the input count isn't fixed (but still has to be a non-negative number).
BUG=
R=senorblanco@chromium.org, reed@google.com, sugoi@google.com, bsalomon@google.com
Author: sugoi@chromium.org
Review URL: https://codereview.chromium.org/
100803004
git-svn-id: http://skia.googlecode.com/svn/trunk@12492
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Wed, 4 Dec 2013 19:56:31 +0000 (19:56 +0000)]
Remove deprecated setPrefConfigTable.
Safe once its only caller (in Android) has been updated.
BUG=skia:1874
R=reed@google.com
Review URL: https://codereview.chromium.org/
99473004
git-svn-id: http://skia.googlecode.com/svn/trunk@12491
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Wed, 4 Dec 2013 19:53:41 +0000 (19:53 +0000)]
Do proper NEON checking for SkBoxBlur procs.
TBR=mtklein
BUG=
Review URL: https://codereview.chromium.org/
98373003
git-svn-id: http://skia.googlecode.com/svn/trunk@12490
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Wed, 4 Dec 2013 18:34:58 +0000 (18:34 +0000)]
Force linking for skhello.
Otherwise encoders are stripped and the program produces nothing.
git-svn-id: http://skia.googlecode.com/svn/trunk@12487
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Wed, 4 Dec 2013 18:19:45 +0000 (18:19 +0000)]
Implement a NEON version of the RGBA gaussian blur. This shows a 9-15% speedup on Nexus-10.
R=mtklein@google.com, mtklein
before:
running bench [640 480] blur_image_filter_large_10.00_10.00 8888: cmsecs = 33063.23
running bench [640 480] blur_image_filter_small_10.00_10.00 8888: cmsecs = 32800.25
running bench [640 480] blur_image_filter_large_1.00_1.00 8888: cmsecs = 33017.88
running bench [640 480] blur_image_filter_small_1.00_1.00 8888: cmsecs = 32743.35
running bench [640 480] blur_image_filter_large_0.00_1.00 8888: cmsecs = 21024.04
running bench [640 480] blur_image_filter_large_0.00_10.00 8888: cmsecs = 22904.15
running bench [640 480] blur_image_filter_large_1.00_0.00 8888: cmsecs = 18738.08
running bench [640 480] blur_image_filter_large_10.00_0.00 8888: cmsecs = 18798.98
after:
running bench [640 480] blur_image_filter_large_10.00_10.00 8888: cmsecs = 30180.96
running bench [640 480] blur_image_filter_small_10.00_10.00 8888: cmsecs = 29861.90
running bench [640 480] blur_image_filter_large_1.00_1.00 8888: cmsecs = 30178.98
running bench [640 480] blur_image_filter_small_1.00_1.00 8888: cmsecs = 29911.25
running bench [640 480] blur_image_filter_large_0.00_1.00 8888: cmsecs = 19344.35
running bench [640 480] blur_image_filter_large_0.00_10.00 8888: cmsecs = 19957.07
running bench [640 480] blur_image_filter_large_1.00_0.00 8888: cmsecs = 17158.84
running bench [640 480] blur_image_filter_large_10.00_0.00 8888: cmsecs = 17330.73
Review URL: https://codereview.chromium.org/
99933004
git-svn-id: http://skia.googlecode.com/svn/trunk@12486
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Wed, 4 Dec 2013 17:55:15 +0000 (17:55 +0000)]
Remove problematic GrContext thread local instance counting
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/
104893002
git-svn-id: http://skia.googlecode.com/svn/trunk@12485
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Wed, 4 Dec 2013 17:06:49 +0000 (17:06 +0000)]
Fixed bad bitmap size crashes
There were 2 issues :
1 ) If the size of an SkBitmap's underlying SkPixelRef's alocated memory is too small to fit the bitmap, then the deserialization will now check this and set an error appropriately.
2 ) If a device fails to allocate its pixels, the device will be deleted and NULL will be returned to avoid attempting to draw on a bad device.
BUG=
R=senorblanco@chromium.org, reed@google.com, sugoi@google.com, halcanary@google.com, mtklein@google.com
Author: sugoi@chromium.org
Review URL: https://codereview.chromium.org/
92793002
git-svn-id: http://skia.googlecode.com/svn/trunk@12484
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 4 Dec 2013 16:52:15 +0000 (16:52 +0000)]
Rebaseline after r12473
Review URL: https://codereview.chromium.org/
104783003
git-svn-id: http://skia.googlecode.com/svn/trunk@12483
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Wed, 4 Dec 2013 16:40:42 +0000 (16:40 +0000)]
Put all of SkPostConfig.h inside top level ifdef.
Due to inconsistent indentation, the last third of this header is outside
of the top level ifdef header guard. This CL fixes that, as well as
makes the indents more consistent to avoid this issue in the future.
R=mtklein@google.com, reed@google.com
Review URL: https://codereview.chromium.org/
102153002
git-svn-id: http://skia.googlecode.com/svn/trunk@12482
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Wed, 4 Dec 2013 16:30:03 +0000 (16:30 +0000)]
Remove cityhash.gyp
According to https://code.google.com/p/skia/issues/detail?id=1286 it should be fine to remove this empty gyp file now.
BUG=None
TEST=None
R=epoger@google.com
Author: tfarina@chromium.org
Review URL: https://codereview.chromium.org/
102603004
git-svn-id: http://skia.googlecode.com/svn/trunk@12481
2bbb7eff-a529-9590-31e7-
b0007b416f81
jvanverth@google.com [Wed, 4 Dec 2013 15:04:11 +0000 (15:04 +0000)]
Last set of rebaselines for https://codereview.chromium.org/
99993002
BUG=
Review URL: https://codereview.chromium.org/
104733002
git-svn-id: http://skia.googlecode.com/svn/trunk@12480
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Wed, 4 Dec 2013 14:51:31 +0000 (14:51 +0000)]
Make SkTInternalLList::validate validate all nodes
Make SkTInternalLList::validate validate all nodes, including the
first one.
R=mtklein@google.com, bsalomon@google.com
Author: kkinnunen@nvidia.com
Review URL: https://codereview.chromium.org/
104553002
git-svn-id: http://skia.googlecode.com/svn/trunk@12479
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Wed, 4 Dec 2013 13:42:46 +0000 (13:42 +0000)]
Fix incremental visibility filter handling.
When drawing incrementally, SkDebugCanvas can end up applying the
visibility overlay multiple times (resulting in a fade-to-white effect).
The CL also includes a minor/unrelated SkDebugCanvas cleanup.
R=robertphillips@google.com
Author: fmalita@chromium.org
Review URL: https://codereview.chromium.org/
103083004
git-svn-id: http://skia.googlecode.com/svn/trunk@12478
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Wed, 4 Dec 2013 07:02:26 +0000 (07:02 +0000)]
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@12477
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Wed, 4 Dec 2013 00:42:07 +0000 (00:42 +0000)]
SkSplay and SkUnsplay work on any uint32_t, not just SkPMColor.
BUG=
R=reed@google.com, tfarina@chromium.org
Author: mtklein@google.com
Review URL: https://codereview.chromium.org/
102813002
git-svn-id: http://skia.googlecode.com/svn/trunk@12476
2bbb7eff-a529-9590-31e7-
b0007b416f81
jvanverth@google.com [Tue, 3 Dec 2013 21:45:59 +0000 (21:45 +0000)]
Rebaseline GMs for https://codereview.chromium.org/
99993002/
Review URL: https://codereview.chromium.org/
102953002
git-svn-id: http://skia.googlecode.com/svn/trunk@12475
2bbb7eff-a529-9590-31e7-
b0007b416f81
jvanverth@google.com [Tue, 3 Dec 2013 21:30:16 +0000 (21:30 +0000)]
Ignore colortype_msaa4 (for https://codereview.chromium.org/
99993002)
Review URL: https://codereview.chromium.org/
102713003
git-svn-id: http://skia.googlecode.com/svn/trunk@12474
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Tue, 3 Dec 2013 21:08:46 +0000 (21:08 +0000)]
[PDF] Fixes the cases where SkPDFDevice::finishContentEntry is called with empty content.
There are some cases (like drawing a completely transparent image) where the code tries to finish a content entry with no content and an xfermode other than clear. This makes those cases work correctly.
This is likely what was happening in chromium:316546, but it wasn't clear what the core problem was. desk_techcrunch.skp tripped a debug only assert that exposed the core issue.
BUG=skia:1868,chromium:316546
R=reed@google.com, bungeman@google.com
Author: vandebo@chromium.org
Review URL: https://codereview.chromium.org/
92453002
git-svn-id: http://skia.googlecode.com/svn/trunk@12473
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Tue, 3 Dec 2013 19:46:58 +0000 (19:46 +0000)]
Code cleanup following recapture of skps
https://codereview.chromium.org/
88233003/
git-svn-id: http://skia.googlecode.com/svn/trunk@12472
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Tue, 3 Dec 2013 19:45:22 +0000 (19:45 +0000)]
Add GPU support for color bitmap fonts
BUG=skia:1869
R=bungeman@google.com, robertphillips@google.com, bsalomon@google.com
Author: jvanverth@google.com
Review URL: https://codereview.chromium.org/
99993002
git-svn-id: http://skia.googlecode.com/svn/trunk@12471
2bbb7eff-a529-9590-31e7-
b0007b416f81
mtklein@google.com [Tue, 3 Dec 2013 19:27:41 +0000 (19:27 +0000)]
Fix 32/64 bit warnings on g++-4.2.
BUG=
Review URL: https://codereview.chromium.org/
98343006
git-svn-id: http://skia.googlecode.com/svn/trunk@12470
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Tue, 3 Dec 2013 18:53:30 +0000 (18:53 +0000)]
Refactor FourByteInterps. Add 64-bit Fast version. Add tests.
Effect on benches (only _fast_ should be affected, and only on 64-bit):
Desktop (64-bit)
four_byte_interp_slow_255 NONRENDERING c 7.80 7.84 -0.04 -0.5%
four_byte_interp_slow_256 NONRENDERING c 7.38 7.36 +0.02 +0.3%
four_byte_interp_fast_256 NONRENDERING c 4.86 4.38 +0.48 +9.9%
four_byte_interp_fast_255 NONRENDERING c 5.80 5.16 +0.64 +11.0%
N5 (32-bit)
four_byte_interp_slow_256 NONRENDERING c 22.22 22.66 -0.44 -2.0%
four_byte_interp_fast_255 NONRENDERING c 22.22 22.22 +0.00 +0.0%
four_byte_interp_fast_256 NONRENDERING c 18.81 18.81 +0.00 +0.0%
four_byte_interp_slow_255 NONRENDERING c 22.42 22.42 +0.00 +0.0%
BUG=
R=reed@google.com
Author: mtklein@google.com
Review URL: https://codereview.chromium.org/
100923003
git-svn-id: http://skia.googlecode.com/svn/trunk@12468
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Tue, 3 Dec 2013 18:17:16 +0000 (18:17 +0000)]
Simplify benchmark internal API.
I'm not quite sure why I wrote such a convoluted API with setLoops()/getLoops().
This replaces it with a loops argument passed to onDraw().
This CL is largely mechanical translation from the old API to the new one.
MathBench used this->getLoops() outside onDraw(), which seems incorrect. I
fixed it.
BUG=
R=djsollen@google.com
Author: mtklein@google.com
Review URL: https://codereview.chromium.org/
99893003
git-svn-id: http://skia.googlecode.com/svn/trunk@12466
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Tue, 3 Dec 2013 18:16:48 +0000 (18:16 +0000)]
Add JSON output option to bench.
A new command-line flag --outResultsFile takes the filename to write the JSON into.
The human readable output is the same as before with one exception. Previously DEBUG would be printed if in debug mode, or nothing would be printed if in release mode. Now this is reported as a named option:
build=DEBUG
or
build=RELEASE
R=djsollen@google.com, bsalomon@google.com
Author: jcgregorio@google.com
Review URL: https://codereview.chromium.org/
83863002
git-svn-id: http://skia.googlecode.com/svn/trunk@12465
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Tue, 3 Dec 2013 17:15:36 +0000 (17:15 +0000)]
Fix for SkPathRef::CreateTransformedCopy bug
https://codereview.chromium.org/
99423004/
git-svn-id: http://skia.googlecode.com/svn/trunk@12464
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Tue, 3 Dec 2013 16:43:54 +0000 (16:43 +0000)]
Move fIsOval from SkPath to SkPathRef
https://codereview.chromium.org/
89123002/
git-svn-id: http://skia.googlecode.com/svn/trunk@12463
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Tue, 3 Dec 2013 16:15:31 +0000 (16:15 +0000)]
Remove SkPdfNativeDoc::tokenizerOfStream.
Instead, initialize an SkPdfNativeTokenizer directly on the stack.
Fixes a memory leak in SkPdfFont.
R=mtklein@google.com
Review URL: https://codereview.chromium.org/
100323003
git-svn-id: http://skia.googlecode.com/svn/trunk@12462
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Tue, 3 Dec 2013 15:23:37 +0000 (15:23 +0000)]
Use lowercase windows.h in includes to fix Windows cross compilation using mingw.
While it doesn't matter on Windows, mingw on case-sensitive OSes uses all lower case filenames for platform include files. I found the problem in SkCondVar.h from Mozilla checkout of skia sources, but the patch contains a fix for the whole skia tree.
R=bungeman@google.com
Review URL: https://codereview.chromium.org/
99173003
git-svn-id: http://skia.googlecode.com/svn/trunk@12461
2bbb7eff-a529-9590-31e7-
b0007b416f81
rmistry@google.com [Tue, 3 Dec 2013 14:51:00 +0000 (14:51 +0000)]
Refreshed mozilla,googleplus and wikipedia SKPs. Triggering rebuilds.
git-svn-id: http://skia.googlecode.com/svn/trunk@12459
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Tue, 3 Dec 2013 12:49:32 +0000 (12:49 +0000)]
Rebaseline GMs for r12440 (HQ filtering for tiled/bleed drawBitmap)
https://codereview.chromium.org/
101793002/
git-svn-id: http://skia.googlecode.com/svn/trunk@12455
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Tue, 3 Dec 2013 07:02:11 +0000 (07:02 +0000)]
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@12453
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Tue, 3 Dec 2013 00:23:39 +0000 (00:23 +0000)]
Revert of r12450 (Move fIsOval from SkPath to SkPathRef)
git-svn-id: http://skia.googlecode.com/svn/trunk@12452
2bbb7eff-a529-9590-31e7-
b0007b416f81
mtklein@google.com [Tue, 3 Dec 2013 00:01:03 +0000 (00:01 +0000)]
Fix off-by-one in four_byte_interp benches.
BUG=
Review URL: https://codereview.chromium.org/
100563002
git-svn-id: http://skia.googlecode.com/svn/trunk@12451
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Mon, 2 Dec 2013 23:55:11 +0000 (23:55 +0000)]
Move fIsOval from SkPath to SkPathRef
https://codereview.chromium.org/
89123002/
git-svn-id: http://skia.googlecode.com/svn/trunk@12450
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 2 Dec 2013 22:54:50 +0000 (22:54 +0000)]
Fix ignored-tests.txt
Review URL: https://codereview.chromium.org/
100383002
git-svn-id: http://skia.googlecode.com/svn/trunk@12449
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Mon, 2 Dec 2013 22:40:56 +0000 (22:40 +0000)]
ARM Skia NEON patches - 29 - Xfermode: SkFourByteInterp
Xfermode: add a NEON version of SkFourByteInterp
Brings a modest performance improvement on its own in
ProcXfermodes when aa is neither zero nor FF. Combined
with 1-pixel NEON modeprocs, it brings up to 35% speed
improvement on the aa case.
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
BUG=
R=djsollen@google.com, mtklein@google.com, reed@google.com
Author: kevin.petit.arm@gmail.com
Review URL: https://codereview.chromium.org/
23724013
git-svn-id: http://skia.googlecode.com/svn/trunk@12448
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Mon, 2 Dec 2013 22:34:45 +0000 (22:34 +0000)]
Simplify SkPdfTokenLooper behavior.
Instead of passing a pointer to a pointer to a NULL looper, which can
then be set to point to a new looper (which then must be looped and
deleted), pass a pointer to the current looper. Each function can then
create a looper based on the parent (on the stack) and call loop()
itself.
Remove setUp(). Now that there is a pointer to the parent at creation
time, there is no need for this function.
Modify the constructors to only provide ones that are needed.
Add documentation.
Remove PdfInlineImageLooper::done(), which is never used.
R=mtklein@google.com
Review URL: https://codereview.chromium.org/
83183004
git-svn-id: http://skia.googlecode.com/svn/trunk@12447
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Mon, 2 Dec 2013 22:32:58 +0000 (22:32 +0000)]
Delay setting initial memory block until it officially exists.
BUG=323017
R=robertphillips@google.com
Author: mtklein@google.com
Review URL: https://codereview.chromium.org/
99833002
git-svn-id: http://skia.googlecode.com/svn/trunk@12446
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Mon, 2 Dec 2013 22:32:54 +0000 (22:32 +0000)]
SkDiscardablePixelRef objects are now marked immutable.
I also specifically mentioned in the SkImageGenerator documentation
that it should always return the same information on subsequent calls
to getInfo() and getPixels().
Motivation: When a bitmap is recorded into a SkPicture, it will choose
whether to shallow- or deep-copy itself into the SkBitmapHeap based on
the immutable flag. Failing to set it would make picture recording slow.
BUG=
R=fmalita@google.com, reed@google.com, scroggo@google.com
Author: halcanary@google.com
Review URL: https://codereview.chromium.org/
99303003
git-svn-id: http://skia.googlecode.com/svn/trunk@12445
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Mon, 2 Dec 2013 22:32:47 +0000 (22:32 +0000)]
Add four_byte_interp benches.
Desktop:
running bench [640 480] four_byte_interp_slow_256 NONRENDERING: cmsecs = 6.18
running bench [640 480] four_byte_interp_slow_255 NONRENDERING: cmsecs = 6.83
running bench [640 480] four_byte_interp_fast_256 NONRENDERING: cmsecs = 5.02
running bench [640 480] four_byte_interp_fast_255 NONRENDERING: cmsecs = 5.88
N5:
running bench [640 480] four_byte_interp_slow_256 NONRENDERING: cmsecs = 22.84
running bench [640 480] four_byte_interp_slow_255 NONRENDERING: cmsecs = 25.11
running bench [640 480] four_byte_interp_fast_256 NONRENDERING: cmsecs = 18.89
running bench [640 480] four_byte_interp_fast_255 NONRENDERING: cmsecs = 22.32
BUG=
R=reed@google.com
Author: mtklein@google.com
Review URL: https://codereview.chromium.org/
93933003
git-svn-id: http://skia.googlecode.com/svn/trunk@12444
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Mon, 2 Dec 2013 22:23:03 +0000 (22:23 +0000)]
Remove the comments settings for vim tab width and expansion variables.
These add unnecessary bloat for everyone to carry around, so we just
remove them now.
The same change was made in chromium by Tony in
http://codereview.chromium.org/
7310019 - crrev.com/92046
BUG=None
TEST=./gyp_skia
R=mtklein@google.com
Author: tfarina@chromium.org
Review URL: https://codereview.chromium.org/
92673003
git-svn-id: http://skia.googlecode.com/svn/trunk@12443
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Mon, 2 Dec 2013 22:22:45 +0000 (22:22 +0000)]
Remove GR_IMPLEMENTATION define.
skgputest is built as a static library and thus this define is not
needed. If the library was built as shared, then this define would
be necessary and used. But it isn't, so we remove it now.
BUG=None
TEST=None
R=bsalomon@google.com
Author: tfarina@chromium.org
Review URL: https://codereview.chromium.org/
90923005
git-svn-id: http://skia.googlecode.com/svn/trunk@12442
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Mon, 2 Dec 2013 22:22:40 +0000 (22:22 +0000)]
Missed this flag. imagemagnifier asserts without it.
BUG=skia:781
R=epoger@google.com
Author: mtklein@google.com
Review URL: https://codereview.chromium.org/
89533004
git-svn-id: http://skia.googlecode.com/svn/trunk@12441
2bbb7eff-a529-9590-31e7-
b0007b416f81
commit-bot@chromium.org [Mon, 2 Dec 2013 22:22:35 +0000 (22:22 +0000)]
HQ filtering for tiled/bleed drawBitmap
sample at pix center in bicubic
R=senorblanco@chromium.org, jvanverth@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/
83153006
git-svn-id: http://skia.googlecode.com/svn/trunk@12440
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Mon, 2 Dec 2013 21:34:36 +0000 (21:34 +0000)]
Fix 'i-i' to 'i-1' in SkCanvasStack.
Pointed out in http://www.viva64.com/en/b/0225/ .
R=djsollen@google.com
Review URL: https://codereview.chromium.org/
99753002
git-svn-id: http://skia.googlecode.com/svn/trunk@12439
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Mon, 2 Dec 2013 20:58:12 +0000 (20:58 +0000)]
Remove some PdfViewer warnings.
Fix build.
git-svn-id: http://skia.googlecode.com/svn/trunk@12438
2bbb7eff-a529-9590-31e7-
b0007b416f81
borenet@google.com [Mon, 2 Dec 2013 20:27:16 +0000 (20:27 +0000)]
Add some debugging to buildbot_globals, sort the trybot list
R=epoger@google.com, rmistry@google.com
Review URL: https://codereview.chromium.org/
99223002
git-svn-id: http://skia.googlecode.com/svn/trunk@12437
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Mon, 2 Dec 2013 20:22:31 +0000 (20:22 +0000)]
Separate and update PDF_DIFF_TRACE_IN_PNG
Move its functionality out of readToken() and into its own class.
Callers of the previous readToken() now call
SkPdfNativeTokenizer::readToken(), which in turn calls a function
for writing the diff to a file, if the caller requests it and
PDF_TRACE_DIFF_IN_PNG is defined.
Do not attempt to draw a diff for compatibility sections, which we
do not draw.
Use SkString to handle string manipulation.
Hide globals only used by PDF_TRACE_DIFF_IN_PNG behind that flag.
Remove hasVisualEffects, which always returns true.
Rename gLastOpKeyword to gOpCounter for clarity.
In SkPdfNativeTokenizer, set fEmpty to true when the entire stream
has been read.
Use SkBitmap::copyTo instead of manually copying an SkBitmap.
Builds on https://codereview.chromium.org/
79933003/
R=mtklein@google.com
Review URL: https://codereview.chromium.org/
80463005
git-svn-id: http://skia.googlecode.com/svn/trunk@12436
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Mon, 2 Dec 2013 20:18:09 +0000 (20:18 +0000)]
Restructuring of PdfViewer code.
The only change in behavior is that SkPdfAllocator on SkPdfContext is
no longer allocated on the heap.
In general, I have just moved code.
SkPdfContext:
Inherit from SkNoncopyable.
Make SkPdfContext directly own fTmpPageAllocator. fTmpPageAllocator is
created when SkPdfContext is, and destroyed at the same time as well,
so there is no reason for the extra allocation.
Add the function parseStream. This eliminates code duplication, and
allows making fTmpPageAllocator private.
Move PdfMainLooper into the implementation file, since it is now only
used by parseStream.
Move SkTDictWithDefaultConstructor and render stats info here, in
support of PdfMainLooper.
SkPdfTokenLooper:
Rename PdfTokenLooper to SkPdfTokenLooper.
Move readToken here, unchanged.
Remove tokenizer(), which is unused.
SkPdfNativeDoc:
Remove tokenizerOfPage and tokenizerOfBuffer, which are unused.
SkPdfOps:
Move gPdfOps and PdfOperatorRenderer into a header file (hidden for
now), so they can be accessed by both SkPdfRenderer.cpp and
SkPdfContext.cpp.
SkPdfRenderer:
Harvest things into other files:
PdfMainLooper (and the code that calls it) -> SkPdfContext.
readToken -> SkPdfTokenLooper.
R=mtklein@google.com
Review URL: https://codereview.chromium.org/
79933003
git-svn-id: http://skia.googlecode.com/svn/trunk@12435
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Mon, 2 Dec 2013 19:54:33 +0000 (19:54 +0000)]
Libraries without '-l' treated as relative paths.
The following have the same effect on Windows:
'msvs_settings': { 'VCLinkerTool': { 'AdditionalDependencies': [ 'windowscodecs.lib', ],},},
'link_settings': {'libraries': ['-lwindowscodecs.lib',],},
But this one is different:
'link_settings': {'libraries': ['windowscodecs.lib',],},
since this last one will attempt to find the library at
third_party\skia\gyp\windowscodecs.lib
or a place like this, instead of looking in the library paths.
This also fixes capitalization of the affected libraries.
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/
99463002
git-svn-id: http://skia.googlecode.com/svn/trunk@12434
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 2 Dec 2013 19:50:16 +0000 (19:50 +0000)]
restore [6] for setPrefConfigTable, accidentally changed with A1 CL
BUG=
Review URL: https://codereview.chromium.org/
99963002
git-svn-id: http://skia.googlecode.com/svn/trunk@12433
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Mon, 2 Dec 2013 19:12:04 +0000 (19:12 +0000)]
Fix spelling errors in SkWeakRefCnt.
git-svn-id: http://skia.googlecode.com/svn/trunk@12432
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Mon, 2 Dec 2013 19:10:02 +0000 (19:10 +0000)]
Actually mark other types of fonts as 'kOther' in FreeType port.
Without this, the fType is garbage and will most likely cause an assert
or unwanted behavior later.
Review URL: https://codereview.chromium.org/
99453005
git-svn-id: http://skia.googlecode.com/svn/trunk@12431
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Mon, 2 Dec 2013 15:43:39 +0000 (15:43 +0000)]
Fix truncation of glyphs in SkScalerContext.cpp
https://codereview.chromium.org/
99323002/
git-svn-id: http://skia.googlecode.com/svn/trunk@12430
2bbb7eff-a529-9590-31e7-
b0007b416f81
rmistry@google.com [Mon, 2 Dec 2013 13:50:38 +0000 (13:50 +0000)]
Reverting r12427
git-svn-id: http://skia.googlecode.com/svn/trunk@12428
2bbb7eff-a529-9590-31e7-
b0007b416f81