platform/upstream/libSkiaSharp.git
11 years agoResource cache now explicitly takes ref of managed resources
robertphillips@google.com [Wed, 5 Sep 2012 19:44:18 +0000 (19:44 +0000)]
Resource cache now explicitly takes ref of managed resources

https://codereview.appspot.com/6489085/

git-svn-id: http://skia.googlecode.com/svn/trunk@5407 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd efffects to the list of dependencies for bench_pictures. Required on Android.
edisonn@google.com [Wed, 5 Sep 2012 19:43:46 +0000 (19:43 +0000)]
Add efffects to the list of dependencies for bench_pictures. Required on Android.
Review URL: http://codereview.appspot.com/6489078

git-svn-id: http://skia.googlecode.com/svn/trunk@5406 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoEnforce calling of inherited onRelease & onAbandon mthds in GrResource-derived classes
robertphillips@google.com [Wed, 5 Sep 2012 18:37:39 +0000 (18:37 +0000)]
Enforce calling of inherited onRelease & onAbandon mthds in GrResource-derived classes

http://codereview.appspot.com/6499077/

git-svn-id: http://skia.googlecode.com/svn/trunk@5405 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd R-Tree bench.
rileya@google.com [Wed, 5 Sep 2012 18:36:17 +0000 (18:36 +0000)]
Add R-Tree bench.
Review URL: https://codereview.appspot.com/6497086

git-svn-id: http://skia.googlecode.com/svn/trunk@5404 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoShut up some Mac (xcode 3) warnings
bsalomon@google.com [Wed, 5 Sep 2012 17:40:04 +0000 (17:40 +0000)]
Shut up some Mac (xcode 3) warnings

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

git-svn-id: http://skia.googlecode.com/svn/trunk@5402 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd R-Tree data structure.
rileya@google.com [Wed, 5 Sep 2012 16:10:59 +0000 (16:10 +0000)]
Add R-Tree data structure.
Review URL: https://codereview.appspot.com/6489055

git-svn-id: http://skia.googlecode.com/svn/trunk@5401 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSimplified stencil buffer caching
robertphillips@google.com [Wed, 5 Sep 2012 15:46:34 +0000 (15:46 +0000)]
Simplified stencil buffer caching

https://codereview.appspot.com/6503073/

git-svn-id: http://skia.googlecode.com/svn/trunk@5400 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Wed, 5 Sep 2012 02:01:29 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@5399 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd NaCl port of Skia
borenet@google.com [Tue, 4 Sep 2012 21:09:40 +0000 (21:09 +0000)]
Add NaCl port of Skia

Initial commit. This is far from done.
Review URL: https://codereview.appspot.com/6428064

git-svn-id: http://skia.googlecode.com/svn/trunk@5398 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd more cases to dashline: circle-vs-square, 0,1,2 stroke_width
reed@google.com [Tue, 4 Sep 2012 20:19:35 +0000 (20:19 +0000)]
add more cases to dashline: circle-vs-square, 0,1,2 stroke_width

git-svn-id: http://skia.googlecode.com/svn/trunk@5397 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd bench for drawline + dashing
reed@google.com [Tue, 4 Sep 2012 20:07:23 +0000 (20:07 +0000)]
add bench for drawline + dashing

git-svn-id: http://skia.googlecode.com/svn/trunk@5396 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd ANGLE to DEPS, integrate build
borenet@google.com [Tue, 4 Sep 2012 16:45:05 +0000 (16:45 +0000)]
Add ANGLE to DEPS, integrate build
Review URL: https://codereview.appspot.com/6494052

git-svn-id: http://skia.googlecode.com/svn/trunk@5387 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoUpstream Clank's SkFontHost_Android DRT infinite loop fix.
tomhudson@google.com [Tue, 4 Sep 2012 16:37:09 +0000 (16:37 +0000)]
Upstream Clank's SkFontHost_Android DRT infinite loop fix.

We may have to do future work to reconcile this with Android native; probably pending
Android OS adding a font manager API.

http://codereview.appspot.com/6497081/

git-svn-id: http://skia.googlecode.com/svn/trunk@5386 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoUpstream clank: fix build on platforms (Clang/ARM) that don't support 'optimize'
tomhudson@google.com [Tue, 4 Sep 2012 16:25:27 +0000 (16:25 +0000)]
Upstream clank: fix build on platforms (Clang/ARM) that don't support 'optimize'

