reed@google.com
82ce2b8afb
add more SkInstCnt plumbing
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4343 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-26 17:43:26 +00:00
borenet@google.com
0682ca6971
Re-enable gm fontscaler for Android
...
This was fixed in 4.1, and we're upgrading the bots since no non-beta client
uses 4.0.
Review URL: https://codereview.appspot.com/6334058
git-svn-id: http://skia.googlecode.com/svn/trunk@4342 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-26 17:23:52 +00:00
reed@google.com
3b42998466
stick SkInstCnt in more classes, to help track down leaks
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4341 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-26 15:30:08 +00:00
djsollen@google.com
0833777df1
Cleanup flattening code to properly serialize lighting image filters.
...
Review URL: https://codereview.appspot.com/6333070
git-svn-id: http://skia.googlecode.com/svn/trunk@4340 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-26 14:33:13 +00:00
tomhudson@google.com
3186847112
Reduce iteration count on picture_playback benchmarks to bring their cost
...
more in line with the rest of the benches.
http://codereview.appspot.com/6325063/
git-svn-id: http://skia.googlecode.com/svn/trunk@4339 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-26 14:25:53 +00:00
robertphillips@google.com
009f62919f
Reverting r4324
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4338 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-26 12:56:54 +00:00
bsalomon@google.com
c2d6ce4c36
Baseline images for msaa complexclip tests
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4337 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 22:04:13 +00:00
borenet@google.com
ceb2a0311f
Temporarily disable failing GM tests on Android
...
- fontscaler - this test fails due to a GL driver bug fixed in Jelly Bean
- drawbitmaprect - suspect this is also a driver bug
- shadertext - causes the device to reboot
Review URL: https://codereview.appspot.com/6330057
git-svn-id: http://skia.googlecode.com/svn/trunk@4336 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 21:03:04 +00:00
scroggo@google.com
6eb0d62cc3
Register some flattenable factories.
...
Now, SkComposeShaders, SkDiscreteMapper, SkCosineMapper,
Line2DPathEffect, and SkTransparentShader can be flattened
and unflattened. This makes more of our samples work when
using a pipe.
Review URL: https://codereview.appspot.com/6338064
git-svn-id: http://skia.googlecode.com/svn/trunk@4334 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 20:32:12 +00:00
epoger@google.com
5b2e01c0d2
Add -o option to bench_graph_svg.py: write the output to a file rather than stdout
...
While I was at it, put the command-line options in alphabetical order.
BUG=https://code.google.com/p/skia/issues/detail?id=674
Review URL: https://codereview.appspot.com/6329061
git-svn-id: http://skia.googlecode.com/svn/trunk@4333 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 20:29:04 +00:00
tomhudson@google.com
09662068c3
Disable assert blocking DEPS roll. This is a sanity-checking assert not
...
necessary to correct operation (yet). Will pursue a fix & reenable.
http://codereview.appspot.com/6330056/
git-svn-id: http://skia.googlecode.com/svn/trunk@4332 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 20:18:47 +00:00
reed@google.com
e56513d2a9
if bounds don't intersect in DIFF mode, just return src (don't return empty)
...
Review URL: https://codereview.appspot.com/6337052
git-svn-id: http://skia.googlecode.com/svn/trunk@4331 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 20:06:33 +00:00
epoger@google.com
da4af24c9c
skdiff: no longer skip .pdf files by default
...
Review URL: https://codereview.appspot.com/6257080
git-svn-id: http://skia.googlecode.com/svn/trunk@4330 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 18:45:50 +00:00
bsalomon@google.com
1015e03467
Fix crash when buidling with no deferred drawing in grcontext
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4329 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 18:41:04 +00:00
bsalomon@google.com
70fc152576
Fix the stencil rules to perfom an rdiff with an inverse path
...
Review URL: http://codereview.appspot.com/6336056/
git-svn-id: http://skia.googlecode.com/svn/trunk@4328 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 18:03:46 +00:00
bsalomon@google.com
ce7357df6a
Add header needed to use the SWAP_PER_DRAW debug facility on windows.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4327 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 17:49:25 +00:00
tomhudson@google.com
f13f588046
Add GrPaint::*StageEnabled() and GrDrawState::stageEnabled() functions.
...
These wrap the question of "is this stage of the shader enabled?" so that
we can change the semantics - previously iff there was a texture, now
if there is a texture OR a GrCustomStage, soon (post-cl 6306097) iff there
is a GrCustomStage, which at that point will hold whatever texture is
necessary.
http://codereview.appspot.com/6306104/
git-svn-id: http://skia.googlecode.com/svn/trunk@4325 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 17:27:28 +00:00
robertphillips@google.com
f41f4d2257
Enable Scratch texture detach in SW path renderer's onDrawPath (take 2)
...
http://codereview.appspot.com/6331057/
git-svn-id: http://skia.googlecode.com/svn/trunk@4324 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 17:26:29 +00:00
djsollen@google.com
edae1416ba
Fix metrics test to no longer include the cpp.
...
The inclusion of the cpp caused linker errors when building skia
components as shared libaries for inclusion in an Android app.
Review URL: https://codereview.appspot.com/6338063
git-svn-id: http://skia.googlecode.com/svn/trunk@4323 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 17:01:46 +00:00
tomhudson@google.com
b213ed8b76
Simplify vertex layout bitfields by making Position-as-texcoords the
...
default.
http://codereview.appspot.com/6337050/
git-svn-id: http://skia.googlecode.com/svn/trunk@4321 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 15:22:12 +00:00
robertphillips@google.com
1807d0d0de
Reverting r4319
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4320 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 15:17:32 +00:00
robertphillips@google.com
042cb4769f
Enable Scratch texture detach in SW path renderer's onDrawPath
...
http://codereview.appspot.com/6331057/
git-svn-id: http://skia.googlecode.com/svn/trunk@4319 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 14:37:11 +00:00
reed@google.com
34342f6f51
export flags on the state of the world when a picture was serialized.
...
e.g. don't read/write functionptrs in that case (sizeof may be different for one)
Review URL: https://codereview.appspot.com/6331050
git-svn-id: http://skia.googlecode.com/svn/trunk@4318 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 14:36:28 +00:00
bungeman@google.com
ec95a4ae45
Remove multi-byte character constants.
...
http://codereview.appspot.com/6305117/
git-svn-id: http://skia.googlecode.com/svn/trunk@4317 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 14:26:48 +00:00
djsollen@google.com
5df2a99861
[android] Add an API to load customized font config for testing.
...
When running WebKit layout tests, we need to load some fonts from Linux to
match baselines of chromium linux. However, font config file is
hard-coded in Skia now. This change add an API to customize font config
in skia.
https://codereview.appspot.com/6296067/
git-svn-id: http://skia.googlecode.com/svn/trunk@4316 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 13:58:22 +00:00
tomhudson@google.com
3eee8fbe0f
Fix misplaced return in GrDrawState::stageDisabled().
...
Original patch by guanqun.lu@gmail.com
http://codereview.appspot.com/6338058/
git-svn-id: http://skia.googlecode.com/svn/trunk@4315 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 12:30:34 +00:00
senorblanco@chromium.org
f49b429cef
Raster implementation of diffuse and specular lighting filters. Externally,
...
the caller instantiates a light (distant, point or spot), and an
SkDiffuseLightingFilter or SkSpecularLightingImageFilter with that light. A
Sobel edge detection filter is applied to the alpha of the incoming bitmap, and
the result is used as a height map for lighting calculations.
Review URL: http://codereview.appspot.com/6302101/
git-svn-id: http://skia.googlecode.com/svn/trunk@4314 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 21:01:23 +00:00
tomhudson@google.com
7d6afdd795
Extend texture release on GrDrawState to also handle custom stages.
...
Add asserts to GrContext::setPaint() to make sure we're keeping things
cleaned up.
Remove double-call of setPaint() during text context initialization.
http://codereview.appspot.com/6324046/
git-svn-id: http://skia.googlecode.com/svn/trunk@4313 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 20:10:50 +00:00
twiz@google.com
6cf5303b93
Adding files skipped from previous patch: http://code.google.com/p/skia/source/detail?r=4310
...
Review URL: https://codereview.appspot.com/6339043/
git-svn-id: http://skia.googlecode.com/svn/trunk@4312 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 18:55:55 +00:00
reed@google.com
953ee5fa2b
rebaseline after recent aa-clipping fix on gpu
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4311 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 18:29:40 +00:00
twiz@google.com
a31b8bb58d
Refactoring in preparation for adding the picture benchmarking program.
...
Review URL: https://codereview.appspot.com/6339043/
git-svn-id: http://skia.googlecode.com/svn/trunk@4310 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 18:24:56 +00:00
bsalomon@google.com
1b1e201ea3
Revert #if 0ed out code accidentally committed as part of r4299.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4309 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 18:18:08 +00:00
reed@google.com
6756209ee0
Expand header in serialized pictures
...
Make chunk/tag reading allow for optional and (somewhat) out-of-order chunks.
Return empty picture instead of throwing on error
Review URL: https://codereview.appspot.com/6329049
git-svn-id: http://skia.googlecode.com/svn/trunk@4308 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 15:38:39 +00:00
reed@google.com
e5f48b92b3
change gm option from -config to --config, to match the double-dash convention of
...
all of its other options.
Review URL: https://codereview.appspot.com/6337044
git-svn-id: http://skia.googlecode.com/svn/trunk@4307 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 15:27:39 +00:00
bsalomon@google.com
07fc0d178e
Revert r4287. Large numbers of textures created by random gradients can cause poor driver performance (at least on Mac)
...
BUG=670
git-svn-id: http://skia.googlecode.com/svn/trunk@4306 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 15:15:59 +00:00
junov@chromium.org
89e615d260
Removing redundant calls to GEN_ID_INC_EVAL in SkPaint.cpp
...
Review URL: http://codereview.appspot.com/6302099/
git-svn-id: http://skia.googlecode.com/svn/trunk@4305 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 14:37:21 +00:00
robertphillips@google.com
646a2ff2eb
Image rebaseline for r4303
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4304 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 14:20:47 +00:00
robertphillips@google.com
a0a66c1183
Fix clipping of ovals on top & right
...
http://codereview.appspot.com/6294091/
git-svn-id: http://skia.googlecode.com/svn/trunk@4303 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 13:14:29 +00:00
reed@google.com
ed38495c7c
add PictInfo chunk to serialized pictures
...
Review URL: https://codereview.appspot.com/6325048
git-svn-id: http://skia.googlecode.com/svn/trunk@4302 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 13:12:17 +00:00
robertphillips@google.com
15c0fea699
AutoScratchTexture can now release its texture and it will return to the texture cache when freed
...
http://codereview.appspot.com/6262043/
git-svn-id: http://skia.googlecode.com/svn/trunk@4301 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 12:41:43 +00:00
bsalomon@google.com
5e24129831
Move GrTemplates.h to src
...
Review URL: http://codereview.appspot.com/6333053/
git-svn-id: http://skia.googlecode.com/svn/trunk@4300 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 12:34:22 +00:00
bsalomon@google.com
9e553c6e7c
Minor GrStencilSettings cleanup
...
Review URL: http://codereview.appspot.com/6329044/
git-svn-id: http://skia.googlecode.com/svn/trunk@4299 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 12:23:29 +00:00
robertphillips@google.com
9ec075366e
Altered GrDrawState to always ref texture and render target
...
http://codereview.appspot.com/6251049/
git-svn-id: http://skia.googlecode.com/svn/trunk@4298 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 12:01:30 +00:00
epoger@google.com
1e4b990679
another whitespace change to trigger buildbots, now that new win7 bots should work
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4297 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 07:58:36 +00:00
epoger@google.com
4d1d742a1d
Whitespace change to trigger all buildbots
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4296 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 00:33:28 +00:00
epoger@google.com
89e2248eac
Add empty directories to hold expected GM images for Shuttle PCs running Win7 using Intel GPU
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4294 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-21 22:04:14 +00:00
robertphillips@google.com
7d501ab502
Add GrSurface parent class above GrTexture & GrRenderTarget
...
http://codereview.appspot.com/6297092/
git-svn-id: http://skia.googlecode.com/svn/trunk@4292 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-21 21:09:06 +00:00
robertphillips@google.com
15e9d3e66e
Expanded distribution of instance counting
...
http://codereview.appspot.com/6300114/
git-svn-id: http://skia.googlecode.com/svn/trunk@4291 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-21 20:25:03 +00:00
robertphillips@google.com
c82a8b7aa4
Fixed two bugs in SW-only clip mask generation
...
http://codereview.appspot.com/6306086/
git-svn-id: http://skia.googlecode.com/svn/trunk@4290 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-21 20:15:48 +00:00
bsalomon@google.com
7aa876bfbf
Record pixel ref's gen ID in picture
...
Review URL: http://codereview.appspot.com/6325046/
git-svn-id: http://skia.googlecode.com/svn/trunk@4289 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-21 20:13:04 +00:00