reed@google.com
cc58651183
add bench for shader+blitMask
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2685 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-15 15:29:45 +00:00
reed@google.com
e901b4ccdb
rename/refactor in preparation for supporting accelerated blits of shader-output
...
through a mask.
git-svn-id: http://skia.googlecode.com/svn/trunk@2684 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-14 21:56:45 +00:00
caryclark@google.com
ec6d2183bd
suppress warnings on clang
...
http://codereview.appspot.com/5372101
M src/ports/SkFontHost_mac_coretext.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@2683 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-14 21:48:46 +00:00
bsalomon@google.com
f64b1a27f7
Remove GL functions only used in fixed pipe
...
Review URL: http://codereview.appspot.com/5374084/
git-svn-id: http://skia.googlecode.com/svn/trunk@2681 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-14 20:17:05 +00:00
bsalomon@google.com
4c5de58552
supportsES() -> supportsES2() in asserts
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2680 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-14 19:35:08 +00:00
reed@google.com
3563c9ee52
fix autobounds dude to call a custom version of rect.join that doesn't ignore
...
empty rects (since path.bounds must be the bounds of its control-pts, including
empty subcontours)
git-svn-id: http://skia.googlecode.com/svn/trunk@2679 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-14 19:34:57 +00:00
bsalomon@google.com
1dcf506a1a
Remove GrGpuGLFixed subclass and ES1 support
...
Review URL: http://codereview.appspot.com/5376094/
git-svn-id: http://skia.googlecode.com/svn/trunk@2678 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-14 19:29:53 +00:00
reed@google.com
ffdb018dae
add test for bounds (disabled as it fails)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2677 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-14 19:29:14 +00:00
reed@google.com
eac52bdb6c
improve validate to check for empty rects, since contains always returns false
...
if either rect is empty.
git-svn-id: http://skia.googlecode.com/svn/trunk@2676 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-14 18:13:59 +00:00
tomhudson@google.com
410e9dc9aa
New SkMutex benchmark - used when we suspected mutex performance issues;
...
committed not because they're a bottleneck now but because we might do
something with them in the future & it's quite lightweight.
git-svn-id: http://skia.googlecode.com/svn/trunk@2675 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-14 17:30:08 +00:00
caryclark@google.com
f1511f2e69
check for null on Lion
...
http://codereview.appspot.com/5369107/
M src/ports/SkFontHost_mac_coretext.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@2674 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-14 13:46:33 +00:00
reed@google.com
761661580e
add test for bad scanconversion (disabled)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2673 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-14 13:14:58 +00:00
reed@google.com
b42403bdb9
reorder template functions so it compiles in Lion
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2672 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-14 13:12:47 +00:00
reed@google.com
ed7f040853
rebaseline for gpu changes
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2671 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-14 13:10:33 +00:00
reed@google.com
f03bb566e2
land http://codereview.appspot.com/5244058/ - add matrix to SkView
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2670 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-11 21:42:12 +00:00
reed@google.com
83ab49556f
record doAA param for clipRect and clipPath in pictures
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2669 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-11 21:34:54 +00:00
bsalomon@google.com
74b98715a3
Do writepixels alpha-premul using gpu
...
Review URL: http://codereview.appspot.com/5373064/
git-svn-id: http://skia.googlecode.com/svn/trunk@2668 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-11 19:46:16 +00:00
vandebo@chromium.org
beb7fe1869
[PDF] Optimize W-array generation with respect to subsetted fonts and add test.
...
Testing framework originally from http://codereview.appspot.com/4916044
Review URL: http://codereview.appspot.com/5379041
git-svn-id: http://skia.googlecode.com/svn/trunk@2667 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-11 19:38:54 +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
0ba52fcf93
Filter out draws to non-PMA configs that won't blend correctly
...
Review URL: http://codereview.appspot.com/5376059/
git-svn-id: http://skia.googlecode.com/svn/trunk@2665 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-10 22:16:06 +00:00
bsalomon@google.com
c4ff22a296
Hold onto scratch texture until end of readRenderTargetPixels
...
Review URL: http://codereview.appspot.com/5369065/
git-svn-id: http://skia.googlecode.com/svn/trunk@2664 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-10 21:56:21 +00:00
bsalomon@google.com
bbce8b29bd
Turn off WritePixelsTest in fixed pt build (GPU device known not to work, no plan to fix)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2663 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-10 21:20:37 +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
14debba629
add test gm for vertical text
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2661 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-10 20:06:01 +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
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