platform/upstream/libSkiaSharp.git
11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Sat, 17 Nov 2012 02:01:23 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@6473 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoWhitespace change to trigger rebuild after network hiccup
borenet@google.com [Fri, 16 Nov 2012 22:26:33 +0000 (22:26 +0000)]
Whitespace change to trigger rebuild after network hiccup

git-svn-id: http://skia.googlecode.com/svn/trunk@6472 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoIn SkBitmapHeap, defer adding owners for new bitmaps.
scroggo@google.com [Fri, 16 Nov 2012 20:34:37 +0000 (20:34 +0000)]
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

11 years agoshape ops work in progress
caryclark@google.com [Fri, 16 Nov 2012 20:16:50 +0000 (20:16 +0000)]
shape ops work in progress

git-svn-id: http://skia.googlecode.com/svn/trunk@6470 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoTurn on separable blur.
senorblanco@chromium.org [Fri, 16 Nov 2012 19:26:22 +0000 (19:26 +0000)]
Turn on separable blur.

git-svn-id: http://skia.googlecode.com/svn/trunk@6469 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoExtract transform_scanline_XXXX functions into transform_scanline.h for code-sharing
epoger@google.com [Fri, 16 Nov 2012 18:44:18 +0000 (18:44 +0000)]
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

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Fri, 16 Nov 2012 18:15:12 +0000 (18:15 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@6466 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSeparable blur: subpixel blurring. We approximate intermediate values of blur for...
senorblanco@chromium.org [Fri, 16 Nov 2012 17:22:33 +0000 (17:22 +0000)]
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

11 years agouse correct blend proc instead of fourbyteinterp, since the src may not be opaque
reed@google.com [Fri, 16 Nov 2012 14:46:00 +0000 (14:46 +0000)]
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

11 years agoflag the GM if we're in deferred-canvas mode, to work-around bug trying to
reed@google.com [Fri, 16 Nov 2012 13:41:45 +0000 (13:41 +0000)]
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

11 years agofold kClear_Mode into kSrc_Mode, and make kSrc_Mode go faster
reed@google.com [Fri, 16 Nov 2012 13:20:41 +0000 (13:20 +0000)]
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

11 years agoshape op work in progress
caryclark@google.com [Fri, 16 Nov 2012 13:16:41 +0000 (13:16 +0000)]
shape op work in progress

git-svn-id: http://skia.googlecode.com/svn/trunk@6450 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agouse #if SK_SUPPORT_GPU to guard references to gpudevice
mike@reedtribe.org [Fri, 16 Nov 2012 02:31:03 +0000 (02:31 +0000)]
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

11 years agouse gpu surface to match canvas
mike@reedtribe.org [Fri, 16 Nov 2012 02:23:10 +0000 (02:23 +0000)]
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

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Fri, 16 Nov 2012 02:01:17 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@6447 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoReorder the separable blur passes into XXX/YYY, with an image transpose on the last...
senorblanco@chromium.org [Thu, 15 Nov 2012 20:27:35 +0000 (20:27 +0000)]
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

11 years agoneed this for prev. cl
reed@google.com [Thu, 15 Nov 2012 19:52:20 +0000 (19:52 +0000)]
need this for prev. cl

git-svn-id: http://skia.googlecode.com/svn/trunk@6444 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd bench for srcmode
reed@google.com [Thu, 15 Nov 2012 19:52:07 +0000 (19:52 +0000)]
add bench for srcmode

git-svn-id: http://skia.googlecode.com/svn/trunk@6443 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agouse DEF_BENCH() macro to clean up factory registrations -- no other change
reed@google.com [Thu, 15 Nov 2012 18:06:00 +0000 (18:06 +0000)]
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

11 years agodraw offscreen so we can see the alpha-channel we are writing
reed@google.com [Thu, 15 Nov 2012 17:24:23 +0000 (17:24 +0000)]
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

11 years agoFix debugger crash when SK_PICTURE_PROFILING_STUBS isn't defined
robertphillips@google.com [Thu, 15 Nov 2012 16:33:31 +0000 (16:33 +0000)]
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

11 years agowhitespace
epoger@google.com [Thu, 15 Nov 2012 16:32:15 +0000 (16:32 +0000)]
whitespace

git-svn-id: http://skia.googlecode.com/svn/trunk@6432 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoupdate srcmode GM to include aa/bw and gradients
reed@google.com [Thu, 15 Nov 2012 15:56:38 +0000 (15:56 +0000)]
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

11 years agoAdd profiling to debugger
robertphillips@google.com [Thu, 15 Nov 2012 14:57:57 +0000 (14:57 +0000)]
Add profiling to debugger

https://codereview.appspot.com/6817114/

git-svn-id: http://skia.googlecode.com/svn/trunk@6430 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd gm for srcmode (and clearmode) in prep for optimization work
reed@google.com [Thu, 15 Nov 2012 13:46:47 +0000 (13:46 +0000)]
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

11 years agoremove (unused) debugging global
reed@google.com [Thu, 15 Nov 2012 13:19:17 +0000 (13:19 +0000)]
remove (unused) debugging global

git-svn-id: http://skia.googlecode.com/svn/trunk@6428 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoremove unused (and undefined) SkColorSpace parameter.
mike@reedtribe.org [Thu, 15 Nov 2012 02:37:45 +0000 (02:37 +0000)]
remove unused (and undefined) SkColorSpace parameter.

git-svn-id: http://skia.googlecode.com/svn/trunk@6427 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agosilence excessive printf noise from SkScalerContext_FreeType::generateMetrics for...
mike@reedtribe.org [Thu, 15 Nov 2012 02:12:14 +0000 (02:12 +0000)]
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

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Thu, 15 Nov 2012 02:01:17 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@6425 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd SkMatrix44::setTranspose
vollick@chromium.org [Wed, 14 Nov 2012 21:33:55 +0000 (21:33 +0000)]
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

11 years agoshape ops work in progress
caryclark@google.com [Wed, 14 Nov 2012 21:14:56 +0000 (21:14 +0000)]
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

11 years agoRemove a warning for comparing signed and unsigned integers.
scroggo@google.com [Wed, 14 Nov 2012 21:08:53 +0000 (21:08 +0000)]
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

11 years agomove setDevice() to protected: in preparation for its eventual demise
reed@google.com [Wed, 14 Nov 2012 19:07:24 +0000 (19:07 +0000)]
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

11 years agomark SkCanvas::setDevice as DEPRECATED -- need to remove all callers in chrome
reed@google.com [Wed, 14 Nov 2012 14:40:07 +0000 (14:40 +0000)]
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

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Wed, 14 Nov 2012 02:01:22 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@6413 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd a conservativelyContainsRect function to SkPath.
bsalomon@google.com [Tue, 13 Nov 2012 21:51:38 +0000 (21:51 +0000)]
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

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Tue, 13 Nov 2012 21:46:06 +0000 (21:46 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@6409 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agocomment-only change to gm/tests/run.sh
epoger@google.com [Tue, 13 Nov 2012 20:46:50 +0000 (20:46 +0000)]
comment-only change to gm/tests/run.sh

git-svn-id: http://skia.googlecode.com/svn/trunk@6407 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoBuild fix. Unreviewed.
senorblanco@chromium.org [Tue, 13 Nov 2012 20:41:43 +0000 (20:41 +0000)]
Build fix.  Unreviewed.

git-svn-id: http://skia.googlecode.com/svn/trunk@6406 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAllow SkPicture-derived classes install their own SkPicturePlayback-derived object
robertphillips@google.com [Tue, 13 Nov 2012 20:41:18 +0000 (20:41 +0000)]
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

11 years agoA new implementation of mask blurs, using separable X/Y passes. Disabled for now.
senorblanco@chromium.org [Tue, 13 Nov 2012 20:35:21 +0000 (20:35 +0000)]
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

11 years agoAdd support for SK_MSCALAR_IS_FLOAT
vollick@chromium.org [Tue, 13 Nov 2012 20:12:00 +0000 (20:12 +0000)]
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

11 years agoUpdate filter tool to allow input directory.
djsollen@google.com [Tue, 13 Nov 2012 18:50:33 +0000 (18:50 +0000)]
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

11 years agoFix linux compiler error with the debugger app.
djsollen@google.com [Tue, 13 Nov 2012 18:35:10 +0000 (18:35 +0000)]
Fix linux compiler error with the debugger app.

Review URL: https://codereview.appspot.com/6848045

git-svn-id: http://skia.googlecode.com/svn/trunk@6398 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdded profiling stubs to SkPicturePlayback
robertphillips@google.com [Tue, 13 Nov 2012 18:28:06 +0000 (18:28 +0000)]
Added profiling stubs to SkPicturePlayback

https://codereview.appspot.com/6851044/

git-svn-id: http://skia.googlecode.com/svn/trunk@6397 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoChanging the visibility of SkMatrix44::determinant().
vollick@chromium.org [Tue, 13 Nov 2012 15:08:22 +0000 (15:08 +0000)]
Changing the visibility of SkMatrix44::determinant().

Review URL: https://codereview.appspot.com/6819080

git-svn-id: http://skia.googlecode.com/svn/trunk@6395 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMake SkPath cache the result of cheapComputeDirection.
bsalomon@google.com [Tue, 13 Nov 2012 14:36:42 +0000 (14:36 +0000)]
Make SkPath cache the result of cheapComputeDirection.
Review URL: https://codereview.appspot.com/6810111

git-svn-id: http://skia.googlecode.com/svn/trunk@6394 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRemoving files accidently submitted by Skia_Periodic_House_Keeping
rmistry@google.com [Tue, 13 Nov 2012 14:23:14 +0000 (14:23 +0000)]
Removing files accidently submitted by Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@6392 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd tests for degenerate serifs to computeDirection
reed@google.com [Tue, 13 Nov 2012 13:47:39 +0000 (13:47 +0000)]
add tests for degenerate serifs to computeDirection

git-svn-id: http://skia.googlecode.com/svn/trunk@6391 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMaintain failedTests list within GMMain object
epoger@google.com [Tue, 13 Nov 2012 03:41:55 +0000 (03:41 +0000)]
Maintain failedTests list within GMMain object
Review URL: https://codereview.appspot.com/6819121

git-svn-id: http://skia.googlecode.com/svn/trunk@6390 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Tue, 13 Nov 2012 02:01:55 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@6389 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFix Linux link errors for some targets by adding -lX11 to gpu.gyp's
senorblanco@chromium.org [Mon, 12 Nov 2012 20:55:02 +0000 (20:55 +0000)]
Fix Linux link errors for some targets by adding -lX11 to gpu.gyp's
dependencies.

Broken out and landed separately from  https://codereview.appspot.com/6826086/

git-svn-id: http://skia.googlecode.com/svn/trunk@6388 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd const to src parameter for mapMScalars()
reed@google.com [Mon, 12 Nov 2012 20:43:59 +0000 (20:43 +0000)]
add const to src parameter for mapMScalars()

git-svn-id: http://skia.googlecode.com/svn/trunk@6386 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoUpdate debugger GUI to have profile button & list widget to optionally display time
robertphillips@google.com [Mon, 12 Nov 2012 20:42:12 +0000 (20:42 +0000)]
Update debugger GUI to have profile button & list widget to optionally display time

https://codereview.appspot.com/6813117/

git-svn-id: http://skia.googlecode.com/svn/trunk@6385 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Mon, 12 Nov 2012 19:41:02 +0000 (19:41 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@6381 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd a self-test for gm, similar to our self-test for skdiff.
epoger@google.com [Mon, 12 Nov 2012 18:04:51 +0000 (18:04 +0000)]
Add a self-test for gm, similar to our self-test for skdiff.
Review URL: https://codereview.appspot.com/6827068

git-svn-id: http://skia.googlecode.com/svn/trunk@6380 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoUpdate filter tool to handle PNG encoded SkBitmaps
robertphillips@google.com [Mon, 12 Nov 2012 18:03:19 +0000 (18:03 +0000)]
Update filter tool to handle PNG encoded SkBitmaps

https://codereview.appspot.com/6813094/

git-svn-id: http://skia.googlecode.com/svn/trunk@6379 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoTell CG ImageEncoder that a bitmap is opaque if it is.
scroggo@google.com [Mon, 12 Nov 2012 16:18:43 +0000 (16:18 +0000)]
Tell CG ImageEncoder that a bitmap is opaque if it is.

Review URL: https://codereview.appspot.com/6819110

git-svn-id: http://skia.googlecode.com/svn/trunk@6378 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRevert 6351 due to bugs.
bsalomon@google.com [Mon, 12 Nov 2012 13:38:57 +0000 (13:38 +0000)]
Revert 6351 due to bugs.

git-svn-id: http://skia.googlecode.com/svn/trunk@6377 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Sat, 10 Nov 2012 02:01:26 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@6376 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoshape ops work in progress
caryclark@google.com [Fri, 9 Nov 2012 22:14:19 +0000 (22:14 +0000)]
shape ops work in progress

first cut at getting binary ops to work
(union/intersection/diff/xor)

git-svn-id: http://skia.googlecode.com/svn/trunk@6375 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agouse SKIRect::centerX,Y
reed@google.com [Fri, 9 Nov 2012 21:59:52 +0000 (21:59 +0000)]
use SKIRect::centerX,Y

git-svn-id: http://skia.googlecode.com/svn/trunk@6374 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoadd explicit mapScalars and mapMScalars entry-points, instead of just map()
reed@google.com [Fri, 9 Nov 2012 21:39:48 +0000 (21:39 +0000)]
add explicit mapScalars and mapMScalars entry-points, instead of just map()

git-svn-id: http://skia.googlecode.com/svn/trunk@6373 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agosimplify macros, since we no longer support scalar == fixed
reed@google.com [Fri, 9 Nov 2012 21:28:55 +0000 (21:28 +0000)]
simplify macros, since we no longer support scalar == fixed

git-svn-id: http://skia.googlecode.com/svn/trunk@6372 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoadd quick-n-dirty test for concat on matrix44
reed@google.com [Fri, 9 Nov 2012 21:25:06 +0000 (21:25 +0000)]
add quick-n-dirty test for concat on matrix44
Review URL: https://codereview.appspot.com/6827069

git-svn-id: http://skia.googlecode.com/svn/trunk@6371 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoWhen looking for the head table directory entry, compare against the current entry...
bungeman@google.com [Fri, 9 Nov 2012 17:07:42 +0000 (17:07 +0000)]
When looking for the head table directory entry, compare against the current entry and not the name table entry.

git-svn-id: http://skia.googlecode.com/svn/trunk@6368 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoreport max pixel error on failure, rather than the hex of the first mismatched pixel
reed@google.com [Fri, 9 Nov 2012 14:51:18 +0000 (14:51 +0000)]
report max pixel error on failure, rather than the hex of the first mismatched pixel
Review URL: https://codereview.appspot.com/6826080

git-svn-id: http://skia.googlecode.com/svn/trunk@6365 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoadd entry-point to SkMaskFilter to fast-path rectangles.
reed@google.com [Fri, 9 Nov 2012 14:30:48 +0000 (14:30 +0000)]
add entry-point to SkMaskFilter to fast-path rectangles.
have blurmaskfilter override this new method.

#define SK_IGNORE_FAST_BLURRECT if you want to disable this (not sure if we'll need this)
Review URL: https://codereview.appspot.com/6815087

git-svn-id: http://skia.googlecode.com/svn/trunk@6363 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Fri, 9 Nov 2012 02:01:24 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@6362 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoAdds a file for revision annotations on dashboard.
bensong@google.com [Fri, 9 Nov 2012 02:00:03 +0000 (02:00 +0000)]
Adds a file for revision annotations on dashboard.

git-svn-id: http://skia.googlecode.com/svn/trunk@6361 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoadd centerX() and centerY() to SkIRect (because they made me)
reed@google.com [Thu, 8 Nov 2012 22:36:19 +0000 (22:36 +0000)]
add centerX() and centerY() to SkIRect (because they made me)
Review URL: https://codereview.appspot.com/6826078

git-svn-id: http://skia.googlecode.com/svn/trunk@6360 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agouse DEF_BENCH to simplify lots of registrations
reed@google.com [Thu, 8 Nov 2012 20:51:57 +0000 (20:51 +0000)]
use DEF_BENCH to simplify lots of registrations

git-svn-id: http://skia.googlecode.com/svn/trunk@6358 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoFix texture domain clipping assertion. It is OK to have a degenerate domain.
bsalomon@google.com [Thu, 8 Nov 2012 20:32:13 +0000 (20:32 +0000)]
Fix texture domain clipping assertion. It is OK to have a degenerate domain.
Review URL: https://codereview.appspot.com/6812101

git-svn-id: http://skia.googlecode.com/svn/trunk@6356 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoApply intersect rects to earlier clip elements and skip rects when possible.
bsalomon@google.com [Thu, 8 Nov 2012 15:30:53 +0000 (15:30 +0000)]
Apply intersect rects to earlier clip elements and skip rects when possible.

R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6814105

git-svn-id: http://skia.googlecode.com/svn/trunk@6351 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoUpdate WIC Image decoder to unpremul colors before save
robertphillips@google.com [Thu, 8 Nov 2012 15:06:52 +0000 (15:06 +0000)]
Update WIC Image decoder to unpremul colors before save

https://codereview.appspot.com/6826069/

git-svn-id: http://skia.googlecode.com/svn/trunk@6349 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoUpdate SampleApp to handle PNG encoded skps
robertphillips@google.com [Thu, 8 Nov 2012 13:46:32 +0000 (13:46 +0000)]
Update SampleApp to handle PNG encoded skps

https://codereview.appspot.com/6816105/

git-svn-id: http://skia.googlecode.com/svn/trunk@6347 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Thu, 8 Nov 2012 02:03:56 +0000 (02:03 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@6344 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoFix for Chrome mac_gpu compiler failure
robertphillips@google.com [Thu, 8 Nov 2012 00:38:22 +0000 (00:38 +0000)]
Fix for Chrome mac_gpu compiler failure

unreviewed

git-svn-id: http://skia.googlecode.com/svn/trunk@6343 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoAdd Git support to the simple rebaseline tool. Do SVN commands only in an svn checkout.
senorblanco@chromium.org [Wed, 7 Nov 2012 22:32:12 +0000 (22:32 +0000)]
Add Git support to the simple rebaseline tool.  Do SVN commands only in an svn checkout.

Review URL: https://codereview.appspot.com/6814099

git-svn-id: http://skia.googlecode.com/svn/trunk@6341 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agocheck to see if CGImage already knows if we're opaque
reed@google.com [Wed, 7 Nov 2012 22:06:55 +0000 (22:06 +0000)]
check to see if CGImage already knows if we're opaque
Review URL: https://codereview.appspot.com/6838043

git-svn-id: http://skia.googlecode.com/svn/trunk@6340 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoCombine multiple intersecting rects in SkClipStack::Iter.
bsalomon@google.com [Wed, 7 Nov 2012 21:19:10 +0000 (21:19 +0000)]
Combine multiple intersecting rects in SkClipStack::Iter.

R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6816104

git-svn-id: http://skia.googlecode.com/svn/trunk@6339 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoWhitespace change to trigger bots after r6337
borenet@google.com [Wed, 7 Nov 2012 21:18:59 +0000 (21:18 +0000)]
Whitespace change to trigger bots after r6337

git-svn-id: http://skia.googlecode.com/svn/trunk@6338 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoCG imagedecoder never sets isOpaque, so add method to SkBitmap to compute that,
reed@google.com [Wed, 7 Nov 2012 18:30:18 +0000 (18:30 +0000)]
CG imagedecoder never sets isOpaque, so add method to SkBitmap to compute that,
and call it from CG imagedecoder.
Review URL: https://codereview.appspot.com/6816101

git-svn-id: http://skia.googlecode.com/svn/trunk@6334 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoAdd a new PictureRenderer that draws the picture then breaks up into tiles.
scroggo@google.com [Wed, 7 Nov 2012 18:01:46 +0000 (18:01 +0000)]
Add a new PictureRenderer that draws the picture then breaks up into tiles.

Review URL: https://codereview.appspot.com/6820103

git-svn-id: http://skia.googlecode.com/svn/trunk@6333 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoAdd an option to render_pictures to rerecord the pictures with PNG encoded bitmaps.
scroggo@google.com [Wed, 7 Nov 2012 17:52:48 +0000 (17:52 +0000)]
Add an option to render_pictures to rerecord the pictures with PNG encoded bitmaps.

Review URL: https://codereview.appspot.com/6821092

git-svn-id: http://skia.googlecode.com/svn/trunk@6332 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoUnit testing for SkTileGrid
junov@chromium.org [Wed, 7 Nov 2012 17:38:38 +0000 (17:38 +0000)]
Unit testing for SkTileGrid
Review URL: https://codereview.appspot.com/6827053

git-svn-id: http://skia.googlecode.com/svn/trunk@6331 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoAdd low blur and AAClip options to picture bench.
caryclark@google.com [Wed, 7 Nov 2012 16:42:17 +0000 (16:42 +0000)]
Add low blur and AAClip options to picture bench.

Copy the settings instead of pointing to the
original set on the stack.
Review URL: https://codereview.appspot.com/6818103

git-svn-id: http://skia.googlecode.com/svn/trunk@6330 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoSome improvements to reduce the number of pixels touched in generating alpha clip...
bsalomon@google.com [Wed, 7 Nov 2012 16:17:24 +0000 (16:17 +0000)]
Some improvements to reduce the number of pixels touched in generating alpha clip masks
Review URL: https://codereview.appspot.com/6828043

git-svn-id: http://skia.googlecode.com/svn/trunk@6329 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoAdd temporary interfaces in blur and clip to
caryclark@google.com [Wed, 7 Nov 2012 14:54:49 +0000 (14:54 +0000)]
Add temporary interfaces in blur and clip to
permit testing if it is to our advantage
to selectively disable soft clipping and
high quality blurs during animations.
Review URL: https://codereview.appspot.com/6812092

git-svn-id: http://skia.googlecode.com/svn/trunk@6328 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agofix SkRegion::intersects(rect) where the part of the rgn that we intersect is
reed@google.com [Wed, 7 Nov 2012 14:23:42 +0000 (14:23 +0000)]
fix SkRegion::intersects(rect) where the part of the rgn that we intersect is
the last run. The old bug was that we did an early exit from the loop because
we were comparing against the next rgn.bottom, instead of the current one.

inspired and fixed by danakj http://code.google.com/p/skia/issues/detail?id=958
Review URL: https://codereview.appspot.com/6812099

git-svn-id: http://skia.googlecode.com/svn/trunk@6327 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoConvert clipPaths to clipRects where possible in pictureRecord
robertphillips@google.com [Wed, 7 Nov 2012 13:01:25 +0000 (13:01 +0000)]
Convert clipPaths to clipRects where possible in pictureRecord

https://codereview.appspot.com/6820104/

git-svn-id: http://skia.googlecode.com/svn/trunk@6325 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agofix SkRegion::contains(rect), thanks to danakj and http://code.google.com/p/skia...
mike@reedtribe.org [Wed, 7 Nov 2012 03:39:46 +0000 (03:39 +0000)]
fix SkRegion::contains(rect), thanks to danakj and code.google.com/p/skia/issues/detail?id=958

git-svn-id: http://skia.googlecode.com/svn/trunk@6324 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoadd SkRegion tests, inspired by http://code.google.com/p/skia/issues/detail?id=958
mike@reedtribe.org [Wed, 7 Nov 2012 01:57:32 +0000 (01:57 +0000)]
add SkRegion tests, inspired by code.google.com/p/skia/issues/detail?id=958

git-svn-id: http://skia.googlecode.com/svn/trunk@6323 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoDecode images during deserialization in the picture debugger.
scroggo@google.com [Tue, 6 Nov 2012 23:10:09 +0000 (23:10 +0000)]
Decode images during deserialization in the picture debugger.

Necessary now that our checked in SKPs have encoded bitmaps in them (since https://code.google.com/p/skia/source/detail?r=6317)

Review URL: https://codereview.appspot.com/6812093

git-svn-id: http://skia.googlecode.com/svn/trunk@6322 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoinclude SkPaint.h
reed@google.com [Tue, 6 Nov 2012 22:14:54 +0000 (22:14 +0000)]
include SkPaint.h

git-svn-id: http://skia.googlecode.com/svn/trunk@6321 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoadd more utilities: roundIn(), offsetTo()
reed@google.com [Tue, 6 Nov 2012 22:02:51 +0000 (22:02 +0000)]
add more utilities: roundIn(), offsetTo()

git-svn-id: http://skia.googlecode.com/svn/trunk@6320 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoleading character accidentally deleted on merge
caryclark@google.com [Tue, 6 Nov 2012 21:29:16 +0000 (21:29 +0000)]
leading character accidentally deleted on merge

git-svn-id: http://skia.googlecode.com/svn/trunk@6319 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoadd draw filter option to picture_bench
caryclark@google.com [Tue, 6 Nov 2012 21:26:13 +0000 (21:26 +0000)]
add draw filter option to picture_bench

Option allows adding a draw filter option per type
or for all types. All SkPaint flags may be filtered,
plus disabling blur and setting the hint level.
Review URL: https://codereview.appspot.com/6816092

git-svn-id: http://skia.googlecode.com/svn/trunk@6318 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoBreak out SkOffsetImageFilter into its own file, and derive it from
senorblanco@chromium.org [Tue, 6 Nov 2012 20:29:39 +0000 (20:29 +0000)]
Break out SkOffsetImageFilter into its own file, and derive it from
SkSingleInputImageFilter, to make it DAG-friendly.

Review URL: https://codereview.appspot.com/6822086

git-svn-id: http://skia.googlecode.com/svn/trunk@6315 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoAdding SkTileGrid: a new subclass of BBoxHierarchy, optimized for tiled playback.
junov@chromium.org [Tue, 6 Nov 2012 18:58:43 +0000 (18:58 +0000)]
Adding SkTileGrid: a new subclass of BBoxHierarchy, optimized for tiled playback.
Review URL: https://codereview.appspot.com/6820093

git-svn-id: http://skia.googlecode.com/svn/trunk@6314 2bbb7eff-a529-9590-31e7-b0007b416f81