schenney@chromium.org [Tue, 20 Dec 2011 16:33:30 +0000 (16:33 +0000)]
Fixing PathTest. It was always broken in the convexity test code due
to a failure to correctly use SkScalar.
git-svn-id: http://skia.googlecode.com/svn/trunk@2904
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 20 Dec 2011 16:19:00 +0000 (16:19 +0000)]
initial impl of SkImageFilters : virtual signature will change!
Do not invest too much in other subclasses until this API solidifies.
git-svn-id: http://skia.googlecode.com/svn/trunk@2903
2bbb7eff-a529-9590-31e7-
b0007b416f81
schenney@chromium.org [Tue, 20 Dec 2011 15:33:11 +0000 (15:33 +0000)]
Fixing the build for FIXED tests. PathTest was incorrect using "1" instead of "SK_Scalar1".
git-svn-id: http://skia.googlecode.com/svn/trunk@2902
2bbb7eff-a529-9590-31e7-
b0007b416f81
schenney@chromium.org [Tue, 20 Dec 2011 15:14:18 +0000 (15:14 +0000)]
Modifying SkPath to store all verbs provided by the user, and to give
correct results for all stroke and fill modes even on the various types
of degenerate paths.
The goals of this patch include:
1. Have Skia store all of the verbs implied by path construction methods, even
if those define degenerate paths. The SVG implementation in WebKit, which is
backed by Skia, needs to know about all elements of the path, even degenerate
ones, for the correct drawing of markers and line caps. For example, in SVG you
should be able to draw a scatter plot by specifying a marker for vertices and
then giving a sequence of moveTo commands. Skia will not store the moveTos,
requiring a different storage mechanism.
2. Assuming 1, maintain the current Skia behavior. That is, make Skia robust to
degenerate paths.
3. Fix an existing bug in Skia where a degenerate moveTo-lineTo pair spits out
warnings from rasterization and produces incorrect results in inverse-fill
renderings.
4. Adds extensive testing for degenerate paths and path rendering in general.
To meet these goals, the patch I am proposing will result in minor additional
storage for degenerate paths (a few bytes per degenerate path, only if the user
defines such paths). There is also some additional overhead in the iteration
code, with the path now cleaned to remove degenerate segments as part of the
iteration process. I suspect this will also fix issues with computing normal
vectors to degenerate segments. Benchmarking suggests that this change may
result in slightly (< 1%) slower path drawing due to the checks for
degeneracy. This overhead could be removed (in fact, a significant speedup
could occur) if the results of iterating to clean up the path were cached.
This would cost memory, of course, and quite a bit of it.
BUG=398
TEST=tests/PathTest.cpp
gm/cubicpaths.cpp
gm/degeneratesegments.cpp
gm/movepaths.cpp
gm/linepaths.cpp
gm/quadpaths.cpp
Review URL: http://codereview.appspot.com/5482051
git-svn-id: http://skia.googlecode.com/svn/trunk@2901
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 20 Dec 2011 14:35:32 +0000 (14:35 +0000)]
can't pass const to setPixels :(
git-svn-id: http://skia.googlecode.com/svn/trunk@2900
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 20 Dec 2011 14:34:31 +0000 (14:34 +0000)]
whitespace change to tri
gger buildbots
git-svn-id: http://skia.googlecode.com/svn/trunk@2899
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 20 Dec 2011 13:41:09 +0000 (13:41 +0000)]
defer creating offscreen until our first draw (so our constructor runs fast)
git-svn-id: http://skia.googlecode.com/svn/trunk@2898
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Mon, 19 Dec 2011 20:26:22 +0000 (20:26 +0000)]
Commit base-macmini-lion-float gm baselines that are similar to those in base-macpro
Review URL: http://codereview.appspot.com/5491076
git-svn-id: http://skia.googlecode.com/svn/trunk@2897
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Mon, 19 Dec 2011 16:09:26 +0000 (16:09 +0000)]
partial fix for vertical text on Lion
M src/ports/SkFontHost_mac_coretext.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@2896
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 16 Dec 2011 20:53:22 +0000 (20:53 +0000)]
sk_float_round isn't a function, so call this instead: sk_float_floor((x) + 0.5f)
git-svn-id: http://skia.googlecode.com/svn/trunk@2895
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 16 Dec 2011 20:48:49 +0000 (20:48 +0000)]
add baselines
git-svn-id: http://skia.googlecode.com/svn/trunk@2894
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 16 Dec 2011 20:44:03 +0000 (20:44 +0000)]
add baselines
git-svn-id: http://skia.googlecode.com/svn/trunk@2893
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 16 Dec 2011 20:37:19 +0000 (20:37 +0000)]
Delete temporary files I accidentally committed previously
git-svn-id: http://skia.googlecode.com/svn/trunk@2892
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 16 Dec 2011 20:34:11 +0000 (20:34 +0000)]
remove obsolete printf
git-svn-id: http://skia.googlecode.com/svn/trunk@2891
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 16 Dec 2011 20:26:32 +0000 (20:26 +0000)]
GM baselines that we already had for SnowLeopard, and are identical in Lion.
Review URL: http://codereview.appspot.com/5489068
git-svn-id: http://skia.googlecode.com/svn/trunk@2890
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 16 Dec 2011 17:56:23 +0000 (17:56 +0000)]
change typeface::purgeall to not assume that the array is empty, as it may
contain typefaces that still are referenced.
change SkTypeface::UniqueID to internally hold onto a reference to the default
typeface, so that it will always be available if the font cache tries to resolve
it. Then general rule being: if we have a fontID specified by SkPaint, then its
associated typeface object must be alive.
git-svn-id: http://skia.googlecode.com/svn/trunk@2889
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Fri, 16 Dec 2011 17:11:17 +0000 (17:11 +0000)]
cleanup font purging functions
M include/core/SkGraphics.h
M src/core/SkGraphics.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@2887
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Fri, 16 Dec 2011 16:54:07 +0000 (16:54 +0000)]
fix debug comment
M src/core/SkPixelRef.cpp
M src/core/SkFlattenable.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@2886
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 15 Dec 2011 20:28:00 +0000 (20:28 +0000)]
whitespace commit to trigger buildbots
git-svn-id: http://skia.googlecode.com/svn/trunk@2885
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@chromium.org [Thu, 15 Dec 2011 20:14:06 +0000 (20:14 +0000)]
Exposing the isImmutable/setImmutable API of SkPixelRef in SkBitmap
REVIEW=http://codereview.appspot.com/5491055/
git-svn-id: http://skia.googlecode.com/svn/trunk@2883
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 15 Dec 2011 19:51:05 +0000 (19:51 +0000)]
GCC requires reinterpret_cast rather than static_cast to cast to privately inherited subclass
git-svn-id: http://skia.googlecode.com/svn/trunk@2882
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 15 Dec 2011 19:47:46 +0000 (19:47 +0000)]
Make GrStencilState a class to enable future optimizations
Review URL: http://codereview.appspot.com/5492047/
git-svn-id: http://skia.googlecode.com/svn/trunk@2881
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 15 Dec 2011 18:43:40 +0000 (18:43 +0000)]
whitespace commit to trigger android buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@2880
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 15 Dec 2011 16:58:19 +0000 (16:58 +0000)]
Compile time vertex layout masks
Review URL: http://codereview.appspot.com/5493049/
git-svn-id: http://skia.googlecode.com/svn/trunk@2878
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Thu, 15 Dec 2011 16:16:22 +0000 (16:16 +0000)]
Fix android build and cleanup references to SkMMapStream
Review URL: http://codereview.appspot.com/5489050
git-svn-id: http://skia.googlecode.com/svn/trunk@2877
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Thu, 15 Dec 2011 14:16:43 +0000 (14:16 +0000)]
add optional manual global initialization
M include/effects/SkAvoidXfermode.h
M include/effects/SkDiscretePathEffect.h
M include/effects/Sk1DPathEffect.h
M include/effects/Sk2DPathEffect.h
M include/effects/SkBlurDrawLooper.h
M include/effects/SkPixelXorXfermode.h
M include/effects/SkDashPathEffect.h
M include/effects/SkColorMatrixFilter.h
M include/effects/SkEmbossMaskFilter.h
M include/effects/SkLayerDrawLooper.h
M include/effects/SkGroupShape.h
M include/effects/SkBlurImageFilter.h
M include/effects/SkRectShape.h
A include/effects/SkEffects.h
M include/effects/SkCornerPathEffect.h
M include/effects/SkGradientShader.h
M include/effects/SkBlurMaskFilter.h
M include/effects/SkLayerRasterizer.h
M include/core/SkMallocPixelRef.h
M include/core/SkFlattenable.h
M include/core/SkShape.h
M include/core/SkPixelRef.h
M include/core/SkGraphics.h
M include/core/SkPathEffect.h
M include/core/SkPostConfig.h
M include/core/SkXfermode.h
M include/core/SkColorFilter.h
M include/images/SkFlipPixelRef.h
M include/images/SkImageRef_GlobalPool.h
M src/effects/SkDashPathEffect.cpp
M src/effects/SkColorMatrixFilter.cpp
M src/effects/SkBlurImageFilter.cpp
M src/effects/SkGroupShape.cpp
M src/effects/SkCornerPathEffect.cpp
M src/effects/SkGradientShader.cpp
M src/effects/SkBlurMaskFilter.cpp
M src/effects/SkAvoidXfermode.cpp
M src/effects/Sk2DPathEffect.cpp
M src/effects/SkBlurDrawLooper.cpp
M src/effects/SkPixelXorXfermode.cpp
M src/effects/SkColorFilters.cpp
M src/effects/SkLayerDrawLooper.cpp
M src/effects/SkRectShape.cpp
A src/effects/SkEffects.cpp
M src/effects/SkLayerRasterizer.cpp
M src/effects/SkDiscretePathEffect.cpp
M src/effects/Sk1DPathEffect.cpp
A src/effects/SkEffects_none.cpp
M src/core/SkPixelRef.cpp
M src/core/SkGraphics.cpp
M src/core/SkFlattenable.cpp
M src/core/SkBitmapProcShader.h
M src/core/SkPathEffect.cpp
M src/core/SkShape.cpp
M src/core/SkXfermode.cpp
M src/core/SkMallocPixelRef.cpp
M src/core/SkBitmapProcShader.cpp
M src/images/SkFlipPixelRef.cpp
M src/images/SkImageRef_GlobalPool.cpp
A src/ports/SkGlobalInitialization_chromium.cpp
M src/ports/SkImageRef_ashmem.h
M src/ports/SkImageRef_ashmem.cpp
A src/ports/SkGlobalInitialization_default.cpp
M gyp/effects.gyp
M gyp/tools.gyp
M gyp/ports.gyp
git-svn-id: http://skia.googlecode.com/svn/trunk@2876
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 14 Dec 2011 18:48:05 +0000 (18:48 +0000)]
add canvas::isDrawingToLayer(), as a fast query for chrome; faster than
setting up a drawiter and counting the layers.
git-svn-id: http://skia.googlecode.com/svn/trunk@2875
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Wed, 14 Dec 2011 17:12:04 +0000 (17:12 +0000)]
move ports into its own gyp file
git-svn-id: http://skia.googlecode.com/svn/trunk@2874
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 14 Dec 2011 15:58:11 +0000 (15:58 +0000)]
Revert r2872
git-svn-id: http://skia.googlecode.com/svn/trunk@2873
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 14 Dec 2011 15:34:33 +0000 (15:34 +0000)]
two loops for setting stage descs
Review URL: http://codereview.appspot.com/5486054/
git-svn-id: http://skia.googlecode.com/svn/trunk@2872
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 14 Dec 2011 14:44:19 +0000 (14:44 +0000)]
reset cpu shadow of vertex buffer to our usual vb size
Review URL: reset cpu shadow of vertex buffer to our usual vb size
git-svn-id: http://skia.googlecode.com/svn/trunk@2871
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 13 Dec 2011 18:40:47 +0000 (18:40 +0000)]
Skip flush functions for disabled stages
Review URL: http://codereview.appspot.com/5483061
git-svn-id: http://skia.googlecode.com/svn/trunk@2870
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 13 Dec 2011 16:49:49 +0000 (16:49 +0000)]
Make null gl a top level config in bench
Review URL: http://codereview.appspot.com/5484052/
git-svn-id: http://skia.googlecode.com/svn/trunk@2867
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 13 Dec 2011 14:55:10 +0000 (14:55 +0000)]
whitespace commit to try performance graph upload
git-svn-id: http://skia.googlecode.com/svn/trunk@2866
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 12 Dec 2011 22:35:18 +0000 (22:35 +0000)]
Use a stack variable for hash computation in GrBinHashKey
Review URL: http://codereview.appspot.com/5484054/
git-svn-id: http://skia.googlecode.com/svn/trunk@2863
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 12 Dec 2011 22:15:18 +0000 (22:15 +0000)]
fix positioning for scalar=fixed, still need to fix actual mode
git-svn-id: http://skia.googlecode.com/svn/trunk@2862
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 12 Dec 2011 22:01:06 +0000 (22:01 +0000)]
try to make it draw correctly in fixed point
git-svn-id: http://skia.googlecode.com/svn/trunk@2860
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 12 Dec 2011 21:57:03 +0000 (21:57 +0000)]
skip paint->drawstate sampler copies when there is no texture
Review URL: http://codereview.appspot.com/5484053/
git-svn-id: http://skia.googlecode.com/svn/trunk@2859
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 12 Dec 2011 21:52:18 +0000 (21:52 +0000)]
check for empty glyph run and exit early if so.
git-svn-id: http://skia.googlecode.com/svn/trunk@2858
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Mon, 12 Dec 2011 21:18:20 +0000 (21:18 +0000)]
whitespace commit to try performance graph upload
git-svn-id: http://skia.googlecode.com/svn/trunk@2857
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 12 Dec 2011 20:42:26 +0000 (20:42 +0000)]
Don't update vertex/index buffer twice!
Review URL: http://codereview.appspot.com/5483053/
git-svn-id: http://skia.googlecode.com/svn/trunk@2855
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 12 Dec 2011 18:45:07 +0000 (18:45 +0000)]
Access sampler matrices directly, cleanup GrSamplerState::reset()s
Review URL: http://codereview.appspot.com/5488048/
git-svn-id: http://skia.googlecode.com/svn/trunk@2854
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 12 Dec 2011 18:34:01 +0000 (18:34 +0000)]
Fix int->float conversion warning in VS2010
git-svn-id: http://skia.googlecode.com/svn/trunk@2853
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 12 Dec 2011 16:11:33 +0000 (16:11 +0000)]
Remove GrDrawState::setSampler, use direct access to sampler
Review URL: http://codereview.appspot.com/5476052/
git-svn-id: http://skia.googlecode.com/svn/trunk@2852
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 12 Dec 2011 16:10:08 +0000 (16:10 +0000)]
Remove static initiazled gClampNearest in gpu backend
Review URL: http://codereview.appspot.com/5487044/
git-svn-id: http://skia.googlecode.com/svn/trunk@2851
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Mon, 12 Dec 2011 15:16:37 +0000 (15:16 +0000)]
whitespace commit to trigger windows build
git-svn-id: http://skia.googlecode.com/svn/trunk@2850
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Sat, 10 Dec 2011 19:36:56 +0000 (19:36 +0000)]
add first cut at arithmetic mode
git-svn-id: http://skia.googlecode.com/svn/trunk@2849
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 9 Dec 2011 21:23:46 +0000 (21:23 +0000)]
Fix inverse union complex clip stencil rules, skip screen filling rectangles
Review URL: http://codereview.appspot.com/5480054/
git-svn-id: http://skia.googlecode.com/svn/trunk@2848
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Fri, 9 Dec 2011 21:19:38 +0000 (21:19 +0000)]
Closing fd for mmap after mapping succeeds.
Review URL: http://codereview.appspot.com/5467058
git-svn-id: http://skia.googlecode.com/svn/trunk@2847
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 9 Dec 2011 19:50:48 +0000 (19:50 +0000)]
Use : as separator between "GM" and slide name in SampleApp. This makes it easier to jump to a GM slide using command line args on windows.
git-svn-id: http://skia.googlecode.com/svn/trunk@2846
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 9 Dec 2011 19:40:36 +0000 (19:40 +0000)]
Add support for GL_ANGLE_texture_usage
Review URL: http://codereview.appspot.com/5478052/
git-svn-id: http://skia.googlecode.com/svn/trunk@2845
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 9 Dec 2011 18:41:34 +0000 (18:41 +0000)]
use uploadTexData() to create init textures w/out data, and restore pixelstorei state on failure
Review URL: http://codereview.appspot.com/5467053/
git-svn-id: http://skia.googlecode.com/svn/trunk@2844
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 9 Dec 2011 16:14:25 +0000 (16:14 +0000)]
Add back compressed image upload (accidently removed in earlier refactor)
Review URL: http://codereview.appspot.com/5468043/
git-svn-id: http://skia.googlecode.com/svn/trunk@2843
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 9 Dec 2011 16:10:24 +0000 (16:10 +0000)]
roll more changes from r2830 back in
git-svn-id: http://skia.googlecode.com/svn/trunk@2842
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 9 Dec 2011 15:55:34 +0000 (15:55 +0000)]
Cleanup of r2830.
git-svn-id: http://skia.googlecode.com/svn/trunk@2841
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@chromium.org [Fri, 9 Dec 2011 15:48:03 +0000 (15:48 +0000)]
Adding isOpaque method to skia shader classes
REVIEW=http://codereview.appspot.com/5451102/
TEST=unit test ShaderOpacity
git-svn-id: http://skia.googlecode.com/svn/trunk@2840
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 8 Dec 2011 19:36:00 +0000 (19:36 +0000)]
install drawfilter for the picture playback as well
git-svn-id: http://skia.googlecode.com/svn/trunk@2839
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 8 Dec 2011 17:24:44 +0000 (17:24 +0000)]
revert 2826, restore option for non-dithered gradients (used by chrome)
git-svn-id: http://skia.googlecode.com/svn/trunk@2836
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 8 Dec 2011 16:28:16 +0000 (16:28 +0000)]
delete baselines from obsolete test
git-svn-id: http://skia.googlecode.com/svn/trunk@2835
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 8 Dec 2011 16:26:13 +0000 (16:26 +0000)]
new baselines for new tests
- gpu fails bw and aa, so its not being added
- pdf fails aa, so its not being added
git-svn-id: http://skia.googlecode.com/svn/trunk@2834
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 8 Dec 2011 16:18:29 +0000 (16:18 +0000)]
change to complexclip_bw and complexclip_aa, adding more combinations as well
git-svn-id: http://skia.googlecode.com/svn/trunk@2833
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 8 Dec 2011 16:12:03 +0000 (16:12 +0000)]
Revert 2830 and 2831.
git-svn-id: http://skia.googlecode.com/svn/trunk@2832
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 8 Dec 2011 16:08:58 +0000 (16:08 +0000)]
Fix assert
git-svn-id: http://skia.googlecode.com/svn/trunk@2831
2bbb7eff-a529-9590-31e7-
b0007b416f81
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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