platform/upstream/libSkiaSharp.git
12 years agofix mac warnings
caryclark@google.com [Wed, 23 Nov 2011 14:54:19 +0000 (14:54 +0000)]
fix mac warnings
http://codereview.appspot.com/5431053/

M    include/views/SkOSWindow_Mac.h
M    src/utils/mac/SkNSView.mm
M    src/utils/mac/SkNSView.h
M    src/utils/mac/SkOSWindow_Mac.mm
M    src/utils/mac/SkSampleNSView.h

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

12 years agoadd test that aaclip.setRegion creates the same mask as the region
mike@reedtribe.org [Wed, 23 Nov 2011 03:12:58 +0000 (03:12 +0000)]
add test that aaclip.setRegion creates the same mask as the region
... in prep for optimizatin work on setRegion.

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

12 years agoadd SK_OVERRIDE
mike@reedtribe.org [Wed, 23 Nov 2011 02:08:50 +0000 (02:08 +0000)]
add SK_OVERRIDE

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

12 years agoneeds to be rebaselined
reed@google.com [Tue, 22 Nov 2011 20:59:40 +0000 (20:59 +0000)]
needs to be rebaselined

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

12 years agodelete since it needs to be rebaselined
reed@google.com [Tue, 22 Nov 2011 20:56:41 +0000 (20:56 +0000)]
delete since it needs to be rebaselined

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

12 years agoimprove accuracy for luminance coefficients
reed@google.com [Tue, 22 Nov 2011 20:49:22 +0000 (20:49 +0000)]
improve accuracy for luminance coefficients
rebaseline image in response to that.

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

12 years agoremove obsolete assert
reed@google.com [Tue, 22 Nov 2011 20:08:28 +0000 (20:08 +0000)]
remove obsolete assert

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

12 years ago[GPU] Allow kMulRGBByAlpha_InConfigFlag and kSwapRAndB_InConfigFlag to both be set
bsalomon@google.com [Tue, 22 Nov 2011 19:57:18 +0000 (19:57 +0000)]
[GPU] Allow kMulRGBByAlpha_InConfigFlag and kSwapRAndB_InConfigFlag to both be set

Review URL: http://codereview.appspot.com/5433049/

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

12 years agostore 3 bits of luminance, but (for now) discretize that in fonthost::filterec
reed@google.com [Tue, 22 Nov 2011 19:42:41 +0000 (19:42 +0000)]
store 3 bits of luminance, but (for now) discretize that in fonthost::filterec
for backward compatibility

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

12 years agoAdd fractional-radius blurs to blur benchmark.
tomhudson@google.com [Tue, 22 Nov 2011 15:58:06 +0000 (15:58 +0000)]
Add fractional-radius blurs to blur benchmark.
Specialize loops in apply_kernel and apply_kernel_interp,
improving blur benchmark performance by 25%.

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

12 years agoremove GetGammaFlag from SkFontHost
reed@google.com [Tue, 22 Nov 2011 14:20:55 +0000 (14:20 +0000)]
remove GetGammaFlag from SkFontHost
prep for retooling of gamma support

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

12 years agoAdd windowscodecs.lib to images.gyp
bsalomon@google.com [Mon, 21 Nov 2011 21:04:06 +0000 (21:04 +0000)]
Add windowscodecs.lib to images.gyp

Review URL: http://codereview.appspot.com/5422046/

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

12 years agoadd SetFlags for command line control
caryclark@google.com [Mon, 21 Nov 2011 20:42:14 +0000 (20:42 +0000)]
add SetFlags for command line control
http://codereview.appspot.com/5416047/

M    include/core/SkGraphics.h
M    src/core/SkGraphics.cpp

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

12 years agouse a define for the shift amount for the hinting bits
reed@google.com [Mon, 21 Nov 2011 19:46:00 +0000 (19:46 +0000)]
use a define for the shift amount for the hinting bits

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

