reed@google.com
dab9b4fe03
use SkPath::isNestedRects() to apply blurred nine-patch
...
Review URL: https://codereview.appspot.com/6855063
git-svn-id: http://skia.googlecode.com/svn/trunk@6483 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-19 16:45:14 +00:00
scroggo@google.com
4f65a77a1f
Fix a memory leak in skdiff that happens when the
...
directories do not contain the same files.
Only create the bitmaps when we need to use them.
Review URL: https://codereview.appspot.com/6850066
git-svn-id: http://skia.googlecode.com/svn/trunk@6481 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-19 16:30:08 +00:00
robertphillips@google.com
e099bc403c
3 minor fixes for debugger
...
https://codereview.appspot.com/6842062/
git-svn-id: http://skia.googlecode.com/svn/trunk@6480 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-19 16:26:40 +00:00
reed@google.com
808b70f869
modify gm to have a non-uniform donut for testing
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6477 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-19 16:14:02 +00:00
bsalomon@google.com
8e2999fd24
Protect against unref/ref of stencil buffer.
...
Over the shoulder review from robertphillips@google.com
git-svn-id: http://skia.googlecode.com/svn/trunk@6476 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-19 14:36:31 +00:00
caryclark@google.com
56f233ab54
add two nested rect detector to path
...
Tease apart existing one rect path detector so
that a new variant can detect two nested rects as well.
Add tests to verify that both one and two rect
detectors both work and return the correct results.
Suppress other warnings in PathTest.
Review URL: https://codereview.appspot.com/6850059
git-svn-id: http://skia.googlecode.com/svn/trunk@6475 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-19 13:06:06 +00:00
senorblanco@chromium.org
1542354487
Revert r6469, "Turn on separable blur."
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6474 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-17 15:08:29 +00:00
skia.committer@gmail.com
e7a709aa27
Sanitizing source files in Skia_Periodic_House_Keeping
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6473 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-17 02:01:23 +00:00
borenet@google.com
ec7bf37412
Whitespace change to trigger rebuild after network hiccup
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6472 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-16 22:26:33 +00:00
scroggo@google.com
013c5d9107
In SkBitmapHeap, defer adding owners for new bitmaps.
...
When using an SkFlatDictionary to flatten shaders, the
dictionary can try to insert a duplicate bitmap shader
that uses a bitmap which has been removed from the
bitmap heap.
This change was originally suggested by junov in
https://codereview.appspot.com/6713048/ .
Add a test to verify that deferring the owners works.
Without the change to bitmap heap the test would fail
(and crash in debug mode).
Also remove an unused function from SkFlatDictionary.
BUG=http://code.google.com/p/chromium/issues/detail?id=143923
Review URL: https://codereview.appspot.com/6842051
git-svn-id: http://skia.googlecode.com/svn/trunk@6471 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-16 20:34:37 +00:00
caryclark@google.com
6ec1526680
shape ops work in progress
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6470 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-16 20:16:50 +00:00
senorblanco@chromium.org
2c48c5eefc
Turn on separable blur.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6469 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-16 19:26:22 +00:00
epoger@google.com
4ce738b98e
Extract transform_scanline_XXXX functions into transform_scanline.h for code-sharing
...
Review URL: https://codereview.appspot.com/6849065
git-svn-id: http://skia.googlecode.com/svn/trunk@6468 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-16 18:44:18 +00:00
skia.committer@gmail.com
886b25f14c
Sanitizing source files in Skia_Periodic_House_Keeping
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6466 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-16 18:15:12 +00:00
senorblanco@chromium.org
c438130964
Separable blur: subpixel blurring. We approximate intermediate values of blur for even kernel sizes by using a kernel of size N offset to the left in the first pass, a kernel of size N offset to the right in the second pass, and a centered kernel of size N + 1 in the third pass. This required adding support for asymmetrical radii to the box blur.
...
Since this can only be done in the 3-pass blur for separable blurs, we turn off the optimization that drops to low quality for blurs of < 3 pixels.
Review URL: https://codereview.appspot.com/6843072
git-svn-id: http://skia.googlecode.com/svn/trunk@6464 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-16 17:22:33 +00:00
reed@google.com
59d968fb29
use correct blend proc instead of fourbyteinterp, since the src may not be opaque
...
fixes DumpRenderTree failure
git-svn-id: http://skia.googlecode.com/svn/trunk@6457 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-16 14:46:00 +00:00
reed@google.com
aef73617d1
flag the GM if we're in deferred-canvas mode, to work-around bug trying to
...
get the context from its device.
git-svn-id: http://skia.googlecode.com/svn/trunk@6452 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-16 13:41:45 +00:00
reed@google.com
13201e74f4
fold kClear_Mode into kSrc_Mode, and make kSrc_Mode go faster
...
Review URL: https://codereview.appspot.com/6851054
git-svn-id: http://skia.googlecode.com/svn/trunk@6451 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-16 13:20:41 +00:00
caryclark@google.com
b1c42bbdcf
shape op work in progress
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6450 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-16 13:16:41 +00:00
mike@reedtribe.org
1588974aff
use #if SK_SUPPORT_GPU to guard references to gpudevice
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6449 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-16 02:31:03 +00:00
mike@reedtribe.org
92aa756c86
use gpu surface to match canvas
...
change gm to reset shader when we start antialiasing
git-svn-id: http://skia.googlecode.com/svn/trunk@6448 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-16 02:23:10 +00:00
skia.committer@gmail.com
884e60be30
Sanitizing source files in Skia_Periodic_House_Keeping
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6447 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-16 02:01:17 +00:00
senorblanco@chromium.org
908276b396
Reorder the separable blur passes into XXX/YYY, with an image transpose on the last pass of each group. This results in continuguous memory reads in all passes, giving a 22% speedup on theverge.skp over the previous separable implementation, and a 30%-50% improvement over the existing implementation (depending on platform).
...
Review URL: https://codereview.appspot.com/6851053
git-svn-id: http://skia.googlecode.com/svn/trunk@6445 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-15 20:27:35 +00:00
reed@google.com
0561a3ccd2
need this for prev. cl
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6444 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-15 19:52:20 +00:00
reed@google.com
2d078b637a
add bench for srcmode
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6443 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-15 19:52:07 +00:00
reed@google.com
60712f3180
use DEF_BENCH() macro to clean up factory registrations -- no other change
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6442 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-15 18:06:00 +00:00
reed@google.com
86eca4774b
draw offscreen so we can see the alpha-channel we are writing
...
todo: know when to use a gpu-surface
git-svn-id: http://skia.googlecode.com/svn/trunk@6436 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-15 17:24:23 +00:00
robertphillips@google.com
fe830a4641
Fix debugger crash when SK_PICTURE_PROFILING_STUBS isn't defined
...
https://codereview.appspot.com/6850060/
git-svn-id: http://skia.googlecode.com/svn/trunk@6433 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-15 16:33:31 +00:00
epoger@google.com
82b4f32fbe
whitespace
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6432 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-15 16:32:15 +00:00
reed@google.com
a4f8137e67
update srcmode GM to include aa/bw and gradients
...
add 'G' key to sampleapp, to toggle showing the GM's bounds as an overlay
git-svn-id: http://skia.googlecode.com/svn/trunk@6431 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-15 15:56:38 +00:00
robertphillips@google.com
2bde91dcb6
Add profiling to debugger
...
https://codereview.appspot.com/6817114/
git-svn-id: http://skia.googlecode.com/svn/trunk@6430 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-15 14:57:57 +00:00
reed@google.com
5dd85a45bc
add gm for srcmode (and clearmode) in prep for optimization work
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6429 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-15 13:46:47 +00:00
reed@google.com
0f5891caf6
remove (unused) debugging global
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6428 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-15 13:19:17 +00:00
mike@reedtribe.org
b947625800
remove unused (and undefined) SkColorSpace parameter.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6427 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-15 02:37:45 +00:00
mike@reedtribe.org
7a722f0ebf
silence excessive printf noise from SkScalerContext_FreeType::generateMetrics for glyph out-of-range.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6426 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-15 02:12:14 +00:00
skia.committer@gmail.com
b3b6a60d35
Sanitizing source files in Skia_Periodic_House_Keeping
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6425 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-15 02:01:17 +00:00
vollick@chromium.org
9b21c25e74
Add SkMatrix44::setTranspose
...
It turned out that adding getDouble(...) and setDouble(...) made this change
easier, so I've included that in this cl as well.
Review URL: https://codereview.appspot.com/6845048
git-svn-id: http://skia.googlecode.com/svn/trunk@6424 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-14 21:33:55 +00:00
caryclark@google.com
57cff8dbdf
shape ops work in progress
...
binary ops work for simple coincident case
git-svn-id: http://skia.googlecode.com/svn/trunk@6422 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-14 21:14:56 +00:00
scroggo@google.com
459e6623f1
Remove a warning for comparing signed and unsigned integers.
...
Review URL: https://codereview.appspot.com/6851050
git-svn-id: http://skia.googlecode.com/svn/trunk@6420 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-14 21:08:53 +00:00
reed@google.com
260eae59b4
move setDevice() to protected: in preparation for its eventual demise
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6416 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-14 19:07:24 +00:00
reed@google.com
cd5f7e2222
mark SkCanvas::setDevice as DEPRECATED -- need to remove all callers in chrome
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6414 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-14 14:40:07 +00:00
skia.committer@gmail.com
cec8de6821
Sanitizing source files in Skia_Periodic_House_Keeping
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6413 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-14 02:01:22 +00:00
bsalomon@google.com
9bee33afbe
Add a conservativelyContainsRect function to SkPath.
...
Review URL: https://codereview.appspot.com/6852044
git-svn-id: http://skia.googlecode.com/svn/trunk@6411 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-13 21:51:38 +00:00
skia.committer@gmail.com
fbb0ed959d
Sanitizing source files in Skia_Periodic_House_Keeping
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6409 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-13 21:46:06 +00:00
epoger@google.com
454008ae29
comment-only change to gm/tests/run.sh
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6407 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-13 20:46:50 +00:00
senorblanco@chromium.org
72fac3533e
Build fix. Unreviewed.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@6406 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-13 20:41:43 +00:00
robertphillips@google.com
9a5b570e5c
Allow SkPicture-derived classes install their own SkPicturePlayback-derived object
...
https://codereview.appspot.com/6851048/
git-svn-id: http://skia.googlecode.com/svn/trunk@6405 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-13 20:41:18 +00:00
senorblanco@chromium.org
71f0f34f7d
A new implementation of mask blurs, using separable X/Y passes. Disabled for now.
...
Review URL: https://codereview.appspot.com/6826086
git-svn-id: http://skia.googlecode.com/svn/trunk@6404 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-13 20:35:21 +00:00
vollick@chromium.org
5596a69e9f
Add support for SK_MSCALAR_IS_FLOAT
...
The default is SK_MSCALAR_IS_FLOAT. You'll have to explicitly define SK_MSCALAR_IS_DOUBLE if that's what you want.
BUG=None
Review URL: https://codereview.appspot.com/6843049
git-svn-id: http://skia.googlecode.com/svn/trunk@6403 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-13 20:12:00 +00:00
djsollen@google.com
a09e8838f2
Update filter tool to allow input directory.
...
Review URL: https://codereview.appspot.com/6847046
git-svn-id: http://skia.googlecode.com/svn/trunk@6399 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-13 18:50:33 +00:00