reed@google.com
9998c66930
remove all references to SkGlobals (obsolete)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2713 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-17 22:09:47 +00:00
mike@reedtribe.org
e303fcf68d
add SkXfermode::IsMode() and use that in SkDevice
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2703 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-17 02:16:43 +00:00
senorblanco@chromium.org
54e01b2ab9
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
2011-11-16 18:20:47 +00:00
bungeman@google.com
39698b1bd7
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
2011-11-15 22:26:41 +00:00
bsalomon@google.com
ae0fb058dd
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
2011-11-10 22:34:56 +00:00
bsalomon@google.com
d58a1cd00b
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
2011-11-10 20:57:43 +00:00
reed@google.com
44da42e92f
have paint's measure calls respect vertical
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2660 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-10 20:04:47 +00:00
reed@google.com
830a23e39b
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
2011-11-10 15:20:49 +00:00
reed@google.com
073c90769e
use new PurgeFontCache() api
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2633 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-08 20:03:48 +00:00
djsollen@google.com
56c69773ae
Update files to use SK_BUILD_FOR_ANDROID.
...
This CL also removes any unecessary references to
the ANDROID definition.
Review URL: http://codereview.appspot.com/5354049
git-svn-id: http://skia.googlecode.com/svn/trunk@2629 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-08 19:00:26 +00:00
reed@google.com
6245ab718d
fix prev. change for __OpenBSD__
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2628 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-08 18:21:20 +00:00
reed@google.com
77407ca019
add api to SkGraphics to get/set font cache limit
...
add SK_DEFAULT_FONT_CACHE_LIMIT to SkUserConfig, to override our default value
git-svn-id: http://skia.googlecode.com/svn/trunk@2621 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-08 13:48:32 +00:00
bsalomon@google.com
6850eab42b
Override 32BPP format in SkCanvas::readPixels
...
Review URL: http://codereview.appspot.com/5330073/
git-svn-id: http://skia.googlecode.com/svn/trunk@2600 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-03 20:29:47 +00:00
reed@google.com
15356a68b2
experimental -- add SkImageFilter to paint. Not called yet.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2599 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-03 19:29:08 +00:00
djsollen@google.com
58629291bc
Adding support to trunk for building Skia using the Android NDK.
...
This CL depends on a subsequent CL to add the appropriate NDK
toolchain and system sources to the skia repo.
Review URL: http://codereview.appspot.com/5306089/
Review URL: http://codereview.appspot.com/5306089
git-svn-id: http://skia.googlecode.com/svn/trunk@2592 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-03 13:08:29 +00:00
bsalomon@google.com
daba14b7d4
Line-endings only change (some windows line-endings snuck in)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2588 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-02 20:10:48 +00:00
bsalomon@google.com
910267dde2
Make SkDevice::onReadPixels take a const& rather than const*
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2587 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-02 20:06:25 +00:00
bsalomon@google.com
c69809745e
Recommit r2584 with gpu pass of the new ReadPixels test disabled in fixed pt (gpu code doesn't work in general in fixed pt).
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2586 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-02 19:57:21 +00:00
bsalomon@google.com
ace7bd5623
Revert r2584 (new test fails in fixed pt builds)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2585 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-02 19:39:51 +00:00
bsalomon@google.com
1a8ddf0a35
Changes the SkCanvas::readPixels API. Allows caller to read into prealloced bitmap pixels. Changes how clipping to device bounds is handled.
...
Review URL: http://codereview.appspot.com/5307077/
git-svn-id: http://skia.googlecode.com/svn/trunk@2584 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-02 19:34:16 +00:00
reed@google.com
cad8176281
remove unused copyPixelsFrom ... (copyPixelsTo is next on the chopping block)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2579 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-01 15:53:28 +00:00
reed@google.com
210ce003a5
add getDeviceSize() so callers won't need to call getDevice() so much
...
... we hope to make devices private in the future
git-svn-id: http://skia.googlecode.com/svn/trunk@2577 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-01 14:24:23 +00:00
reed@google.com
67ba5fa328
fix scalar=fixed by implementing SkRegion form of AntiFillRect
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2516 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-24 12:56:20 +00:00
reed@google.com
045e62d715
enable soft clipping (yikes)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2515 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-24 12:19:46 +00:00
reed@google.com
f0f617a502
add SkRect::intersect(a, b), matching what was already available in SkIRect
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2513 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-21 14:05:06 +00:00
reed@google.com
de916c8ac8
add SK_API to our malloc functions
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2497 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-19 19:50:48 +00:00
reed@google.com
7a17e3a34f
oops, init fSize to 0 before calling resize
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2493 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-18 18:58:06 +00:00
reed@google.com
1c401d8f42
add OnShrink options to SkAutoMalloc
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2492 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-18 18:52:03 +00:00
reed@google.com
3ab4195445
remove unused optional param to SkAutoMalloc
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2491 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-18 18:32:46 +00:00
reed@google.com
86b49d2ef3
move SkAutoMaskFreeImage from SkMaskFilter.h to SkMask.h
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2489 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-18 17:35:26 +00:00
reed@google.com
f52e55543e
(re)add SkMask::getAddr() which now checks its pixel-size at runtime.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2488 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-18 17:29:44 +00:00
reed@google.com
7989186dab
rename SkMask::getAddr to getAddr8, to match the specificity of the others
...
e.g. getAddr1, getAddrLCD16, etc.
This is to make way for a real getAddr that will compute its pixel-size at runtime
git-svn-id: http://skia.googlecode.com/svn/trunk@2487 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-18 15:44:57 +00:00
reed@google.com
edb606cb99
move LCD blits into opts, so they can have assembly versions
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2484 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-18 13:56:50 +00:00
reed@google.com
ec4400824c
commit http://codereview.chromium.org/8274009/
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2479 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-13 19:16:20 +00:00
reed@google.com
da96563e31
add FillIRect variant that takes a rasterclip
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2478 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-13 15:29:01 +00:00
reed@google.com
1ba7137fc0
add rasterclip entrypoints for scan converting paths
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2473 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-12 20:42:05 +00:00
reed@google.com
0017708a5b
use SkRasterClip inside canvas (check-point for soft clipping)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2462 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-12 14:34:30 +00:00
reed@google.com
58af9a6470
separate SkBlitMask decl into its own header
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2461 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-12 13:43:52 +00:00
reed@google.com
071eef918d
add bool argument to canvas' clipRect and clipPath for antialiasing
...
(currently ignored)
git-svn-id: http://skia.googlecode.com/svn/trunk@2459 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-12 11:52:53 +00:00
reed@google.com
294dd7b3d7
change getLastPt to return a bool
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2453 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-11 11:58:32 +00:00
reed@google.com
5e2457ef2e
add getTotalClipBounds() as a partial replacement for getTotalClip. This can be
...
faster than getTotalClip, since it doesn't need to compute the actual complex
region for the answer.
git-svn-id: http://skia.googlecode.com/svn/trunk@2452 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-10 21:24:37 +00:00
bungeman@google.com
07faed1102
Setting perspective in fixed point.
...
http://codereview.appspot.com/5088043/
git-svn-id: http://skia.googlecode.com/svn/trunk@2435 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-07 21:55:56 +00:00
bungeman@google.com
cf385232c4
Don't let templates live in shadows.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2434 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-07 21:10:39 +00:00
bungeman@google.com
a12cc7fda0
Separate code paths of SkTArray at compile time.
...
http://codereview.appspot.com/5243043/
git-svn-id: http://skia.googlecode.com/svn/trunk@2433 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-07 20:54:15 +00:00
reed@google.com
0abb499daf
add SkAlphaBlend255
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2426 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-06 20:04:36 +00:00
reed@google.com
632e1a281b
move call to nothingToDraw into our iterator, so it sees the results of filters and loopers
...
before making its decision.
git-svn-id: http://skia.googlecode.com/svn/trunk@2417 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-06 12:37:00 +00:00
bsalomon@google.com
fa6ac938e6
Fixup rendering of empty paths (including inverted fills)
...
Add GM and Sample that draw empty paths with various styles and fills
Review URL: http://codereview.appspot.com/5185047/
git-svn-id: http://skia.googlecode.com/svn/trunk@2414 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-05 19:57:55 +00:00
bungeman@google.com
02f5584185
Change SkAutoMaskImage so that we're less likely to write leaky code.
...
http://codereview.appspot.com/5180047/
git-svn-id: http://skia.googlecode.com/svn/trunk@2409 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-04 21:25:00 +00:00
bungeman@google.com
18ac1ba3d1
Make asBlur method const.
...
http://codereview.appspot.com/5190041/
This change makes asBlur const consistent with SkShader::asAGradient and asABitmap.
git-svn-id: http://skia.googlecode.com/svn/trunk@2404 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-04 15:11:38 +00:00
reed@google.com
dcd0f3a980
quick-rejects based on xfermode, using SkPaint::nothingToDraw()
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2402 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-04 01:17:15 +00:00
reed@google.com
2c508f2dc2
add force-rle parameter to help with aaclip testing
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2401 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-03 21:15:46 +00:00
reed@google.com
c74ab18130
add accessors to irect
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2399 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-03 20:27:14 +00:00
vandebo@chromium.org
5676b4a23a
Revert r2122, r2116, r2108 Now that Chrome's PlatformDevice doesn't inherit from SkDevice.
...
Review URL: http://codereview.appspot.com/5178045
git-svn-id: http://skia.googlecode.com/svn/trunk@2396 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-03 19:03:48 +00:00
tomhudson@google.com
1341304449
Use SK_OVERRIDE to add a little extra robustness against name changes.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2395 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-03 16:01:10 +00:00
reed@google.com
3253898f72
need these for the forceaa change
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2391 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-30 20:57:05 +00:00
bsalomon@google.com
92669014aa
Add SkSTArray, hide stack storage cons in SkTArray, unify SkTArray init logic
...
Review URL: http://codereview.appspot.com/5127044/
git-svn-id: http://skia.googlecode.com/svn/trunk@2342 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-27 19:10:05 +00:00
tomhudson@google.com
c12e1b138e
Replace SkMath.h includes as required for fixed point.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2341 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-27 18:03:23 +00:00
tomhudson@google.com
889bd8bd7f
Make SkMath.h less visible in public header files.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2340 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-27 17:38:17 +00:00
reed@google.com
894aa9a7af
experimental
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2320 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-23 14:49:49 +00:00
reed@google.com
10296ccb6a
add segment types query to SkPath (i.e. does it have any quads)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2292 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-21 12:29:05 +00:00
bsalomon@google.com
4fa6694c58
Resubmit 2289 with fix for glsl version
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2291 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-20 19:06:12 +00:00
bsalomon@google.com
1fac5ca505
Revert 2289. GLSL version detection not robust enough. May think we don't have GLSL 1.50 support based on OpenGL version. We have to look at the available extensions, not just GL version.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2290 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-20 17:57:44 +00:00
bsalomon@google.com
98874cdda0
[GPU] Use new Var type for inputs/outputs of FS and VS
...
Review URL: http://codereview.appspot.com/5056048/
git-svn-id: http://skia.googlecode.com/svn/trunk@2289 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-20 17:33:24 +00:00
reed@google.com
4bce115b31
make string's reference counting thread-safe
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2268 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-14 16:13:58 +00:00
bsalomon@google.com
5c6ae60a71
Fix compilation error related to using nonexistent sk_malloc instead of sk_malloc_throw. VC++ lazy template code compilation let this work on windows since the wrong function name was only in currently unused templated functions.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2266 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-14 14:01:31 +00:00
bsalomon@google.com
49313f6b43
GrTArray->SkTArray & docs
...
Review URL: http://codereview.appspot.com/5005045/
git-svn-id: http://skia.googlecode.com/svn/trunk@2265 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-14 13:54:05 +00:00
bsalomon@google.com
cff323ecd8
Shutup strict aliasing warnings in SkTLazy
...
Review URL: http://codereview.appspot.com/5020042/
git-svn-id: http://skia.googlecode.com/svn/trunk@2263 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-14 12:44:13 +00:00
bsalomon@google.com
8c2fe99ed2
Fix some issues in gpu device with perspective. Add a gm that would have caught them.
...
Review URL: http://codereview.appspot.com/4994048/
git-svn-id: http://skia.googlecode.com/svn/trunk@2256 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-13 15:27:18 +00:00
tomhudson@google.com
bcb671c82a
Add SkCanvas::getClipDescription() and getClipDeviceBounds() so clients don't
...
need to explicitly get the exact clip & compute those values themselves. (We
may be able to provide description/bounds more cheaply than the exact clip.)
git-svn-id: http://skia.googlecode.com/svn/trunk@2255 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-13 15:07:58 +00:00
tomhudson@google.com
8a0b0291ae
Revert r2250 - removal of setMatrixClip() - because Chrome makes heavy use
...
of those functions in a way we're not yet ready to clean up.
git-svn-id: http://skia.googlecode.com/svn/trunk@2254 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-13 14:41:06 +00:00
reed@google.com
4c888aae25
write 0 to our refcnt in the destructor, in the off-chance of it helping us
...
catch reuse-after-delete bugs (debug only)
git-svn-id: http://skia.googlecode.com/svn/trunk@2251 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-12 19:54:12 +00:00
tomhudson@google.com
66d57255ad
Replaces SkDevice::setMatrixClip() with markMatrixDirty() and markClipDirty(),
...
which require no arguments and so may be called without requiring the matrix
and clip to be completely evaluated.
De-inlines virtual functions in SkDevice interface.
git-svn-id: http://skia.googlecode.com/svn/trunk@2250 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-12 19:52:44 +00:00
bsalomon@google.com
dbeeac3332
Add perspective support to the gpu aa hairline renderer.
...
Review URL: http://codereview.appspot.com/4969071/
git-svn-id: http://skia.googlecode.com/svn/trunk@2249 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-12 14:59:34 +00:00
bsalomon@google.com
383963280d
[gpu] Remove getMaxStretch for perspective, use mapRadius for perspective path subdiv tol, add test
...
Review URL: http://codereview.appspot.com/4975063/
git-svn-id: http://skia.googlecode.com/svn/trunk@2246 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-09 19:32:04 +00:00
bsalomon@google.com
181e9bd948
Improve gpu path subdiv with perspective, remove tolerance scale, fix comment
...
Review URL: http://codereview.appspot.com/4993041/
git-svn-id: http://skia.googlecode.com/svn/trunk@2239 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-07 18:42:30 +00:00
reed@google.com
a5adf5385d
use templated skipT() for skipping structs within a reader
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2238 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-07 13:52:17 +00:00
reed@google.com
55b5f4bd6a
add SkPoint::CanNormalize to unify decisions about when a vector is degenerate
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2236 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-07 12:23:41 +00:00
reed@google.com
f0b5e1190a
add drawBitmapNine to canvas
...
will add to device soon I think
git-svn-id: http://skia.googlecode.com/svn/trunk@2233 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-07 11:57:34 +00:00
bsalomon@google.com
6dcd27cd5e
add detach back to SkAutoMalloc
...
Review URL: http://codereview.appspot.com/4956066/
git-svn-id: http://skia.googlecode.com/svn/trunk@2218 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-06 15:02:33 +00:00
reed@google.com
bdf736133b
add optional SK_OVERRIDE_GLOBAL_NEW for testing
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2217 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-06 14:56:20 +00:00
bsalomon@google.com
7d4679a2e1
Rename existing nonpreserving reallocs to reset, add reset to SkAutoMalloc, use reset in GrBufferAllocPool
...
Review URL: http://codereview.appspot.com/4951058/
git-svn-id: http://skia.googlecode.com/svn/trunk@2215 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-02 22:06:24 +00:00
bsalomon@google.com
e174ea4bb1
Fix some warnings when including some Skia headers in Chromium code under VS2008.
...
Review URL: http://codereview.appspot.com/4956058/
git-svn-id: http://skia.googlecode.com/svn/trunk@2209 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-01 15:34:14 +00:00
reed@google.com
d51bfa0583
rename getBounds to getGlobalBounds, since it now takes the device's origin
...
into account. Remove unused intersects().
git-svn-id: http://skia.googlecode.com/svn/trunk@2193 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-30 15:56:11 +00:00
tomhudson@google.com
dd5f7442f6
Add SkMatrix::getPerspectiveTypeMaskOnly() and SkMatrix::isTriviallyIdentity().
...
Reduces profile time in setConcat() and computeTypeMask() for demos that
do a lot of matrix concatenation.
git-svn-id: http://skia.googlecode.com/svn/trunk@2191 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-30 15:13:55 +00:00
reed@google.com
2e68478d86
move SkComputeAxisAlignmentForHText(const SkMatrix& matrix) out of inline,
...
since that isn't really necessary, and it is generating a warning/error for
some builds ('defined but not used')
git-svn-id: http://skia.googlecode.com/svn/trunk@2169 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-24 15:38:46 +00:00
reed@google.com
cb6ccdde51
respect subpixel positioning
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2165 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-23 21:30:47 +00:00
bsalomon@google.com
647a804c3d
Core skia changes to prepare for Gr AA Hairline renderer
...
Review URL: http://codereview.appspot.com/4940045/
git-svn-id: http://skia.googlecode.com/svn/trunk@2160 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-23 14:39:01 +00:00
bungeman@google.com
52c748b169
Gpu can draw underlined text.
...
http://codereview.appspot.com/4919047/
git-svn-id: http://skia.googlecode.com/svn/trunk@2154 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-22 21:30:43 +00:00
vandebo@chromium.org
37ad8fb72f
[PDF] Subset font advance data (W array).
...
Patch by arthurhsu@chromium.org . Original CL:
http://codereview.appspot.com/4830068
http://codereview.appspot.com/4905051/
Review URL: http://codereview.appspot.com/4911042
git-svn-id: http://skia.googlecode.com/svn/trunk@2134 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-18 02:38:50 +00:00
vandebo@chromium.org
7b13aca86f
Revert "Improve generation of glyph advance array." This reverts commit r2126
...
gm segfaults in font id retrieval.
TBR=arthurhsu@chromium.org
Review URL: http://codereview.appspot.com/4901049
git-svn-id: http://skia.googlecode.com/svn/trunk@2128 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-16 23:30:48 +00:00
vandebo@chromium.org
e7f3300f42
Improve generation of glyph advance array.
...
Review URL: http://codereview.appspot.com/4830068
git-svn-id: http://skia.googlecode.com/svn/trunk@2126 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-16 22:45:43 +00:00
reed@google.com
ff8a166e29
move setOrigin to protected, as a stop-gap fix for proxy devices. will revert
...
soon I expect.
git-svn-id: http://skia.googlecode.com/svn/trunk@2108 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-12 16:13:34 +00:00
reed@google.com
c34d7cfca1
re-get the function-ptr when we unflatten a ProcCoeffXfermode
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2093 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-09 22:42:10 +00:00
bsalomon@google.com
a44f7003e5
Fix some ref leaks
...
Review URL: http://codereview.appspot.com/4837068/
git-svn-id: http://skia.googlecode.com/svn/trunk@2082 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-09 15:30:41 +00:00
bungeman@google.com
88edf1e507
Protect much of SkDevice and clarify usage of drawDevice.
...
http://codereview.appspot.com/4798069/
git-svn-id: http://skia.googlecode.com/svn/trunk@2066 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-08 19:41:56 +00:00
reed@google.com
a767fa06ca
add api for scalers to force us to use skia to generate their bits from their
...
path. This may allow the windows scaler to do that if GDI is giving bad
results (i.e. not respecting the request for antialiasing).
git-svn-id: http://skia.googlecode.com/svn/trunk@2054 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-05 21:40:26 +00:00
reed@google.com
099d22dbce
add roundOut()
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2019 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-01 20:53:19 +00:00
reed@google.com
1b20280f9b
deprecate SkScalarFloor, SkScalarCeil, SkScalarRound
...
Should instead use the explicit version that returns either a scalar or int
e.g.
SkScalarRoundToInt
SkScalarROundToScalar
git-svn-id: http://skia.googlecode.com/svn/trunk@2018 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-01 20:49:45 +00:00
reed@google.com
84b437e6ce
update dox for LCD text
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2001 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-01 12:45:35 +00:00
bungeman@google.com
b81be7a780
Include <new> required for placement new in SkTLazy.
...
Also, add SkTLazy to gyp and remove old includes.
git-svn-id: http://skia.googlecode.com/svn/trunk@1984 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-28 16:51:20 +00:00