platform/upstream/libSkiaSharp.git
13 years ago[GPU] tile when large bitmap pased drawBitmap and only a small fraction is used
bsalomon@google.com [Wed, 30 Nov 2011 14:13:48 +0000 (14:13 +0000)]
[GPU] tile when large bitmap pased drawBitmap and only a small fraction is used

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

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

13 years agospeedup AAClip::setRegion (n^2 to n)
reed@google.com [Mon, 28 Nov 2011 19:54:56 +0000 (19:54 +0000)]
speedup AAClip::setRegion (n^2 to n)
add bench for setRegion

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

13 years agoadd bytes() to SkTDArray, which returns the number of bytes in the array,
reed@google.com [Mon, 28 Nov 2011 19:54:12 +0000 (19:54 +0000)]
add bytes() to SkTDArray, which returns the number of bytes in the array,
as opposed to count() which returns the number of elements.

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

13 years agoAdd missing return statement.
bsalomon@google.com [Mon, 28 Nov 2011 18:49:37 +0000 (18:49 +0000)]
Add missing return statement.

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

13 years agoDetect teximage2d failure
bsalomon@google.com [Mon, 28 Nov 2011 18:34:44 +0000 (18:34 +0000)]
Detect teximage2d failure

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

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

13 years agoUnroll loops in SkBlurMask for speedup on Windows (benchmarks should see
tomhudson@google.com [Mon, 28 Nov 2011 18:22:01 +0000 (18:22 +0000)]
Unroll loops in SkBlurMask for speedup on Windows (benchmarks should see
15% on interpolated blurs, 5-10% on simple blurs).

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

13 years agofix copy/paste error in LCD16 masks: mask type needed to be uint16_t
reed@google.com [Mon, 28 Nov 2011 16:32:01 +0000 (16:32 +0000)]
fix copy/paste error in LCD16 masks: mask type needed to be uint16_t

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

13 years agoadd test for shader text w/ and w/o lcd (and w/ and w/o opaque)
reed@google.com [Mon, 28 Nov 2011 16:31:28 +0000 (16:31 +0000)]
add test for shader text w/ and w/o lcd (and w/ and w/o opaque)

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

13 years agocall getSaveCount inside restoreToCount, in case it goes virtual...
reed@google.com [Mon, 28 Nov 2011 16:09:24 +0000 (16:09 +0000)]
call getSaveCount inside restoreToCount, in case it goes virtual...

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

13 years agoadd unittest for save/restore
reed@google.com [Mon, 28 Nov 2011 16:06:04 +0000 (16:06 +0000)]
add unittest for save/restore

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

13 years agomove variable declarations above goto lines, to fix warning/error about
reed@google.com [Mon, 28 Nov 2011 15:30:28 +0000 (15:30 +0000)]
move variable declarations above goto lines, to fix warning/error about
skipping over them.

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

13 years agoseparate declaration from impl for overrides, so we can declare some of
reed@google.com [Mon, 28 Nov 2011 15:26:14 +0000 (15:26 +0000)]
separate declaration from impl for overrides, so we can declare some of
the parameters as SK_RESTRICT w/o generate a warning about a mismatch
with the base class parameters (which don't mention restrict).

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

13 years agodefine SK_OVERRIDE based on windows compiler, not windows platform (for mingw)
reed@google.com [Mon, 28 Nov 2011 15:25:12 +0000 (15:25 +0000)]
define SK_OVERRIDE based on windows compiler, not windows platform (for mingw)

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

13 years agoFix mac debug asserts
bsalomon@google.com [Wed, 23 Nov 2011 21:58:39 +0000 (21:58 +0000)]
Fix mac debug asserts

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

13 years agoFix build
bsalomon@google.com [Wed, 23 Nov 2011 21:33:11 +0000 (21:33 +0000)]
Fix build

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

13 years agoAdd hints for static analysis about when we intend to crash
bsalomon@google.com [Wed, 23 Nov 2011 21:25:35 +0000 (21:25 +0000)]
Add hints for static analysis about when we intend to crash

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

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

13 years agomore rgn==aaclip tests
reed@google.com [Wed, 23 Nov 2011 19:43:46 +0000 (19:43 +0000)]
more rgn==aaclip tests

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

13 years agoFix clang static analyzer errors in Gr
bsalomon@google.com [Wed, 23 Nov 2011 16:53:42 +0000 (16:53 +0000)]
Fix clang static analyzer errors in Gr

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

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

13 years agoadd test for drawPosText, to measure any difference it introduces given that
reed@google.com [Wed, 23 Nov 2011 15:52:02 +0000 (15:52 +0000)]
add test for drawPosText, to measure any difference it introduces given that
it has to transform each char's position (unlike drawText)

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

13 years agoFix warnings
bsalomon@google.com [Wed, 23 Nov 2011 15:01:08 +0000 (15:01 +0000)]
Fix warnings

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

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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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