platform/upstream/libSkiaSharp.git
12 years agoMake GrDrawState a real class with getters and setters
bsalomon@google.com [Thu, 8 Dec 2011 15:53:53 +0000 (15:53 +0000)]
Make GrDrawState a real class with getters and setters
Review URL: http://codereview.appspot.com/5448119/

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

12 years agoAdd missing interfaces for Android
djsollen@google.com [Thu, 8 Dec 2011 15:07:09 +0000 (15:07 +0000)]
Add missing interfaces for Android
Review URL: http://codereview.appspot.com/5463048

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

12 years agoDon't verify PMA in writePixels
bsalomon@google.com [Thu, 8 Dec 2011 15:03:28 +0000 (15:03 +0000)]
Don't verify PMA in writePixels

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

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

12 years agoMake GrGLShaderVar objects aware of whether they are uniform, varying, or
tomhudson@google.com [Thu, 8 Dec 2011 14:44:10 +0000 (14:44 +0000)]
Make GrGLShaderVar objects aware of whether they are uniform, varying, or
attribute varibles. Extract GLSL generation enum and utility function into
new GrGLSL header.

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

12 years agouse dithered gradients by default
reed@google.com [Thu, 8 Dec 2011 14:14:02 +0000 (14:14 +0000)]
use dithered gradients by default

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

12 years agoMake update-doxygen.sh upload docs to http://code.google.com/p/skia-autogen
epoger@google.com [Wed, 7 Dec 2011 18:52:40 +0000 (18:52 +0000)]
Make update-doxygen.sh upload docs to code.google.com/p/skia-autogen
(and fix mime-type propset bug)

Once this is committed, I will remove the doxygen docs from the skia repo.
Review URL: http://codereview.appspot.com/5452072

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

12 years agoadd SK_OVERRIDE, move subclass impls of virtuals into .cpp
reed@google.com [Wed, 7 Dec 2011 18:34:08 +0000 (18:34 +0000)]
add SK_OVERRIDE, move subclass impls of virtuals into .cpp

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

12 years agofix win compile: sure wish SK_OVERRIDE was testable on mac build
reed@google.com [Wed, 7 Dec 2011 15:30:34 +0000 (15:30 +0000)]
fix win compile: sure wish SK_OVERRIDE was testable on mac build

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

12 years agoadd SK_OVERRIDEs
reed@google.com [Wed, 7 Dec 2011 15:17:50 +0000 (15:17 +0000)]
add SK_OVERRIDEs

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

12 years agoadd SK_OVERRIDEs, move impl of virtuals into .cpp
reed@google.com [Wed, 7 Dec 2011 15:07:23 +0000 (15:07 +0000)]
add SK_OVERRIDEs, move impl of virtuals into .cpp

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

12 years agoAdd method to GrGLShadeVar to create GLSL string accessing an element
tomhudson@google.com [Wed, 7 Dec 2011 15:06:29 +0000 (15:06 +0000)]
Add method to GrGLShadeVar to create GLSL string accessing an element
of an array.
codereview.appspot.com/5437149/

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

12 years agoadd more SK_OVERRIDEs
reed@google.com [Wed, 7 Dec 2011 14:59:50 +0000 (14:59 +0000)]
add more SK_OVERRIDEs
update dox for SkEmptyShader

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

12 years agodon't specify default parameter values when overriding a method
reed@google.com [Wed, 7 Dec 2011 14:46:39 +0000 (14:46 +0000)]
don't specify default parameter values when overriding a method

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