12 years agoreorder bits and remove obsolete kForceAA experimental bit
reed@google.com [Mon, 21 Nov 2011 19:32:29 +0000 (19:32 +0000)]
reorder bits and remove obsolete kForceAA experimental bit

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

12 years agoensure we never change the text_encoding of the master paint, since it is used
reed@google.com [Mon, 21 Nov 2011 16:42:10 +0000 (16:42 +0000)]
ensure we never change the text_encoding of the master paint, since it is used
to interpret the text/length parameters in draw[Pos]Text.

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

12 years agoAdd support for GL_CHROMIUM_flipy
bsalomon@google.com [Mon, 21 Nov 2011 15:53:13 +0000 (15:53 +0000)]
Add support for GL_CHROMIUM_flipy

Review URL: http://codereview.appspot.com/5413051/

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

12 years agodon't quickReject bitmaps if there is a looper or other possible bounds-modifier
reed@google.com [Mon, 21 Nov 2011 15:16:16 +0000 (15:16 +0000)]
don't quickReject bitmaps if there is a looper or other possible bounds-modifier
add unittest for the above change

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

12 years agoonly call FT_Get_Advance if we really want linear metrics
reed@google.com [Mon, 21 Nov 2011 14:36:57 +0000 (14:36 +0000)]
only call FT_Get_Advance if we really want linear metrics

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

12 years agoassert that resources used with ctx are owned by the ctx
bsalomon@google.com [Sat, 19 Nov 2011 13:56:11 +0000 (13:56 +0000)]
assert that resources used with ctx are owned by the ctx

Review URL: http://codereview.appspot.com/5398042/

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

12 years agoResubmit 2717 w/ fix workaround OS X GL bug.
bsalomon@google.com [Sat, 19 Nov 2011 02:36:05 +0000 (02:36 +0000)]
Resubmit 2717 w/ fix workaround OS X GL bug.

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

12 years agoRevert 2717
bsalomon@google.com [Fri, 18 Nov 2011 21:07:03 +0000 (21:07 +0000)]
Revert 2717

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

12 years agoRecommit r2714 with clip fix
bsalomon@google.com [Fri, 18 Nov 2011 19:57:50 +0000 (19:57 +0000)]
Recommit r2714 with clip fix

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

12 years agouse older, slightly slower, blend math, to retain (mostly) the previous results
reed@google.com [Fri, 18 Nov 2011 18:36:07 +0000 (18:36 +0000)]
use older, slightly slower, blend math, to retain (mostly) the previous results
to minimize rebaselining.

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

12 years agoRevert 2714 for debugging of test failure
bsalomon@google.com [Fri, 18 Nov 2011 18:23:59 +0000 (18:23 +0000)]
Revert 2714 for debugging of test failure

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

12 years agoWrite direct to RT/Tex when possible, use BGRA rather than RGBA intermediate texture...
bsalomon@google.com [Fri, 18 Nov 2011 18:15:42 +0000 (18:15 +0000)]
Write direct to RT/Tex when possible, use BGRA rather than RGBA intermediate texture on ANGLE

Review URL: http://codereview.appspot.com/5417046/

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

12 years agoremove all references to SkGlobals (obsolete)
reed@google.com [Thu, 17 Nov 2011 22:09:47 +0000 (22:09 +0000)]
remove all references to SkGlobals (obsolete)

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

12 years agoremove use of SkGlobals
reed@google.com [Thu, 17 Nov 2011 21:49:02 +0000 (21:49 +0000)]
remove use of SkGlobals

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

12 years agoremove obsolete SK_USE_RUNTIME_GLOBALS
reed@google.com [Thu, 17 Nov 2011 21:35:41 +0000 (21:35 +0000)]
remove obsolete SK_USE_RUNTIME_GLOBALS

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

12 years agoadd commented line to try to add additional warnings
reed@google.com [Thu, 17 Nov 2011 15:35:47 +0000 (15:35 +0000)]
add commented line to try to add additional warnings

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

