Commit Graph

2414 Commits

Author SHA1 Message Date
caryclark@google.com
4e27d6e000 add vertical text support in mac port
http://codereview.appspot.com/5375053

M    src/ports/SkFontHost_mac_coretext.cpp



git-svn-id: http://skia.googlecode.com/svn/trunk@2659 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-10 19:38:32 +00:00
bsalomon@google.com
e7160bff74 Fix convert to bool warning in VS
http://codereview.appspot.com/5371051/



git-svn-id: http://skia.googlecode.com/svn/trunk@2658 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-10 15:28:16 +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
bsalomon@google.com
a2092aab4b Fix return value in read pixels unit test
git-svn-id: http://skia.googlecode.com/svn/trunk@2656 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-10 15:10:24 +00:00
reed@google.com
b76b34e04f add initial gyp to build freetype lib (problems with cflags not showing up in xcode)
git-svn-id: http://skia.googlecode.com/svn/trunk@2655 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-10 15:00:52 +00:00
bsalomon@google.com
7107fa789a Add support for GL_EXT_unpack_subimage
Review URL: http://codereview.appspot.com/5359048/



git-svn-id: http://skia.googlecode.com/svn/trunk@2654 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-10 14:54:14 +00:00
bsalomon@google.com
3d3dfe011c Fixes int to scalar warnings. This checkin changes the range of random matrix values in a benchmark but it is believed not to affect the runtime.
Review URL: http://codereview.appspot.com/5371045/


git-svn-id: http://skia.googlecode.com/svn/trunk@2653 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-10 13:50:19 +00:00
caryclark@google.com
caa91356a7 remove common fields from Offscreen utility class
http://codereview.appspot.com/5373046/

M    src/ports/SkFontHost_mac_coretext.cpp



git-svn-id: http://skia.googlecode.com/svn/trunk@2652 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-10 13:37:48 +00:00
tomhudson@google.com
f74ad8c91a Removes warnings generated by gcc and clang.
git-svn-id: http://skia.googlecode.com/svn/trunk@2651 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-09 22:15:08 +00:00
caryclark@google.com
5a5c2ab3a8 change m to f
http://codereview.appspot.com/5376043/

M    src/ports/SkFontHost_mac_coretext.cpp



git-svn-id: http://skia.googlecode.com/svn/trunk@2650 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-09 21:00:43 +00:00
epoger@google.com
513fc01250 New baseline images for GPU blurs and shadows, to greenify bots after r2643.
BUG=391
TBR=senorblanco
Review URL: http://codereview.appspot.com/5370044

git-svn-id: http://skia.googlecode.com/svn/trunk@2649 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-09 18:27:09 +00:00
reed@google.com
8d7e39c835 add experimental test for blending math (disabled for now)
git-svn-id: http://skia.googlecode.com/svn/trunk@2648 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-09 17:12:08 +00:00
senorblanco@chromium.org
5a412e51c8 Build fix; unreviewed.
Remove the imageblur test from gmslides.gypi for now, since SkPicture output
is incorrect.  SkImageFilter is not flattenable, so the output is black.



git-svn-id: http://skia.googlecode.com/svn/trunk@2647 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-09 17:02:15 +00:00
tomhudson@google.com
62b0968785 Speed up GrDrawState handling.
Compact GrDrawState and nested structs; dynamically only copy and compare
the fields actually active on the structs in question.
Yields 10-20% speedup of text benchmarks in GPU configuration.

Could probably get additional marginal speedup by ignoring unused
kernel fields.
Has some fragile constructs: pointer math on members to compute
sizes of portions of structs.
Removes fields necessary for GrTesselatedPathRenderer.



git-svn-id: http://skia.googlecode.com/svn/trunk@2644 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-09 16:39:17 +00:00
senorblanco@chromium.org
60014ca387 Implement Gaussian blurs for images. The caller creates an an
SkBlurImageFilter, sets it on an SkPaint, passes that paint to saveLayer(),
draws the primitives which are to be blurred, then calls restore(), which
applies the blur.  The blurs have separate sizes in the horizontal and vertical
direction.  This feature is GPU-only for now.

NB:  Due to the clipping change, there are slight pixel differences on the
blurs_gpu and shadows_gpu tests, so those will require rebaselining on all
platforms, as will some of the WebKit layout tests (TBD).


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



git-svn-id: http://skia.googlecode.com/svn/trunk@2643 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-09 16:05:58 +00:00
bsalomon@google.com
82c7bd8f25 Interim function for reseting GrDrawTarget state, this should be folded into GrDrawState when it has getters / setters
Review URL: http://codereview.appspot.com/5369045/



git-svn-id: http://skia.googlecode.com/svn/trunk@2642 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-09 15:32:29 +00:00
epoger@google.com
1afc4bfa0b whitespace commit to trigger linux build
git-svn-id: http://skia.googlecode.com/svn/trunk@2641 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-09 15:23:41 +00:00
bsalomon@google.com
e63799d3fd [GPU] when writing to unpremult dest and alpha is 0, make rgb=0
Review URL: http://codereview.appspot.com/5340062/


git-svn-id: http://skia.googlecode.com/svn/trunk@2640 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-09 14:14:38 +00:00
epoger@google.com
002af91302 New baseline images for r2638
TBR=vandebo
Review URL: http://codereview.appspot.com/5369044