http://codereview.appspot.com/6496082/

git-svn-id: http://skia.googlecode.com/svn/trunk@5385 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd effects/core.gypi to 'sources' to make them appear in VS projects
bsalomon@google.com [Tue, 4 Sep 2012 14:37:12 +0000 (14:37 +0000)]
Add effects/core.gypi to 'sources' to make them appear in VS projects

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

git-svn-id: http://skia.googlecode.com/svn/trunk@5384 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFix compile error in SkFontHost_none.cpp
borenet@google.com [Tue, 4 Sep 2012 14:32:50 +0000 (14:32 +0000)]
Fix compile error in SkFontHost_none.cpp
Review URL: https://codereview.appspot.com/6501083

git-svn-id: http://skia.googlecode.com/svn/trunk@5383 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFuture proof luminance caches.
bungeman@google.com [Tue, 4 Sep 2012 13:49:59 +0000 (13:49 +0000)]
Future proof luminance caches.
https://codereview.appspot.com/6495071/

git-svn-id: http://skia.googlecode.com/svn/trunk@5382 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdded bench to test multiple readPixels case
robertphillips@google.com [Tue, 4 Sep 2012 13:39:01 +0000 (13:39 +0000)]
Added bench to test multiple readPixels case

https://codereview.appspot.com/6501081/

git-svn-id: http://skia.googlecode.com/svn/trunk@5381 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoDon't purge resources from cache if they have > 1 ref
robertphillips@google.com [Tue, 4 Sep 2012 13:36:31 +0000 (13:36 +0000)]
Don't purge resources from cache if they have > 1 ref

https://codereview.appspot.com/6494069/

git-svn-id: http://skia.googlecode.com/svn/trunk@5380 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSwitch GrGpu's GrResource list over to using SkTDLinkedList
robertphillips@google.com [Tue, 4 Sep 2012 13:34:32 +0000 (13:34 +0000)]
Switch GrGpu's GrResource list over to using SkTDLinkedList

https://codereview.appspot.com/6500062/

git-svn-id: http://skia.googlecode.com/svn/trunk@5379 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoReverting r5364 (Update ARM and NEON optimizations for S32A_Opaque_BlitRow32)
robertphillips@google.com [Tue, 4 Sep 2012 12:48:01 +0000 (12:48 +0000)]
Reverting r5364 (Update ARM and NEON optimizations for S32A_Opaque_BlitRow32)

git-svn-id: http://skia.googlecode.com/svn/trunk@5378 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Sat, 1 Sep 2012 02:00:58 +0000 (02:00 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@5377 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoshape ops work in progress
caryclark@google.com [Fri, 31 Aug 2012 20:55:07 +0000 (20:55 +0000)]
shape ops work in progress

git-svn-id: http://skia.googlecode.com/svn/trunk@5376 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agotruncate our llist w/ null during rewind.
reed@google.com [Fri, 31 Aug 2012 20:17:56 +0000 (20:17 +0000)]
truncate our llist w/ null during rewind.

git-svn-id: http://skia.googlecode.com/svn/trunk@5375 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFix windows build of tools.
scroggo@google.com [Fri, 31 Aug 2012 18:34:09 +0000 (18:34 +0000)]
Fix windows build of tools.

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

git-svn-id: http://skia.googlecode.com/svn/trunk@5374 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Fri, 31 Aug 2012 17:14:46 +0000 (17:14 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@5373 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRename my DeferredPipeController to not conflict with the other.
scroggo@google.com [Fri, 31 Aug 2012 16:25:46 +0000 (16:25 +0000)]
Rename my DeferredPipeController to not conflict with the other.

Fixes build.

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

git-svn-id: http://skia.googlecode.com/svn/trunk@5372 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoPerform multi core rendering in bench_pictures.
scroggo@google.com [Fri, 31 Aug 2012 16:15:22 +0000 (16:15 +0000)]
Perform multi core rendering in bench_pictures.

Add a flag in SkGPipeWriter for threadsafe drawing.

Add a deferred pipe controller to SamplePipeControllers, which can
be called to play back in multiple threads.

