Commit Graph

4761 Commits

Author SHA1 Message Date
reed@google.com
4258c2c9b8 add more details when dumping saveLayer
rework utilitiy toString() functions to always append, so they can be chained together



git-svn-id: http://skia.googlecode.com/svn/trunk@5369 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-31 15:41:10 +00:00
bungeman@google.com
94acfb5b9d Serialization for DirectWrite
https://codereview.appspot.com/6494061/


git-svn-id: http://skia.googlecode.com/svn/trunk@5368 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-31 15:41:09 +00:00
reed@google.com
0a5c18ba79 (disabled) option to re-record a picture when loading
git-svn-id: http://skia.googlecode.com/svn/trunk@5366 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-31 13:32:47 +00:00
robertphillips@google.com
5955202c80 Allow cache tracking to be enabled in release
https://codereview.appspot.com/6500057/



git-svn-id: http://skia.googlecode.com/svn/trunk@5365 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-31 13:07:37 +00:00
djsollen@google.com
dc1a3badc7 Update ARM and NEON optimizations for S32A_Opaque_BlitRow32.
These patches replace those written by ARM with ones provided by NVidia.

Review URL: https://codereview.appspot.com/6465075

git-svn-id: http://skia.googlecode.com/svn/trunk@5364 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-31 12:41:48 +00:00
jkleinert@google.com
ed01f12d13 Adding checkboxes to skdiff output so a user can select a subset of images to rebaseline.
BUG=745
Review URL: https://codereview.appspot.com/6497054

git-svn-id: http://skia.googlecode.com/svn/trunk@5360 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-30 22:05:53 +00:00
robertphillips@google.com
d07cb0c037 Begin moving locking out of GrResourceCache
http://codereview.appspot.com/6498064/