git-svn-id: http://skia.googlecode.com/svn/trunk@2639 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-09 13:35:17 +00:00
vandebo@chromium.org
290e3bbcf4 [PDF] add drawTextOnPath support.
BUG=239
TBR=reed@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@2638 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-08 23:42:53 +00:00
epoger@google.com
29018728d5 whitespace commit to trigger buildbots
git-svn-id: http://skia.googlecode.com/svn/trunk@2637 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-08 21:28:15 +00:00
epoger@google.com
841867bf55 whitespace commit to trigger buildbots
git-svn-id: http://skia.googlecode.com/svn/trunk@2636 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-08 21:09:31 +00:00
epoger@google.com
e1874be96e whitespace commit to trigger buildbots
git-svn-id: http://skia.googlecode.com/svn/trunk@2635 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-08 21:02:58 +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
reed@google.com
fe70112985 handle NaN values in clipPath
git-svn-id: http://skia.googlecode.com/svn/trunk@2632 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-08 19:41:23 +00:00
bsalomon@google.com
0a97be216d When GL_RGBA readPixels are slow do swizzle using a draw then readPixels with GL_BGRA
Review URL: http://codereview.appspot.com/5339051/


git-svn-id: http://skia.googlecode.com/svn/trunk@2631 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-08 19:20:57 +00:00
djsollen@google.com
318cf92202 Cleanup for the Android build.
git-svn-id: http://skia.googlecode.com/svn/trunk@2630 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-08 19:03:43 +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
73ee77c908 up default limit to 2Mg
git-svn-id: http://skia.googlecode.com/svn/trunk@2627 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-08 18:14:08 +00:00
bsalomon@google.com
36645d22f8 Remove old and GL-specific defines from GrUserConfig.h comments
git-svn-id: http://skia.googlecode.com/svn/trunk@2626 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-08 15:52:21 +00:00
reed@google.com
2072db8901 post event to ourself to update the title after our constructor
(so we can see the title of the first slide)



git-svn-id: http://skia.googlecode.com/svn/trunk@2625 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-08 15:18:10 +00:00
reed@google.com
ac7aa1bc3f prefix GM names with "GM " so I know that's what they are.
git-svn-id: http://skia.googlecode.com/svn/trunk@2624 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-08 15:06:34 +00:00
reed@google.com
8923c6cfd5 suppress font-purge messages
git-svn-id: http://skia.googlecode.com/svn/trunk@2623 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-08 14:59:38 +00:00
reed@google.com
6c99633f73 return the prev value from SetFontCacheLimit
git-svn-id: http://skia.googlecode.com/svn/trunk@2622 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-08 13:55:36 +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
ca08edd7a8 Fix logic about who flips y in gpu readpixels
git-svn-id: http://skia.googlecode.com/svn/trunk@2620 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-07 16:56:39 +00:00
bungeman@google.com
24babf45b1 Add font scaler gm.
http://codereview.appspot.com/5337044/


git-svn-id: http://skia.googlecode.com/svn/trunk@2619 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-07 16:33:40 +00:00
bsalomon@google.com
c436499622 [GPU] Add explicit byte order and PM vs. UPM 8888 configs
Review URL: http://codereview.appspot.com/5347042/



git-svn-id: http://skia.googlecode.com/svn/trunk@2618 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-07 15:54:49 +00:00
djsollen@google.com
6ff82553df Add support for building Android SampleApp.
Review URL: http://codereview.appspot.com/5342051

git-svn-id: http://skia.googlecode.com/svn/trunk@2617 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-07 15:43:57 +00:00
bsalomon@google.com
85b505bedc Add support for GL_ARB_texture_swizzle
Review URL: http://codereview.appspot.com/5347042/



git-svn-id: http://skia.googlecode.com/svn/trunk@2615 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-07 14:56:51 +00:00
bsalomon@google.com
e269f210bd Recommit r2611 with fix for gm
git-svn-id: http://skia.googlecode.com/svn/trunk@2614 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-07 13:29:52 +00:00
bsalomon@google.com
e826262939 consolidate debug draw param checking code
git-svn-id: http://skia.googlecode.com/svn/trunk@2613 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-07 02:30:51 +00:00
bsalomon@google.com
b87d2b5c2a Revert r2611 until windows gm can be debugged
git-svn-id: http://skia.googlecode.com/svn/trunk@2612 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-07 01:58:39 +00:00
bsalomon@google.com
6d9adaec78 Add replacement APIs for createPlatformSurface: createPlatformTexture and createPlatformRenderTarget
git-svn-id: http://skia.googlecode.com/svn/trunk@2611 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-07 01:37:22 +00:00
bsalomon@google.com
979432ba26 Turn off annoying printfs
git-svn-id: http://skia.googlecode.com/svn/trunk@2610 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-05 21:38:22 +00:00
bsalomon@google.com
80d09b9f7e Use timestamp to detect when client GL calls could cause Gr's cache of glTexParam values to be invalid.
git-svn-id: http://skia.googlecode.com/svn/trunk@2609 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-05 21:21:13 +00:00
bsalomon@google.com
64c4fe4113 More removal of texture fUploadByteCount and rename fFormat to fConfig for consistency.
git-svn-id: http://skia.googlecode.com/svn/trunk@2608 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-05 14:51:01 +00:00
bsalomon@google.com
9d6cfd80a0 Remove unneeded field from GrGLTexture
git-svn-id: http://skia.googlecode.com/svn/trunk@2607 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-05 13:25:21 +00:00
bsalomon@google.com
b635d39172 bump GrGpu reset context timestamp size
git-svn-id: http://skia.googlecode.com/svn/trunk@2606 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-05 12:47:43 +00:00