Depends on http://codereview.appspot.com/6459105/

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

git-svn-id: http://skia.googlecode.com/svn/trunk@5371 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd --dump-ops option to pinspect, which will invoke SkDumpCanvas on the picture(s)
reed@google.com [Fri, 31 Aug 2012 15:41:37 +0000 (15:41 +0000)]
add --dump-ops option to pinspect, which will invoke SkDumpCanvas on the picture(s)

git-svn-id: http://skia.googlecode.com/svn/trunk@5370 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd more details when dumping saveLayer
reed@google.com [Fri, 31 Aug 2012 15:41:10 +0000 (15:41 +0000)]
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

11 years agoSerialization for DirectWrite
bungeman@google.com [Fri, 31 Aug 2012 15:41:09 +0000 (15:41 +0000)]
Serialization for DirectWrite
https://codereview.appspot.com/6494061/

git-svn-id: http://skia.googlecode.com/svn/trunk@5368 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years ago(disabled) option to re-record a picture when loading
reed@google.com [Fri, 31 Aug 2012 13:32:47 +0000 (13:32 +0000)]
(disabled) option to re-record a picture when loading

git-svn-id: http://skia.googlecode.com/svn/trunk@5366 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAllow cache tracking to be enabled in release
robertphillips@google.com [Fri, 31 Aug 2012 13:07:37 +0000 (13:07 +0000)]
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

11 years agoUpdate ARM and NEON optimizations for S32A_Opaque_BlitRow32.
djsollen@google.com [Fri, 31 Aug 2012 12:41:48 +0000 (12:41 +0000)]
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

11 years agoAdding checkboxes to skdiff output so a user can select a subset of images to rebaseline.
jkleinert@google.com [Thu, 30 Aug 2012 22:05:53 +0000 (22:05 +0000)]
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

11 years agoBegin moving locking out of GrResourceCache
robertphillips@google.com [Thu, 30 Aug 2012 19:22:29 +0000 (19:22 +0000)]
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