12 years agouse AsMode instead of deprecated IsMode
mike@reedtribe.org [Thu, 17 Nov 2011 02:32:04 +0000 (02:32 +0000)]
use AsMode instead of deprecated IsMode

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

12 years agoadd test for IsMode
mike@reedtribe.org [Thu, 17 Nov 2011 02:27:26 +0000 (02:27 +0000)]
add test for IsMode

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

12 years agoadd SkXfermode::IsMode() and use that in SkDevice
mike@reedtribe.org [Thu, 17 Nov 2011 02:16:43 +0000 (02:16 +0000)]
add SkXfermode::IsMode() and use that in SkDevice

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

12 years agofix signed/unsigned warning (use size_t in conjunction with SK_ARRAY_COUNT)
reed@google.com [Wed, 16 Nov 2011 21:36:27 +0000 (21:36 +0000)]
fix signed/unsigned warning (use size_t in conjunction with SK_ARRAY_COUNT)

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

12 years agoMake all pixel ops go thru ctx so we can correctly flush. Unify two texture upload...
bsalomon@google.com [Wed, 16 Nov 2011 20:36:03 +0000 (20:36 +0000)]
Make all pixel ops go thru ctx so we can correctly flush. Unify two texture upload code paths.

Review URL: http://codereview.appspot.com/5373108/

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

12 years agopass font size explicitly for leopard
caryclark@google.com [Wed, 16 Nov 2011 18:36:44 +0000 (18:36 +0000)]
pass font size explicitly for leopard
http://codereview.appspot.com/5401043/

M    src/ports/SkFontHost_mac_coretext.cpp

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

12 years agoThis change makes SkImageFilter and SkBlurImageFilter flattenable/unflattenable.
senorblanco@chromium.org [Wed, 16 Nov 2011 18:20:47 +0000 (18:20 +0000)]
This change makes SkImageFilter and SkBlurImageFilter flattenable/unflattenable.

The imageblur test also needed to stop calling getDeviceSize(), since it was
 returning 99999x99999 for the  SkPicture case.

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

12 years agoAdd support in Android for AdvancedTypefaceMetrics
djsollen@google.com [Wed, 16 Nov 2011 17:00:46 +0000 (17:00 +0000)]
Add support in Android for AdvancedTypefaceMetrics
Review URL: http://codereview.appspot.com/5396045

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

12 years agoFix broken Android build.
djsollen@google.com [Wed, 16 Nov 2011 16:57:08 +0000 (16:57 +0000)]
Fix broken Android build.

reviewed by reed.

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

12 years agoupdate ARM platform procs for blitmask
reed@google.com [Wed, 16 Nov 2011 13:54:47 +0000 (13:54 +0000)]
update ARM platform procs for blitmask

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

12 years agoRemove unneeded include which is breaking build.
bungeman@google.com [Tue, 15 Nov 2011 22:30:20 +0000 (22:30 +0000)]
Remove unneeded include which is breaking build.

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

12 years agoAdd paging support for handle based typefaces.
bungeman@google.com [Tue, 15 Nov 2011 22:26:41 +0000 (22:26 +0000)]
Add paging support for handle based typefaces.
http://codereview.appspot.com/5379043/
http://codereview.appspot.com/5364052/

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

12 years agodisable reduced checks if we're not enabling fast shadermask
reed@google.com [Tue, 15 Nov 2011 21:12:30 +0000 (21:12 +0000)]
disable reduced checks if we're not enabling fast shadermask

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

12 years agoneed to opt-in to faster shadermask until chrome can rebaseline
reed@google.com [Tue, 15 Nov 2011 20:49:52 +0000 (20:49 +0000)]
need to opt-in to faster shadermask until chrome can rebaseline
SK_ENABLE_FAST_SHADERMASK

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