git-svn-id: http://skia.googlecode.com/svn/trunk@5354 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-30 19:22:29 +00:00
bsalomon@google.com
868a8e7fc8 Recommit r5350 with fix for image failures (which affected GLs that don't support ARB_texture_swizzle).
git-svn-id: http://skia.googlecode.com/svn/trunk@5353 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-30 19:11:34 +00:00
bensong@google.com
7426743837 Records bench graph scale information so we can calculate back the bench values.
git-svn-id: http://skia.googlecode.com/svn/trunk@5352 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-30 18:19:02 +00:00
bsalomon@google.com
a3d707b4ec Revert 5350 while image changes are diagnosed.
git-svn-id: http://skia.googlecode.com/svn/trunk@5351 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-30 18:11:48 +00:00
bsalomon@google.com
b41b2bc29c Remove fModulate from GrGLShaderBuilder
Review URL: https://codereview.appspot.com/6495051/




git-svn-id: http://skia.googlecode.com/svn/trunk@5350 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-30 17:54:14 +00:00
george@mozilla.com
1ea01bf4ce The UBFX instruction isn't available on ARMv6; use LSL/LSR or UXTB.
Review URL: https://codereview.appspot.com/6476072

git-svn-id: http://skia.googlecode.com/svn/trunk@5349 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-30 17:38:03 +00:00
scroggo@google.com
057655589f Remove dead code and update a comment.
InlineFactoryNames_Flag is no longer used, so remove it and update
the comment.

Review URL: https://codereview.appspot.com/6492057

git-svn-id: http://skia.googlecode.com/svn/trunk@5348 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-30 17:34:29 +00:00
reed@google.com
ffacd3c56d peephole optimize save/restore brackets that contain no draw calls.
Review URL: https://codereview.appspot.com/6443149

git-svn-id: http://skia.googlecode.com/svn/trunk@5347 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-30 15:31:23 +00:00
skia.committer@gmail.com
a27096b474 Sanitizing source files in Skia_Nightly_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@5346 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-30 14:38:00 +00:00
reed@google.com
1cf58d03a8 add SkWriter32::rewindToOffset() -- used for peephole edits in picture recording
git-svn-id: http://skia.googlecode.com/svn/trunk@5345 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-30 14:03:21 +00:00
robertphillips@google.com
a9b0623eac Added find, lock to GrContext & GrResourceCache interfaces
https://codereview.appspot.com/6499052/



git-svn-id: http://skia.googlecode.com/svn/trunk@5343 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-30 11:06:31 +00:00
robertphillips@google.com
9cb5adf50d Minor refactoring of GrClipMaskManager::clipMaskPreamble
https://codereview.appspot.com/6495052/



git-svn-id: http://skia.googlecode.com/svn/trunk@5342 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-30 11:05:08 +00:00
bsalomon@google.com
405d0f43d8 In which a series of things around attachToCanvas and writePixels are fixed
Review URL: https://codereview.appspot.com/6506051/



git-svn-id: http://skia.googlecode.com/svn/trunk@5341 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 21:26:13 +00:00
reed@google.com
bae9ff70d9 SkDraw's constructor zero's is fields, so don't do it outside
git-svn-id: http://skia.googlecode.com/svn/trunk@5340 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 20:23:24 +00:00
reed@google.com
c07448fd72 check for exceeding int range when we stash the values in the cache
git-svn-id: http://skia.googlecode.com/svn/trunk@5339 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 19:46:06 +00:00
bsalomon@google.com
c2a2483bbe Clear SkCanvas::fLastDeviceToGainFocus when releasing a device
Review URL: https://codereview.appspot.com/6499051/



git-svn-id: http://skia.googlecode.com/svn/trunk@5338 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 19:40:59 +00:00
bsalomon@google.com
d9e0181405 Linux warning fixes
Review URL: https://codereview.appspot.com/6500045/



git-svn-id: http://skia.googlecode.com/svn/trunk@5337 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 19:35:44 +00:00
djsollen@google.com
57cdcc091b Change Arabic sample character from 0x0600 to 0x0627.
Arabic font on some devices doesn't have 0x0600 glyph and is not correctly
handled by complex text path.

BUG=6772513

Review URL: https://codereview.appspot.com/6497053

git-svn-id: http://skia.googlecode.com/svn/trunk@5336 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 19:08:50 +00:00
djsollen@google.com
c9ab987efc Implement multi-threaded picture playback via cloning.
The CL adds SkPicture.clone() which produces a thread-safe copy by
creating a shallow copy of the thread-safe data within the picture and
a deep copy of the data that is not (e.g. SkPaint).  This implementation
re-flattens the paints when cloning instead of retaining the flattened
paints from the recording process.

Changes were also needed to various classes to ensure thread safety

Review URL: https://codereview.appspot.com/6459105

git-svn-id: http://skia.googlecode.com/svn/trunk@5335 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 18:52:07 +00:00
rileya@google.com
b947b91794 Fix uninitialized values in bench_pictures' tiled renderer.
Review URL: https://codereview.appspot.com/6506049

git-svn-id: http://skia.googlecode.com/svn/trunk@5333 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 17:35:07 +00:00
bsalomon@google.com
4af0af612f Add helpers to add/modulate glsl vec4s.
Review URL: https://codereview.appspot.com/6497046/



git-svn-id: http://skia.googlecode.com/svn/trunk@5332 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 12:59:57 +00:00
robertphillips@google.com
1fcc1b8099 Moved GrClipMaskCache to its own files
https://codereview.appspot.com/6496055/



git-svn-id: http://skia.googlecode.com/svn/trunk@5331 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 12:52:05 +00:00
bsalomon@google.com
5e497329bb Fix int64->int32 warning
git-svn-id: http://skia.googlecode.com/svn/trunk@5330 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 21:45:26 +00:00
bsalomon@google.com
0d82fe5a4b Add "class" missing from "friend class". How did this compile on windows?
git-svn-id: http://skia.googlecode.com/svn/trunk@5329 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 21:39:15 +00:00
bsalomon@google.com
f660187980 Hide GrDrawTarget::Caps's member vars
Review URL: https://codereview.appspot.com/6499044



git-svn-id: http://skia.googlecode.com/svn/trunk@5328 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 21:11:35 +00:00
caryclark@google.com
a7e483d130 shape ops work in progress
working on quad/quad intersection

git-svn-id: http://skia.googlecode.com/svn/trunk@5326 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 20:44:43 +00:00
vandebo@chromium.org
8b6d6286b6 Normalize font BBox to make sure it's correct when rendering a PDF on the mac.
Original CL by abodenha@chromium.org: https://codereview.appspot.com/6501049/
BUG=crbug.com/124572

Review URL: https://codereview.appspot.com/6492048

git-svn-id: http://skia.googlecode.com/svn/trunk@5325 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 19:47:43 +00:00
scroggo@google.com
3961aac79e Reenable pipe for imagefiltersgraph GM on Android.
This test was fixed with r5269.

Review URL: https://codereview.appspot.com/6490045

git-svn-id: http://skia.googlecode.com/svn/trunk@5324 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 19:34:44 +00:00
rileya@google.com
edfbff683e Change picture record benchmark to include begin/end record in timings and make the source picture draw itself into record canvas, so it records the draws instead of directly copying the picture.
Review URL: https://codereview.appspot.com/6501045

git-svn-id: http://skia.googlecode.com/svn/trunk@5323 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 19:13:39 +00:00
bsalomon@google.com
34bcb9f803 Some GrGLShaderBuilder cleanup
Review URL: https://codereview.appspot.com/6500043/



git-svn-id: http://skia.googlecode.com/svn/trunk@5322 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 18:20:18 +00:00
borenet@google.com
3578eb7d06 Move gm baselines from trunk/gm to gm-expected
- Move images
- Update build slaves with the change
- Update baseline tools with the change

git-svn-id: http://skia.googlecode.com/svn/trunk@5319 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 16:53:10 +00:00
bungeman@google.com
1bfe01d06b When creating gray from lcd, use luminance instead of coverage.
https://codereview.appspot.com/6496048/


git-svn-id: http://skia.googlecode.com/svn/trunk@5318 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 16:02:42 +00:00
reed@google.com
9c72827f90 disable pipe for now
git-svn-id: http://skia.googlecode.com/svn/trunk@5317 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 15:54:54 +00:00
digit@google.com
536079b209 Fix Clang build on Android.
The optimize attribute is not supported with Clang/ARM r161757.

This warning, turned into an error, is emitted by -Wattribute (implicitly set).
Review URL: https://codereview.appspot.com/6489045

git-svn-id: http://skia.googlecode.com/svn/trunk@5316 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 15:22:37 +00:00
borenet@google.com
0dd5ceb6d6 Fix ANGLE build
Review URL: https://codereview.appspot.com/6498045

git-svn-id: http://skia.googlecode.com/svn/trunk@5315 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 15:15:49 +00:00
bsalomon@google.com
8090e651fc Make the SkGrPixelRef be responsible for unlocking device's scratch texture in the cache
Review URL: https://codereview.appspot.com/6498046/



git-svn-id: http://skia.googlecode.com/svn/trunk@5313 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 15:07:11 +00:00
rileya@google.com
5ee3f67ce3 Added an overload of SkTQSort that sorts an array of values, rather than an array of pointers.
Also added some parentheses to all the QSort variants to get rid of a gcc warning.
Review URL: https://codereview.appspot.com/6492044

git-svn-id: http://skia.googlecode.com/svn/trunk@5311 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 14:40:49 +00:00
bsalomon@google.com
d0f3f6825b Fix dumb bug: redundant runs of upm<->pm roundtrip test
Review URL: https://codereview.appspot.com/6498043/



git-svn-id: http://skia.googlecode.com/svn/trunk@5310 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 13:08:14 +00:00
reed@google.com
7edfb4939e need to declare INHERITED for the instcount macros
git-svn-id: http://skia.googlecode.com/svn/trunk@5309 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 12:48:35 +00:00
reed@google.com
fd875e8014 re-enable inst counting
git-svn-id: http://skia.googlecode.com/svn/trunk@5308 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 12:43:54 +00:00
bsalomon@google.com
a292112154 Remove SkGpuDevice::fTexture, use new pixel ref class name
Review URL: https://codereview.appspot.com/6474068/


git-svn-id: http://skia.googlecode.com/svn/trunk@5307 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 12:34:17 +00:00
reed@google.com
97af1a64ae Add caching of the snapshot image form a surface
Notify the surface when the canvas draws into it, so it can invalidate the
cached image, and (if needed) perform a copy-on-write on the surface if it
was being shared with the image.
Review URL: https://codereview.appspot.com/6441115

git-svn-id: http://skia.googlecode.com/svn/trunk@5306 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 12:19:02 +00:00
robertphillips@google.com
91ee3a11ed Added second "truncated" cpu/wall timer to bench
http://codereview.appspot.com/6476064/

This CL will increase the bench baselines across the board



git-svn-id: http://skia.googlecode.com/svn/trunk@5305 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 12:18:40 +00:00
robertphillips@google.com
2af1b188aa Added default to switch to stop compiler failure in Chrome (unreviewed)
GrConfigConversionEffect.cpp:33:21: error: enumeration values 'kNone_PMConversion' and 'kPMConversionCnt' not handled in switch [-Werror,-Wswitch]



git-svn-id: http://skia.googlecode.com/svn/trunk@5304 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 11:23:09 +00:00