caryclark@google.com
8f3c44aeeb
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
2011-12-19 16:09:26 +00:00
reed@google.com
838e866289
remove obsolete printf
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2891 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-12-16 20:34:11 +00:00
reed@google.com
538f784e3d
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
2011-12-16 17:56:23 +00:00
caryclark@google.com
f86ab8472e
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
2011-12-16 17:11:17 +00:00
caryclark@google.com
9245498e40
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
2011-12-16 16:54:07 +00:00
junov@chromium.org
b052129a41
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
2011-12-15 20:14:06 +00:00
bsalomon@google.com
c315aeb480
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
2011-12-15 19:51:05 +00:00
bsalomon@google.com
6b2445eb15
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
2011-12-15 19:47:46 +00:00
bsalomon@google.com
35ff38458b
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
2011-12-15 16:58:19 +00:00
caryclark@google.com
d26147adbb
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
2011-12-15 14:16:43 +00:00
reed@google.com
7c2029367c
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
2011-12-14 18:48:05 +00:00
bsalomon@google.com
88939aee05
Revert r2872
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2873 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-12-14 15:58:11 +00:00
bsalomon@google.com
9a4c389258
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
2011-12-14 15:34:33 +00:00
bsalomon@google.com
987dbc08d8
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
2011-12-14 14:44:19 +00:00
bsalomon@google.com
40d9293b62
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
2011-12-13 18:40:47 +00:00
bsalomon@google.com
6b5fdc1bcf
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
2011-12-12 22:35:18 +00:00
bsalomon@google.com
f864ec467d
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
2011-12-12 21:57:03 +00:00
reed@google.com
089130c24e
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
2011-12-12 21:52:18 +00:00
bsalomon@google.com
71bd1ef280
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
2011-12-12 20:42:26 +00:00
bsalomon@google.com
aa814fe4a1
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
2011-12-12 18:45:07 +00:00
bsalomon@google.com
1e266f8ff2
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
2011-12-12 16:11:33 +00:00
bsalomon@google.com
1fadb20c50
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
2011-12-12 16:10:08 +00:00
mike@reedtribe.org
e51755fc64
add first cut at arithmetic mode
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2849 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-12-10 19:36:56 +00:00
bsalomon@google.com
6b20c2ded4
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
2011-12-09 21:23:46 +00:00
djsollen@google.com
59204b4813
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
2011-12-09 21:19:38 +00:00
bsalomon@google.com
07dd2bfd74
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
2011-12-09 19:40:36 +00:00
bsalomon@google.com
b1d14fd63d
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
2011-12-09 18:41:34 +00:00
bsalomon@google.com
32e4d2aa48
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
2011-12-09 16:14:25 +00:00
bsalomon@google.com
6b67e21b65
roll more changes from r2830 back in
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2842 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-12-09 16:10:24 +00:00
bsalomon@google.com
8f9cbd62ec
Cleanup of r2830.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2841 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-12-09 15:55:34 +00:00
junov@chromium.org
b6e161937b
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
2011-12-09 15:48:03 +00:00
reed@google.com
0e734bdc42
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
2011-12-08 17:24:44 +00:00
bsalomon@google.com
3d0835b6ac
Revert 2830 and 2831.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2832 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-12-08 16:12:03 +00:00
bsalomon@google.com
321795e102
Fix assert
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2831 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-12-08 16:08:58 +00:00
bsalomon@google.com
0fec61d19c
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
2011-12-08 15:53:53 +00:00
djsollen@google.com
590e798617
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
2011-12-08 15:07:09 +00:00
bsalomon@google.com
5194e1507d
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
2011-12-08 15:03:28 +00:00
tomhudson@google.com
086e5354fe
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
2011-12-08 14:44:10 +00:00
reed@google.com
88ca1b4102
use dithered gradients by default
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2826 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-12-08 14:14:02 +00:00
reed@google.com
982cb875f0
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
2011-12-07 18:34:08 +00:00
reed@google.com
8e6d914b87
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
2011-12-07 15:30:34 +00:00
reed@google.com
7716afbb97
add SK_OVERRIDEs
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2820 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-12-07 15:17:50 +00:00
reed@google.com
75d939b549
add SK_OVERRIDEs, move impl of virtuals into .cpp
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2819 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-12-07 15:07:23 +00:00
tomhudson@google.com
da668988e9
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
2011-12-07 15:06:29 +00:00
reed@google.com
59ccef695c
add more SK_OVERRIDEs
...
update dox for SkEmptyShader
git-svn-id: http://skia.googlecode.com/svn/trunk@2817 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-12-07 14:59:50 +00:00
bsalomon@google.com
675c5c4303
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
2011-12-06 19:54:37 +00:00
reed@google.com
1607863b60
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
2011-12-06 18:56:37 +00:00
bsalomon@google.com
9791291347
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
2011-12-06 16:30:36 +00:00
bsalomon@google.com
39ee0ffa72
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
2011-12-06 15:32:52 +00:00
bsalomon@google.com
5bc34f04fe
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
2011-12-06 14:46:34 +00:00