12 years agodelete these, as then need to be rebaselined
reed@google.com [Tue, 15 Nov 2011 20:07:11 +0000 (20:07 +0000)]
delete these, as then need to be rebaselined

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

12 years agosupport blitMask+shader natively (1.75x faster for AA, and now we can support
reed@google.com [Tue, 15 Nov 2011 19:51:02 +0000 (19:51 +0000)]
support blitMask+shader natively (1.75x faster for AA, and now we can support
LCD at all with a shader.)

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

12 years agoAdd getContext to GrResouce
bsalomon@google.com [Tue, 15 Nov 2011 19:42:07 +0000 (19:42 +0000)]
Add getContext to GrResouce

http://codereview.appspot.com/5373106/

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

12 years agoRemove allocated size vs content size in textures
bsalomon@google.com [Tue, 15 Nov 2011 16:47:16 +0000 (16:47 +0000)]
Remove allocated size vs content size in textures

Review URL: http://codereview.appspot.com/5373100/

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

12 years agoadd bench for shader+blitMask
reed@google.com [Tue, 15 Nov 2011 15:29:45 +0000 (15:29 +0000)]
add bench for shader+blitMask

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

12 years agorename/refactor in preparation for supporting accelerated blits of shader-output
reed@google.com [Mon, 14 Nov 2011 21:56:45 +0000 (21:56 +0000)]
rename/refactor in preparation for supporting accelerated blits of shader-output
through a mask.

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

12 years agosuppress warnings on clang
caryclark@google.com [Mon, 14 Nov 2011 21:48:46 +0000 (21:48 +0000)]
suppress warnings on clang
http://codereview.appspot.com/5372101

M    src/ports/SkFontHost_mac_coretext.cpp

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

12 years agoRemove GL functions only used in fixed pipe
bsalomon@google.com [Mon, 14 Nov 2011 20:17:05 +0000 (20:17 +0000)]
Remove GL functions only used in fixed pipe

Review URL: http://codereview.appspot.com/5374084/

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

12 years agosupportsES() -> supportsES2() in asserts
bsalomon@google.com [Mon, 14 Nov 2011 19:35:08 +0000 (19:35 +0000)]
supportsES() -> supportsES2() in asserts

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

12 years agofix autobounds dude to call a custom version of rect.join that doesn't ignore
reed@google.com [Mon, 14 Nov 2011 19:34:57 +0000 (19:34 +0000)]
fix autobounds dude to call a custom version of rect.join that doesn't ignore
empty rects (since path.bounds must be the bounds of its control-pts, including
empty subcontours)

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

12 years agoRemove GrGpuGLFixed subclass and ES1 support
bsalomon@google.com [Mon, 14 Nov 2011 19:29:53 +0000 (19:29 +0000)]
Remove GrGpuGLFixed subclass and ES1 support

Review URL: http://codereview.appspot.com/5376094/

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

12 years agoadd test for bounds (disabled as it fails)
reed@google.com [Mon, 14 Nov 2011 19:29:14 +0000 (19:29 +0000)]
add test for bounds (disabled as it fails)

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

12 years agoimprove validate to check for empty rects, since contains always returns false
reed@google.com [Mon, 14 Nov 2011 18:13:59 +0000 (18:13 +0000)]
improve validate to check for empty rects, since contains always returns false
if either rect is empty.

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

12 years agoNew SkMutex benchmark - used when we suspected mutex performance issues;
tomhudson@google.com [Mon, 14 Nov 2011 17:30:08 +0000 (17:30 +0000)]
New SkMutex benchmark - used when we suspected mutex performance issues;
committed not because they're a bottleneck now but because we might do
something with them in the future & it's quite lightweight.

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

12 years agocheck for null on Lion
caryclark@google.com [Mon, 14 Nov 2011 13:46:33 +0000 (13:46 +0000)]
check for null on Lion
http://codereview.appspot.com/5369107/

M    src/ports/SkFontHost_mac_coretext.cpp

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

12 years agoadd test for bad scanconversion (disabled)
reed@google.com [Mon, 14 Nov 2011 13:14:58 +0000 (13:14 +0000)]
add test for bad scanconversion (disabled)

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

12 years agoreorder template functions so it compiles in Lion
reed@google.com [Mon, 14 Nov 2011 13:12:47 +0000 (13:12 +0000)]
reorder template functions so it compiles in Lion

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

12 years agorebaseline for gpu changes
reed@google.com [Mon, 14 Nov 2011 13:10:33 +0000 (13:10 +0000)]
rebaseline for gpu changes

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

12 years agoland http://codereview.appspot.com/5244058/ - add matrix to SkView
reed@google.com [Fri, 11 Nov 2011 21:42:12 +0000 (21:42 +0000)]
land codereview.appspot.com/5244058/ - add matrix to SkView

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

12 years agorecord doAA param for clipRect and clipPath in pictures
reed@google.com [Fri, 11 Nov 2011 21:34:54 +0000 (21:34 +0000)]
record doAA param for clipRect and clipPath in pictures

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

12 years agoDo writepixels alpha-premul using gpu
bsalomon@google.com [Fri, 11 Nov 2011 19:46:16 +0000 (19:46 +0000)]
Do writepixels alpha-premul using gpu

Review URL: http://codereview.appspot.com/5373064/

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

12 years ago[PDF] Optimize W-array generation with respect to subsetted fonts and add test.
vandebo@chromium.org [Fri, 11 Nov 2011 19:38:54 +0000 (19:38 +0000)]
[PDF] Optimize W-array generation with respect to subsetted fonts and add test.

Testing framework originally from http://codereview.appspot.com/4916044

Review URL: http://codereview.appspot.com/5379041

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

12 years agoAdd default param to SkDevice::writePixels b/c WK is relying on old signature. (Funct...
bsalomon@google.com [Thu, 10 Nov 2011 22:34:56 +0000 (22:34 +0000)]
Add default param to SkDevice::writePixels b/c WK is relying on old signature. (Function will be made protected once WK calls the Canvas version)

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

12 years agoFilter out draws to non-PMA configs that won't blend correctly
bsalomon@google.com [Thu, 10 Nov 2011 22:16:06 +0000 (22:16 +0000)]
Filter out draws to non-PMA configs that won't blend correctly

Review URL: http://codereview.appspot.com/5376059/

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

12 years agoHold onto scratch texture until end of readRenderTargetPixels
bsalomon@google.com [Thu, 10 Nov 2011 21:56:21 +0000 (21:56 +0000)]
Hold onto scratch texture until end of readRenderTargetPixels

Review URL: http://codereview.appspot.com/5369065/

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

12 years agoTurn off WritePixelsTest in fixed pt build (GPU device known not to work, no plan...
bsalomon@google.com [Thu, 10 Nov 2011 21:20:37 +0000 (21:20 +0000)]
Turn off WritePixelsTest in fixed pt build (GPU device known not to work, no plan to fix)

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

12 years agoAdd config8888 support to writePixels
bsalomon@google.com [Thu, 10 Nov 2011 20:57:43 +0000 (20:57 +0000)]
Add config8888 support to writePixels

Review URL: http://codereview.appspot.com/5374052/

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

12 years agoadd test gm for vertical text
reed@google.com [Thu, 10 Nov 2011 20:06:01 +0000 (20:06 +0000)]
add test gm for vertical text

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

12 years agohave paint's measure calls respect vertical
reed@google.com [Thu, 10 Nov 2011 20:04:47 +0000 (20:04 +0000)]
have paint's measure calls respect vertical

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

12 years agoadd vertical text support in mac port
caryclark@google.com [Thu, 10 Nov 2011 19:38:32 +0000 (19:38 +0000)]
add vertical text support in mac port
http://codereview.appspot.com/5375053

M    src/ports/SkFontHost_mac_coretext.cpp

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

12 years agoFix convert to bool warning in VS
bsalomon@google.com [Thu, 10 Nov 2011 15:28:16 +0000 (15:28 +0000)]
Fix convert to bool warning in VS
http://codereview.appspot.com/5371051/

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

12 years agoadd vertical-text bit to paint (not supported yet)
reed@google.com [Thu, 10 Nov 2011 15:20:49 +0000 (15:20 +0000)]
add vertical-text bit to paint (not supported yet)
check-point for using freetype on mac (not enabled yet)

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

12 years agoFix return value in read pixels unit test
bsalomon@google.com [Thu, 10 Nov 2011 15:10:24 +0000 (15:10 +0000)]
Fix return value in read pixels unit test

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

12 years agoadd initial gyp to build freetype lib (problems with cflags not showing up in xcode)
reed@google.com [Thu, 10 Nov 2011 15:00:52 +0000 (15:00 +0000)]
add initial gyp to build freetype lib (problems with cflags not showing up in xcode)

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

12 years agoAdd support for GL_EXT_unpack_subimage
bsalomon@google.com [Thu, 10 Nov 2011 14:54:14 +0000 (14:54 +0000)]
Add support for GL_EXT_unpack_subimage

Review URL: http://codereview.appspot.com/5359048/

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

12 years agoFixes int to scalar warnings. This checkin changes the range of random matrix values...
bsalomon@google.com [Thu, 10 Nov 2011 13:50:19 +0000 (13:50 +0000)]
Fixes int to scalar warnings. This checkin changes the range of random matrix values in a benchmark but it is believed not to affect the runtime.

Review URL: http://codereview.appspot.com/5371045/

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

12 years agoremove common fields from Offscreen utility class
caryclark@google.com [Thu, 10 Nov 2011 13:37:48 +0000 (13:37 +0000)]
remove common fields from Offscreen utility class
http://codereview.appspot.com/5373046/

M    src/ports/SkFontHost_mac_coretext.cpp

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

12 years agoRemoves warnings generated by gcc and clang.
tomhudson@google.com [Wed, 9 Nov 2011 22:15:08 +0000 (22:15 +0000)]
Removes warnings generated by gcc and clang.

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

12 years agochange m to f
caryclark@google.com [Wed, 9 Nov 2011 21:00:43 +0000 (21:00 +0000)]
change m to f
http://codereview.appspot.com/5376043/

M    src/ports/SkFontHost_mac_coretext.cpp

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

12 years agoNew baseline images for GPU blurs and shadows, to greenify bots after r2643.
epoger@google.com [Wed, 9 Nov 2011 18:27:09 +0000 (18:27 +0000)]
New baseline images for GPU blurs and shadows, to greenify bots after r2643.

BUG=391
TBR=senorblanco
Review URL: http://codereview.appspot.com/5370044

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

12 years agoadd experimental test for blending math (disabled for now)
reed@google.com [Wed, 9 Nov 2011 17:12:08 +0000 (17:12 +0000)]
add experimental test for blending math (disabled for now)

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

12 years agoBuild fix; unreviewed.
senorblanco@chromium.org [Wed, 9 Nov 2011 17:02:15 +0000 (17:02 +0000)]
Build fix; unreviewed.

Remove the imageblur test from gmslides.gypi for now, since SkPicture output
is incorrect.  SkImageFilter is not flattenable, so the output is black.

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

12 years agoSpeed up GrDrawState handling.
tomhudson@google.com [Wed, 9 Nov 2011 16:39:17 +0000 (16:39 +0000)]
Speed up GrDrawState handling.
Compact GrDrawState and nested structs; dynamically only copy and compare
the fields actually active on the structs in question.
Yields 10-20% speedup of text benchmarks in GPU configuration.

Could probably get additional marginal speedup by ignoring unused
kernel fields.
Has some fragile constructs: pointer math on members to compute
sizes of portions of structs.
Removes fields necessary for GrTesselatedPathRenderer.

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

12 years agoImplement Gaussian blurs for images. The caller creates an an
senorblanco@chromium.org [Wed, 9 Nov 2011 16:05:58 +0000 (16:05 +0000)]
Implement Gaussian blurs for images.  The caller creates an an
SkBlurImageFilter, sets it on an SkPaint, passes that paint to saveLayer(),
draws the primitives which are to be blurred, then calls restore(), which
applies the blur.  The blurs have separate sizes in the horizontal and vertical
direction.  This feature is GPU-only for now.

NB:  Due to the clipping change, there are slight pixel differences on the
blurs_gpu and shadows_gpu tests, so those will require rebaselining on all
platforms, as will some of the WebKit layout tests (TBD).

Review URL:  http://codereview.appspot.com/5322068/

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

12 years agoInterim function for reseting GrDrawTarget state, this should be folded into GrDrawSt...
bsalomon@google.com [Wed, 9 Nov 2011 15:32:29 +0000 (15:32 +0000)]
Interim function for reseting GrDrawTarget state, this should be folded into GrDrawState when it has getters / setters

Review URL: http://codereview.appspot.com/5369045/

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

12 years agowhitespace commit to trigger linux build
epoger@google.com [Wed, 9 Nov 2011 15:23:41 +0000 (15:23 +0000)]
whitespace commit to trigger linux build

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

12 years ago[GPU] when writing to unpremult dest and alpha is 0, make rgb=0
bsalomon@google.com [Wed, 9 Nov 2011 14:14:38 +0000 (14:14 +0000)]
[GPU] when writing to unpremult dest and alpha is 0, make rgb=0

Review URL: http://codereview.appspot.com/5340062/

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

12 years agoNew baseline images for r2638
epoger@google.com [Wed, 9 Nov 2011 13:35:17 +0000 (13:35 +0000)]
New baseline images for r2638

TBR=vandebo
Review URL: http://codereview.appspot.com/5369044

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

12 years ago[PDF] add drawTextOnPath support.
vandebo@chromium.org [Tue, 8 Nov 2011 23:42:53 +0000 (23:42 +0000)]
[PDF] add drawTextOnPath support.

BUG=239
TBR=reed@google.com

Review URL: http://codereview.appspot.com/5363045

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

12 years agowhitespace commit to trigger buildbots
epoger@google.com [Tue, 8 Nov 2011 21:28:15 +0000 (21:28 +0000)]
whitespace commit to trigger buildbots

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

12 years agowhitespace commit to trigger buildbots
epoger@google.com [Tue, 8 Nov 2011 21:09:31 +0000 (21:09 +0000)]
whitespace commit to trigger buildbots

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

12 years agowhitespace commit to trigger buildbots
epoger@google.com [Tue, 8 Nov 2011 21:02:58 +0000 (21:02 +0000)]
whitespace commit to trigger buildbots

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

12 years agouse new PurgeFontCache() api
reed@google.com [Tue, 8 Nov 2011 20:03:48 +0000 (20:03 +0000)]
use new PurgeFontCache() api

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

12 years agohandle NaN values in clipPath
reed@google.com [Tue, 8 Nov 2011 19:41:23 +0000 (19:41 +0000)]
handle NaN values in clipPath

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

12 years agoWhen GL_RGBA readPixels are slow do swizzle using a draw then readPixels with GL_BGRA
bsalomon@google.com [Tue, 8 Nov 2011 19:20:57 +0000 (19:20 +0000)]
When GL_RGBA readPixels are slow do swizzle using a draw then readPixels with GL_BGRA

Review URL: http://codereview.appspot.com/5339051/

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

12 years agoCleanup for the Android build.
djsollen@google.com [Tue, 8 Nov 2011 19:03:43 +0000 (19:03 +0000)]
Cleanup for the Android build.

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