12 years agoadd baselines (pdf failed, so don't commit)
reed@google.com [Tue, 6 Dec 2011 20:53:47 +0000 (20:53 +0000)]
add baselines (pdf failed, so don't commit)

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

12 years agoadd baselines
reed@google.com [Tue, 6 Dec 2011 20:49:27 +0000 (20:49 +0000)]
add baselines

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

12 years agorename sk_float_isNaN to sk_float_isnan to match related functions
reed@google.com [Tue, 6 Dec 2011 20:18:05 +0000 (20:18 +0000)]
rename sk_float_isNaN to sk_float_isnan to match related functions
add sk_float_isinf returning non-zero if the argument is +/- infinity

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

12 years agoFix SkGLContext FBO setup for ES2
bsalomon@google.com [Tue, 6 Dec 2011 19:54:37 +0000 (19:54 +0000)]
Fix SkGLContext FBO setup for ES2

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

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

12 years agorename hasValidCoordinates to isFinite (on SkRect) and reimplement for speed
reed@google.com [Tue, 6 Dec 2011 18:56:37 +0000 (18:56 +0000)]
rename hasValidCoordinates to isFinite (on SkRect) and reimplement for speed

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

12 years agoPrep for GrDrawState as a class Part 2
bsalomon@google.com [Tue, 6 Dec 2011 16:30:36 +0000 (16:30 +0000)]
Prep for GrDrawState as a class Part 2

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

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

12 years agoadd getBGColor() getter
reed@google.com [Tue, 6 Dec 2011 16:15:42 +0000 (16:15 +0000)]
add getBGColor() getter

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

12 years agoPrep #1 for making GrDrawState a class
bsalomon@google.com [Tue, 6 Dec 2011 15:32:52 +0000 (15:32 +0000)]
Prep #1 for making GrDrawState a class

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

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

12 years agoCreate update-doxygen script that generates and uploads docs
epoger@google.com [Tue, 6 Dec 2011 14:52:38 +0000 (14:52 +0000)]
Create update-doxygen script that generates and uploads docs
(but only causes an SVN commit if any documentation actually changed).
Review URL: http://codereview.appspot.com/5440109

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

12 years agoRemove fConfig/fFormat union in GrTextureDesc
bsalomon@google.com [Tue, 6 Dec 2011 14:46:34 +0000 (14:46 +0000)]
Remove fConfig/fFormat union in GrTextureDesc

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

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

12 years agoadd bench for computing isfinite of 4 values (targeted for SkRect)
reed@google.com [Mon, 5 Dec 2011 21:53:22 +0000 (21:53 +0000)]
add bench for computing isfinite of 4 values (targeted for SkRect)

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

12 years agomake _isnan windows specific
reed@google.com [Mon, 5 Dec 2011 21:51:36 +0000 (21:51 +0000)]
make _isnan windows specific

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

12 years agoadd sk_float_isfinite to mask platform differences
reed@google.com [Mon, 5 Dec 2011 21:47:25 +0000 (21:47 +0000)]
add sk_float_isfinite to mask platform differences

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

12 years agoadd test for isFinite
reed@google.com [Mon, 5 Dec 2011 20:49:37 +0000 (20:49 +0000)]
add test for isFinite

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

12 years agoAdd README file for base-macpro baseline images
epoger@google.com [Mon, 5 Dec 2011 17:02:10 +0000 (17:02 +0000)]
Add README file for base-macpro baseline images
Review URL: http://codereview.appspot.com/5448108

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

12 years agoRemove directories of baseline images that we don't maintain
epoger@google.com [Mon, 5 Dec 2011 15:56:18 +0000 (15:56 +0000)]
Remove directories of baseline images that we don't maintain

Also renaming "base" as "base-macpro" to be more descriptive.
I will add a base-macpro/README file in a subsequent CL (I fear what might
happen if I try to do that in the same CL as the directory rename).
Review URL: http://codereview.appspot.com/5440104

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

12 years agoCopying in all _gpu.png actual images generated by buildbots running GM.
epoger@google.com [Mon, 5 Dec 2011 14:06:14 +0000 (14:06 +0000)]
Copying in all _gpu.png actual images generated by buildbots running GM.
Review URL: http://codereview.appspot.com/5449074

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

12 years agoChanges to the android gyp system to build without RTTI and exceptions.
djsollen@google.com [Mon, 5 Dec 2011 13:55:55 +0000 (13:55 +0000)]
Changes to the android gyp system to build without RTTI and exceptions.
Review URL: http://codereview.appspot.com/5437089

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

12 years agoWhen a bitmap is texture-backed, change SkBitmap::copyTo() to do a deep
senorblanco@chromium.org [Fri, 2 Dec 2011 19:11:17 +0000 (19:11 +0000)]
When a bitmap is texture-backed, change SkBitmap::copyTo() to do a deep
copy of the texels in VRAM rather than a readback and re-upload.  This
gives a 3-10X speedup on recursive canvas-to-canvas draws.

N.B.:  This introduces a new GM test, which will need new baselines.

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

12 years agoMinor Doxyfile updates
epoger@google.com [Fri, 2 Dec 2011 17:13:36 +0000 (17:13 +0000)]
Minor Doxyfile updates

BUG=404
Review URL: http://codereview.appspot.com/5434108

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

12 years agorebaseline for gpu
reed@google.com [Thu, 1 Dec 2011 21:57:25 +0000 (21:57 +0000)]
rebaseline for gpu

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

12 years agorevert 2783 -- broke debug gm
reed@google.com [Thu, 1 Dec 2011 21:47:26 +0000 (21:47 +0000)]
revert 2783 -- broke debug gm

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

12 years agoNew function SkBlitter::blitAntiRect(); specifically accelerated for
tomhudson@google.com [Thu, 1 Dec 2011 21:09:00 +0000 (21:09 +0000)]
New function SkBlitter::blitAntiRect(); specifically accelerated for
supersampled antialiased clips.

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

12 years agoDoxygen configuration file, documentation and minor cleanup on blitters.
tomhudson@google.com [Thu, 1 Dec 2011 20:41:24 +0000 (20:41 +0000)]
Doxygen configuration file, documentation and minor cleanup on blitters.

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

12 years agowhitespace commit to trigger windows build
epoger@google.com [Thu, 1 Dec 2011 17:45:28 +0000 (17:45 +0000)]
whitespace commit to trigger windows build

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

12 years agoFix Paint == comparison on Android.
djsollen@google.com [Thu, 1 Dec 2011 17:09:21 +0000 (17:09 +0000)]
Fix Paint == comparison on Android.

The == operator was incorrect because of Androids use of
fGenerationID. This change moves the ID to the end of the
paint struct and omits it from the == comparison.
Review URL: http://codereview.appspot.com/5437098

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

12 years agoremove SkOSWindow_Win.cpp (has been replaced by SkOSWindow_win.cpp [lowercase w])
bsalomon@google.com [Thu, 1 Dec 2011 16:52:08 +0000 (16:52 +0000)]
remove SkOSWindow_Win.cpp (has been replaced by SkOSWindow_win.cpp [lowercase w])

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

12 years agoRemove suffixes from SK_wGL macros
bsalomon@google.com [Thu, 1 Dec 2011 16:50:24 +0000 (16:50 +0000)]
Remove suffixes from SK_wGL macros

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

12 years agoAdd SkWGLExtensionInterface for dealing with WGL extensions
bsalomon@google.com [Thu, 1 Dec 2011 16:34:28 +0000 (16:34 +0000)]
Add SkWGLExtensionInterface for dealing with WGL extensions
Review URL: http://codereview.appspot.com/5447059

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

12 years agoMove SkGLCanvas.h to obsolete, delete from gyp
bsalomon@google.com [Thu, 1 Dec 2011 15:47:23 +0000 (15:47 +0000)]
Move SkGLCanvas.h to obsolete, delete from gyp

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

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

12 years agoadd 2nd _ to __OpenBSD_
reed@google.com [Wed, 30 Nov 2011 20:44:25 +0000 (20:44 +0000)]
add 2nd _ to __OpenBSD_

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

12 years agoAdd support for GL_ANGLE_pack_reverse_row_order
bsalomon@google.com [Wed, 30 Nov 2011 19:59:08 +0000 (19:59 +0000)]
Add support for GL_ANGLE_pack_reverse_row_order

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

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

12 years agohandle if unflattening returned a null shader
reed@google.com [Wed, 30 Nov 2011 19:17:15 +0000 (19:17 +0000)]
handle if unflattening returned a null shader

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

12 years agoRebaseline mac gpu images
bsalomon@google.com [Wed, 30 Nov 2011 18:45:23 +0000 (18:45 +0000)]
Rebaseline mac gpu images

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

12 years agoRemove more failing gpu baselines on linux
bsalomon@google.com [Wed, 30 Nov 2011 18:40:09 +0000 (18:40 +0000)]
Remove more failing gpu baselines on linux

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

12 years agoreplacing Gr* with Sk* in SkTArray.h
junov@chromium.org [Wed, 30 Nov 2011 18:35:19 +0000 (18:35 +0000)]
replacing Gr* with Sk* in SkTArray.h

REVIEW=http://codereview.appspot.com/5447053/

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

12 years agoTemporarily remove failing linux gpu baselines.
bsalomon@google.com [Wed, 30 Nov 2011 18:23:34 +0000 (18:23 +0000)]
Temporarily remove failing linux gpu baselines.

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

12 years agoTemporarily remove windows gpu baselines that need new images.
bsalomon@google.com [Wed, 30 Nov 2011 18:10:33 +0000 (18:10 +0000)]
Temporarily remove windows gpu baselines that need new images.

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

12 years agoMake skdiff robust to image size differences: if the two image sizes differ,
tomhudson@google.com [Wed, 30 Nov 2011 17:01:00 +0000 (17:01 +0000)]
Make skdiff robust to image size differences: if the two image sizes differ,
report that fact explicitly, record 100% pixel difference, and don't try to
generate a valid delta image.

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

12 years agoFix issue where bumping the max gm width/height affects gpu images
bsalomon@google.com [Wed, 30 Nov 2011 16:57:21 +0000 (16:57 +0000)]
Fix issue where bumping the max gm width/height affects gpu images

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

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

12 years agoadd baselines
reed@google.com [Wed, 30 Nov 2011 15:35:30 +0000 (15:35 +0000)]
add baselines

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

12 years agoAdd more Unix platforms on which Skia for Chromium has been built,
reed@google.com [Wed, 30 Nov 2011 15:27:30 +0000 (15:27 +0000)]
Add more Unix platforms on which Skia for Chromium has been built,
this patch was tested on FreeBSD, Solaris, NetBSD, and DragonFly BSD.

http://codereview.chromium.org/8672011/

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

12 years agoupdate verttext to remove leading space from image name
reed@google.com [Wed, 30 Nov 2011 14:58:16 +0000 (14:58 +0000)]
update verttext to remove leading space from image name
add mac-desktop baseline images

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

12 years agofix lcd16_shader_blend math
reed@google.com [Wed, 30 Nov 2011 14:49:24 +0000 (14:49 +0000)]
fix lcd16_shader_blend math

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

12 years agoenable shadermask optimization all the time
reed@google.com [Wed, 30 Nov 2011 14:29:55 +0000 (14:29 +0000)]
enable shadermask optimization all the time
update gm for shadermask
fix bugs in lcd_blend math

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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

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