reed@android.com
b3ade9d1b0
add optional Format* parameter to decoder helper functions.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@215 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-15 13:04:45 +00:00
reed@android.com
5119bdb952
add shader flag kConstInY_Flag
...
this signals blitters that the shader will return the same results for a given
x value, independent of y. Useful inside blitRect(), where it can cache the
first call to shadeSpan() and reuse it on all subsequent scans. Works with
(non-rotated) linear-gradients, and Nx1 bitmaps.
git-svn-id: http://skia.googlecode.com/svn/trunk@214 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-12 21:27:03 +00:00
reed@android.com
b2c5f2d260
make the same prerounding fix for the shadeSpan16 case
...
git-svn-id: http://skia.googlecode.com/svn/trunk@213 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-12 20:09:24 +00:00
reed@android.com
c552a43c7f
preround our fx fractional coordiante, so we get rounded integers (0..255) when
...
stepping through the gradient.
git-svn-id: http://skia.googlecode.com/svn/trunk@212 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-12 20:02:50 +00:00
reed@android.com
b34086a37f
add experimental state tracker for opengl
...
git-svn-id: http://skia.googlecode.com/svn/trunk@211 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-12 19:49:30 +00:00
reed@android.com
f16c899a74
add equals()
...
git-svn-id: http://skia.googlecode.com/svn/trunk@210 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-12 02:06:36 +00:00
deanm@chromium.org
1220e1c28a
Some Linux / 64-bit compile fixes.
...
Review URL: http://codereview.appspot.com/63189
git-svn-id: http://skia.googlecode.com/svn/trunk@209 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-11 12:26:47 +00:00
reed@android.com
00dae86f58
checkpoint for golden master suite (gm)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@208 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-10 15:38:48 +00:00
reed@android.com
199f108f14
only call SkDevice::gainFocus() if we're actually drawing to a different device.
...
Saves overhead when using GL.
git-svn-id: http://skia.googlecode.com/svn/trunk@207 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-10 02:12:47 +00:00
reed@android.com
829c83c7c9
fix odd-pixel bug in mipmap downsamplers (thanks brett)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@204 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-08 12:05:31 +00:00
reed@android.com
bbff1d507a
add SkParsePath to go to/from SVG strings (e.g. "M0,0 L10,20")
...
git-svn-id: http://skia.googlecode.com/svn/trunk@203 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-05 16:21:03 +00:00
reed@android.com
ec3d6e5a2f
update for cache updates
...
git-svn-id: http://skia.googlecode.com/svn/trunk@202 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-05 14:43:55 +00:00
reed@android.com
9b46e77ec2
fix dumpcanvas to recurse on pictures and shapes
...
add cached bitmap for gradients to avoid thrashing textures in gl
git-svn-id: http://skia.googlecode.com/svn/trunk@201 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-05 12:24:41 +00:00
deanm@chromium.org
1599a4332a
Replace nil -> NULL in the views code.
...
Review URL: http://codereview.appspot.com/67139
git-svn-id: http://skia.googlecode.com/svn/trunk@200 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-04 15:37:11 +00:00
reed@android.com
6b82d1adc6
add isConvex() hit to SkPath, to be used to speed up fills and opengl
...
set linewidth in gldevice for hair rects
remove some cruft from samples
add more gl-unimpl messages
git-svn-id: http://skia.googlecode.com/svn/trunk@199 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-03 02:35:01 +00:00
reed@android.com
4a7fd2bd27
initialize fFlags in gradients
...
fix trailing WS in SkGLDevice
git-svn-id: http://skia.googlecode.com/svn/trunk@198 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-02 19:46:20 +00:00
reed@android.com
9e0c2fcdaf
fix break in setConfig() where we always reset the bitmap
...
remove use of non-standard ssize_t in SkSfntUtils.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@197 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-02 18:54:28 +00:00
agl@chromium.org
6b8cb256e6
Style only change to make SkBitmap to make it build with VC2005.
...
TBR=reed
git-svn-id: http://skia.googlecode.com/svn/trunk@196 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-01 23:52:37 +00:00
reed@android.com
daa200eba2
add unimpl macro to help track bugs
...
git-svn-id: http://skia.googlecode.com/svn/trunk@195 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-01 21:18:36 +00:00
reed@android.com
24cfaa7751
update includes for android for gl backend
...
git-svn-id: http://skia.googlecode.com/svn/trunk@194 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-01 19:48:56 +00:00
agl@chromium.org
af59d51206
fontconfig: allow fallback for certain magical font names.
...
http://codereview.appspot.com/63169
http://code.google.com/p/chromium/issues/detail?id=10665
Patch-by: Evan Martin
git-svn-id: http://skia.googlecode.com/svn/trunk@193 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-06-01 19:20:38 +00:00
reed@android.com
44a6312cf6
call notifyPixelsChanged() when the pages are flipped in pageflippixelref
...
update samples
git-svn-id: http://skia.googlecode.com/svn/trunk@192 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-30 02:40:28 +00:00
reed@android.com
89bb83abb4
fix trailing-ws
...
initialize fFlags in bitmapprocshader
git-svn-id: http://skia.googlecode.com/svn/trunk@191 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-29 21:30:42 +00:00
reed@android.com
25fc5b9f0a
update SDL port to support OpenGL
...
need to separate out SK_BUILD_FOR_MAC when we need to know where certain OS
headers are, and SK_BUILD_FOR_SDL when we are choosing an SkOSWindow variant...
git-svn-id: http://skia.googlecode.com/svn/trunk@190 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-29 03:40:05 +00:00
reed@android.com
88c2d8ef15
animate matrixref in sample shapes
...
git-svn-id: http://skia.googlecode.com/svn/trunk@189 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-27 01:44:24 +00:00
reed@android.com
aa5a7db64a
move shapes subclasses into effects
...
git-svn-id: http://skia.googlecode.com/svn/trunk@188 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-27 01:20:10 +00:00
reed@android.com
c3a8c5fb38
create offscreen surface so we can set its RGB ordering to match our internals
...
git-svn-id: http://skia.googlecode.com/svn/trunk@187 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-26 13:27:48 +00:00
reed@android.com
437f35e5ec
make include search paths relative
...
git-svn-id: http://skia.googlecode.com/svn/trunk@186 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-22 21:07:11 +00:00
reed@android.com
366ebeb248
update relative paths for sample code
...
git-svn-id: http://skia.googlecode.com/svn/trunk@185 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-22 21:01:38 +00:00
reed@android.com
2312091582
add actual sdl project file
...
git-svn-id: http://skia.googlecode.com/svn/trunk@184 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-22 20:57:52 +00:00
reed@android.com
b9af1aec8c
add sampleapp_sdl
...
git-svn-id: http://skia.googlecode.com/svn/trunk@183 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-22 20:53:55 +00:00
reed@android.com
671cd65678
add SDL support
...
git-svn-id: http://skia.googlecode.com/svn/trunk@182 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-22 20:44:12 +00:00
reed@android.com
149e2f6159
add SkSafeRef / SkSafeUnref as inline static functions, to use in place of our
...
existing obj->safeRef(), which is unsafe since it can its 'if (this)' can be
optimized away by some compilers.
fix some overflows in mimpmap generation
git-svn-id: http://skia.googlecode.com/svn/trunk@181 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-22 14:39:03 +00:00
reed@android.com
ba974ccbdd
add sample effects
...
git-svn-id: http://skia.googlecode.com/svn/trunk@180 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-22 13:48:35 +00:00
reed@android.com
72dcd3a3c1
init bounds to empty if we return false from getClipBounds()
...
We were already doing that in one place (empty clip), but now we do it in the
other as well (matrix not invertible).
git-svn-id: http://skia.googlecode.com/svn/trunk@179 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-18 15:46:29 +00:00
reed@android.com
f48f281766
shapes checkpoint: move matrix into groupshape and out of shape
...
git-svn-id: http://skia.googlecode.com/svn/trunk@178 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-18 04:20:55 +00:00
reed@android.com
3b89515707
fix parse error:
...
Issue 63053: Fixed parse error in XML
git-svn-id: http://skia.googlecode.com/svn/trunk@177 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-18 00:47:46 +00:00
reed@android.com
22dbaaf405
Fix reference count on openStream
...
Issue 62067: SkFontHost_linux.cpp: Reference counting problem
git-svn-id: http://skia.googlecode.com/svn/trunk@176 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-18 00:43:58 +00:00
reed@android.com
ed0bfb015a
fix impl of drawPicture
...
git-svn-id: http://skia.googlecode.com/svn/trunk@175 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-13 21:01:21 +00:00
reed@android.com
f76bacff7f
add SkSize for dimensions
...
add SkShape baseclass, in the hopes of having SkPicture inherit from that, and
also using shapes as the extension mechanism for things like animated-gif
git-svn-id: http://skia.googlecode.com/svn/trunk@174 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-13 14:00:33 +00:00
weita@google.com
25e9834c03
Honor pref config in image decoding whenever possible.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@173 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-11 16:06:22 +00:00
reed@android.com
6a5a2667a7
add SkSize for dimensions
...
git-svn-id: http://skia.googlecode.com/svn/trunk@172 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-08 16:45:52 +00:00
reed@android.com
f76b1b6566
add SK_USE_OLD_255_TO_256 define to disable alpha+1 change to SkAlpha255To256
...
git-svn-id: http://skia.googlecode.com/svn/trunk@171 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-08 13:10:38 +00:00
agl@chromium.org
b9890c133f
Typo fix for VDMX parsing in Chromium.
...
TBR=reed
git-svn-id: http://skia.googlecode.com/svn/trunk@170 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-07 00:48:12 +00:00
reed@android.com
fbaa88d969
add canCopyTo(), to preflight if copyTo can succeed. update unittests for it
...
git-svn-id: http://skia.googlecode.com/svn/trunk@169 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-06 17:44:34 +00:00
reed@android.com
311c82db31
fix copyTo to only copy the minimum pixels per row, and to lock the src before
...
trying to access its colorTable. Update unittest for copyTo. Add sample for
using a mask to clip a layer.
git-svn-id: http://skia.googlecode.com/svn/trunk@168 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-05 23:13:23 +00:00
reed@android.com
7a56108264
add simple port of memory APIs, to be used as a template for other platforms
...
that may want to add new_handler logic or other hooks.
git-svn-id: http://skia.googlecode.com/svn/trunk@167 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-04 19:24:56 +00:00
reed@android.com
a6260ff569
update license header
...
git-svn-id: http://skia.googlecode.com/svn/trunk@166 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-04 18:52:54 +00:00
reed@android.com
a8a8b8b80e
check for 0 upem in freetype
...
add 32bit-overflow check
git-svn-id: http://skia.googlecode.com/svn/trunk@165 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-04 15:00:11 +00:00
weita@google.com
f9ab99aaad
Allow copying an Index8 bitmap when srcConfig and dstConfig are both
...
Index8.
Also, change the logic of SkBitmap.copyTo() to do memcpy() if srcConfig
and dstConfig are the same.
git-svn-id: http://skia.googlecode.com/svn/trunk@164 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-05-03 18:23:30 +00:00