11 years agoRecommit r5350 with fix for image failures (which affected GLs that don't support...
bsalomon@google.com [Thu, 30 Aug 2012 19:11:34 +0000 (19:11 +0000)]
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

11 years agoRecords bench graph scale information so we can calculate back the bench values.
bensong@google.com [Thu, 30 Aug 2012 18:19:02 +0000 (18:19 +0000)]
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

11 years agoRevert 5350 while image changes are diagnosed.
bsalomon@google.com [Thu, 30 Aug 2012 18:11:48 +0000 (18:11 +0000)]
Revert 5350 while image changes are diagnosed.

git-svn-id: http://skia.googlecode.com/svn/trunk@5351 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRemove fModulate from GrGLShaderBuilder
bsalomon@google.com [Thu, 30 Aug 2012 17:54:14 +0000 (17:54 +0000)]
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

11 years agoThe UBFX instruction isn't available on ARMv6; use LSL/LSR or UXTB.
george@mozilla.com [Thu, 30 Aug 2012 17:38:03 +0000 (17:38 +0000)]
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

11 years agoRemove dead code and update a comment.
scroggo@google.com [Thu, 30 Aug 2012 17:34:29 +0000 (17:34 +0000)]
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

11 years agopeephole optimize save/restore brackets that contain no draw calls.
reed@google.com [Thu, 30 Aug 2012 15:31:23 +0000 (15:31 +0000)]
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

11 years agoSanitizing source files in Skia_Nightly_House_Keeping
skia.committer@gmail.com [Thu, 30 Aug 2012 14:38:00 +0000 (14:38 +0000)]
Sanitizing source files in Skia_Nightly_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@5346 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd SkWriter32::rewindToOffset() -- used for peephole edits in picture recording
reed@google.com [Thu, 30 Aug 2012 14:03:21 +0000 (14:03 +0000)]
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

11 years agoAdded find, lock to GrContext & GrResourceCache interfaces
robertphillips@google.com [Thu, 30 Aug 2012 11:06:31 +0000 (11:06 +0000)]
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

11 years agoMinor refactoring of GrClipMaskManager::clipMaskPreamble
robertphillips@google.com [Thu, 30 Aug 2012 11:05:08 +0000 (11:05 +0000)]
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

11 years agoIn which a series of things around attachToCanvas and writePixels are fixed
bsalomon@google.com [Wed, 29 Aug 2012 21:26:13 +0000 (21:26 +0000)]
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

11 years agoSkDraw's constructor zero's is fields, so don't do it outside
reed@google.com [Wed, 29 Aug 2012 20:23:24 +0000 (20:23 +0000)]
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

11 years agocheck for exceeding int range when we stash the values in the cache
reed@google.com [Wed, 29 Aug 2012 19:46:06 +0000 (19:46 +0000)]
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

11 years agoClear SkCanvas::fLastDeviceToGainFocus when releasing a device
bsalomon@google.com [Wed, 29 Aug 2012 19:40:59 +0000 (19:40 +0000)]
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

11 years agoLinux warning fixes
bsalomon@google.com [Wed, 29 Aug 2012 19:35:44 +0000 (19:35 +0000)]
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

11 years agoChange Arabic sample character from 0x0600 to 0x0627.
djsollen@google.com [Wed, 29 Aug 2012 19:08:50 +0000 (19:08 +0000)]
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

11 years agoImplement multi-threaded picture playback via cloning.
djsollen@google.com [Wed, 29 Aug 2012 18:52:07 +0000 (18:52 +0000)]
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

11 years agoFix uninitialized values in bench_pictures' tiled renderer.
rileya@google.com [Wed, 29 Aug 2012 17:35:07 +0000 (17:35 +0000)]
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

11 years agoAdd helpers to add/modulate glsl vec4s.
bsalomon@google.com [Wed, 29 Aug 2012 12:59:57 +0000 (12:59 +0000)]
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

11 years agoMoved GrClipMaskCache to its own files
robertphillips@google.com [Wed, 29 Aug 2012 12:52:05 +0000 (12:52 +0000)]
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

11 years agoFix int64->int32 warning
bsalomon@google.com [Tue, 28 Aug 2012 21:45:26 +0000 (21:45 +0000)]
Fix int64->int32 warning

git-svn-id: http://skia.googlecode.com/svn/trunk@5330 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd "class" missing from "friend class". How did this compile on windows?
bsalomon@google.com [Tue, 28 Aug 2012 21:39:15 +0000 (21:39 +0000)]
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

11 years agoHide GrDrawTarget::Caps's member vars
bsalomon@google.com [Tue, 28 Aug 2012 21:11:35 +0000 (21:11 +0000)]
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

11 years agoshape ops work in progress
caryclark@google.com [Tue, 28 Aug 2012 20:44:43 +0000 (20:44 +0000)]
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

11 years agoNormalize font BBox to make sure it's correct when rendering a PDF on the mac.
vandebo@chromium.org [Tue, 28 Aug 2012 19:47:43 +0000 (19:47 +0000)]
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

11 years agoReenable pipe for imagefiltersgraph GM on Android.
scroggo@google.com [Tue, 28 Aug 2012 19:34:44 +0000 (19:34 +0000)]
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

11 years agoChange picture record benchmark to include begin/end record in timings and make the...
rileya@google.com [Tue, 28 Aug 2012 19:13:39 +0000 (19:13 +0000)]
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

11 years agoSome GrGLShaderBuilder cleanup
bsalomon@google.com [Tue, 28 Aug 2012 18:20:18 +0000 (18:20 +0000)]
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

11 years agoMove gm baselines from trunk/gm to gm-expected
borenet@google.com [Tue, 28 Aug 2012 16:53:10 +0000 (16:53 +0000)]
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

11 years agoWhen creating gray from lcd, use luminance instead of coverage.
bungeman@google.com [Tue, 28 Aug 2012 16:02:42 +0000 (16:02 +0000)]
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

11 years agodisable pipe for now
reed@google.com [Tue, 28 Aug 2012 15:54:54 +0000 (15:54 +0000)]
disable pipe for now

git-svn-id: http://skia.googlecode.com/svn/trunk@5317 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFix Clang build on Android.
digit@google.com [Tue, 28 Aug 2012 15:22:37 +0000 (15:22 +0000)]
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

11 years agoFix ANGLE build
borenet@google.com [Tue, 28 Aug 2012 15:15:49 +0000 (15:15 +0000)]
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

11 years agoMake the SkGrPixelRef be responsible for unlocking device's scratch texture in the...
bsalomon@google.com [Tue, 28 Aug 2012 15:07:11 +0000 (15:07 +0000)]
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

11 years agoAdded an overload of SkTQSort that sorts an array of values, rather than an array...
rileya@google.com [Tue, 28 Aug 2012 14:40:49 +0000 (14:40 +0000)]
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

11 years agoFix dumb bug: redundant runs of upm<->pm roundtrip test
bsalomon@google.com [Tue, 28 Aug 2012 13:08:14 +0000 (13:08 +0000)]
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

11 years agoneed to declare INHERITED for the instcount macros
reed@google.com [Tue, 28 Aug 2012 12:48:35 +0000 (12:48 +0000)]
need to declare INHERITED for the instcount macros

git-svn-id: http://skia.googlecode.com/svn/trunk@5309 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agore-enable inst counting
reed@google.com [Tue, 28 Aug 2012 12:43:54 +0000 (12:43 +0000)]
re-enable inst counting

git-svn-id: http://skia.googlecode.com/svn/trunk@5308 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRemove SkGpuDevice::fTexture, use new pixel ref class name
bsalomon@google.com [Tue, 28 Aug 2012 12:34:17 +0000 (12:34 +0000)]
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

11 years agoAdd caching of the snapshot image form a surface
reed@google.com [Tue, 28 Aug 2012 12:19:02 +0000 (12:19 +0000)]
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

11 years agoAdded second "truncated" cpu/wall timer to bench
robertphillips@google.com [Tue, 28 Aug 2012 12:18:40 +0000 (12:18 +0000)]
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

11 years agoAdded default to switch to stop compiler failure in Chrome (unreviewed)
robertphillips@google.com [Tue, 28 Aug 2012 11:23:09 +0000 (11:23 +0000)]
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

11 years agoremove these (flakes)
reed@google.com [Mon, 27 Aug 2012 20:30:25 +0000 (20:30 +0000)]
remove these (flakes)

git-svn-id: http://skia.googlecode.com/svn/trunk@5296 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agorebaseline after text-gamma change
reed@google.com [Mon, 27 Aug 2012 20:23:57 +0000 (20:23 +0000)]
rebaseline after text-gamma change

git-svn-id: http://skia.googlecode.com/svn/trunk@5295 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agorebaseline after text-gamma change
reed@google.com [Mon, 27 Aug 2012 20:19:43 +0000 (20:19 +0000)]
rebaseline after text-gamma change

git-svn-id: http://skia.googlecode.com/svn/trunk@5294 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agorebaseline after text gamma change
reed@google.com [Mon, 27 Aug 2012 20:10:48 +0000 (20:10 +0000)]
rebaseline after text gamma change

git-svn-id: http://skia.googlecode.com/svn/trunk@5293 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd a new SkMemory implementation that uses mozalloc instead of malloc
george@mozilla.com [Mon, 27 Aug 2012 19:56:43 +0000 (19:56 +0000)]
Add a new SkMemory implementation that uses mozalloc instead of malloc

git-svn-id: http://skia.googlecode.com/svn/trunk@5292 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoScript to help cycle skia-autogen
borenet@google.com [Mon, 27 Aug 2012 19:37:48 +0000 (19:37 +0000)]
Script to help cycle skia-autogen
Review URL: https://codereview.appspot.com/6481066

git-svn-id: http://skia.googlecode.com/svn/trunk@5291 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoExplicitly cast to uin16_t to avoid an invalid implicit type narrowing.
george@mozilla.com [Mon, 27 Aug 2012 19:31:10 +0000 (19:31 +0000)]
Explicitly cast to uin16_t to avoid an invalid implicit type narrowing.

This was causing a build failure on OS X for us:

SkOTTable_head.h:124:72: error: non-type template argument evaluates to -2, which cannot be narrowed to type 'uint16_t' (aka 'unsigned short') [-Wc++11-narrowing]

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

git-svn-id: http://skia.googlecode.com/svn/trunk@5290 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdded cros_daisy to build bots list
robertphillips@google.com [Mon, 27 Aug 2012 17:57:58 +0000 (17:57 +0000)]
Added cros_daisy to build bots list

https://codereview.appspot.com/6481069/

git-svn-id: http://skia.googlecode.com/svn/trunk@5289 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoshape ops work in progress
caryclark@google.com [Mon, 27 Aug 2012 14:11:33 +0000 (14:11 +0000)]
shape ops work in progress
add copyrights everywhere
start working on quadratic line segments (for quad intersection)

git-svn-id: http://skia.googlecode.com/svn/trunk@5286 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoChange comment in PointTest to refer to GCC bug
borenet@google.com [Mon, 27 Aug 2012 13:14:46 +0000 (13:14 +0000)]
Change comment in PointTest to refer to GCC bug

git-svn-id: http://skia.googlecode.com/svn/trunk@5285 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoDo premul and r/b swap conversions in a custom effect
bsalomon@google.com [Mon, 27 Aug 2012 12:53:13 +0000 (12:53 +0000)]
Do premul and r/b swap conversions in a custom effect

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

git-svn-id: http://skia.googlecode.com/svn/trunk@5284 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFix PointTest.
bungeman@google.com [Fri, 24 Aug 2012 19:53:58 +0000 (19:53 +0000)]
Fix PointTest.
https://codereview.appspot.com/6486062/

git-svn-id: http://skia.googlecode.com/svn/trunk@5283 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRebaseline for r5280.
bungeman@google.com [Fri, 24 Aug 2012 19:49:29 +0000 (19:49 +0000)]
Rebaseline for r5280.

git-svn-id: http://skia.googlecode.com/svn/trunk@5281 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFix greenish text rendering on Linux.
bungeman@google.com [Fri, 24 Aug 2012 17:46:11 +0000 (17:46 +0000)]
Fix greenish text rendering on Linux.
https://codereview.appspot.com/6484048/

git-svn-id: http://skia.googlecode.com/svn/trunk@5280 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoCreated to fix http://code.google.com/p/skia/issues/detail?id=817 : UpdateDoxygen...
rmistry@google.com [Fri, 24 Aug 2012 17:16:05 +0000 (17:16 +0000)]
Created to fix code.google.com/p/skia/issues/detail?id=817 : UpdateDoxygen step does not fail when Doxygen step fails.
Review URL: https://codereview.appspot.com/6480060

git-svn-id: http://skia.googlecode.com/svn/trunk@5278 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoshape ops work in progress
caryclark@google.com [Fri, 24 Aug 2012 15:24:36 +0000 (15:24 +0000)]
shape ops work in progress
this fixes quad/line intersection

git-svn-id: http://skia.googlecode.com/svn/trunk@5277 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoUpdated options for test_picturs.py to match new option in render_pictures.
keyar@chromium.org [Thu, 23 Aug 2012 21:51:11 +0000 (21:51 +0000)]
Updated options for test_picturs.py to match new option in render_pictures.

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

git-svn-id: http://skia.googlecode.com/svn/trunk@5275 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoImplemented power of two tiling.
keyar@chromium.org [Thu, 23 Aug 2012 20:53:25 +0000 (20:53 +0000)]
Implemented power of two tiling.

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

git-svn-id: http://skia.googlecode.com/svn/trunk@5274 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMake gpu.gypi show up in IDE projects
bsalomon@google.com [Thu, 23 Aug 2012 19:18:29 +0000 (19:18 +0000)]
Make gpu.gypi show up in IDE projects

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

git-svn-id: http://skia.googlecode.com/svn/trunk@5270 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoProper Android fix, and revert of workaround in r5267. Unreviewed.
senorblanco@chromium.org [Thu, 23 Aug 2012 19:10:04 +0000 (19:10 +0000)]
Proper Android fix, and revert of workaround in r5267.  Unreviewed.

git-svn-id: http://skia.googlecode.com/svn/trunk@5269 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoWorkaround for Android crash (unreviewed).
senorblanco@chromium.org [Thu, 23 Aug 2012 18:58:24 +0000 (18:58 +0000)]
Workaround for Android crash (unreviewed).

git-svn-id: http://skia.googlecode.com/svn/trunk@5267 2bbb7eff-a529-9590-31e7-b0007b416f81