platform/upstream/libSkiaSharp.git
12 years agoCombine multiple intersecting rects in SkClipStack::Iter.
bsalomon@google.com [Wed, 7 Nov 2012 21:19:10 +0000 (21:19 +0000)]
Combine multiple intersecting rects in SkClipStack::Iter.

R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6816104

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

12 years agoWhitespace change to trigger bots after r6337
borenet@google.com [Wed, 7 Nov 2012 21:18:59 +0000 (21:18 +0000)]
Whitespace change to trigger bots after r6337

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

12 years agoCG imagedecoder never sets isOpaque, so add method to SkBitmap to compute that,
reed@google.com [Wed, 7 Nov 2012 18:30:18 +0000 (18:30 +0000)]
CG imagedecoder never sets isOpaque, so add method to SkBitmap to compute that,
and call it from CG imagedecoder.
Review URL: https://codereview.appspot.com/6816101

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

12 years agoAdd a new PictureRenderer that draws the picture then breaks up into tiles.
scroggo@google.com [Wed, 7 Nov 2012 18:01:46 +0000 (18:01 +0000)]
Add a new PictureRenderer that draws the picture then breaks up into tiles.

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

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

12 years agoAdd an option to render_pictures to rerecord the pictures with PNG encoded bitmaps.
scroggo@google.com [Wed, 7 Nov 2012 17:52:48 +0000 (17:52 +0000)]
Add an option to render_pictures to rerecord the pictures with PNG encoded bitmaps.

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

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

12 years agoUnit testing for SkTileGrid
junov@chromium.org [Wed, 7 Nov 2012 17:38:38 +0000 (17:38 +0000)]
Unit testing for SkTileGrid
Review URL: https://codereview.appspot.com/6827053

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

12 years agoAdd low blur and AAClip options to picture bench.
caryclark@google.com [Wed, 7 Nov 2012 16:42:17 +0000 (16:42 +0000)]
Add low blur and AAClip options to picture bench.

Copy the settings instead of pointing to the
original set on the stack.
Review URL: https://codereview.appspot.com/6818103

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

12 years agoSome improvements to reduce the number of pixels touched in generating alpha clip...
bsalomon@google.com [Wed, 7 Nov 2012 16:17:24 +0000 (16:17 +0000)]
Some improvements to reduce the number of pixels touched in generating alpha clip masks
Review URL: https://codereview.appspot.com/6828043

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

12 years agoAdd temporary interfaces in blur and clip to
caryclark@google.com [Wed, 7 Nov 2012 14:54:49 +0000 (14:54 +0000)]
Add temporary interfaces in blur and clip to
permit testing if it is to our advantage
to selectively disable soft clipping and
high quality blurs during animations.
Review URL: https://codereview.appspot.com/6812092

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

12 years agofix SkRegion::intersects(rect) where the part of the rgn that we intersect is
reed@google.com [Wed, 7 Nov 2012 14:23:42 +0000 (14:23 +0000)]
fix SkRegion::intersects(rect) where the part of the rgn that we intersect is
the last run. The old bug was that we did an early exit from the loop because
we were comparing against the next rgn.bottom, instead of the current one.

inspired and fixed by danakj http://code.google.com/p/skia/issues/detail?id=958
Review URL: https://codereview.appspot.com/6812099

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

12 years agoConvert clipPaths to clipRects where possible in pictureRecord
robertphillips@google.com [Wed, 7 Nov 2012 13:01:25 +0000 (13:01 +0000)]
Convert clipPaths to clipRects where possible in pictureRecord

https://codereview.appspot.com/6820104/

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

12 years agofix SkRegion::contains(rect), thanks to danakj and http://code.google.com/p/skia...
mike@reedtribe.org [Wed, 7 Nov 2012 03:39:46 +0000 (03:39 +0000)]
fix SkRegion::contains(rect), thanks to danakj and code.google.com/p/skia/issues/detail?id=958

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

12 years agoadd SkRegion tests, inspired by http://code.google.com/p/skia/issues/detail?id=958
mike@reedtribe.org [Wed, 7 Nov 2012 01:57:32 +0000 (01:57 +0000)]
add SkRegion tests, inspired by code.google.com/p/skia/issues/detail?id=958

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

12 years agoDecode images during deserialization in the picture debugger.
scroggo@google.com [Tue, 6 Nov 2012 23:10:09 +0000 (23:10 +0000)]
Decode images during deserialization in the picture debugger.

Necessary now that our checked in SKPs have encoded bitmaps in them (since https://code.google.com/p/skia/source/detail?r=6317)

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

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

12 years agoinclude SkPaint.h
reed@google.com [Tue, 6 Nov 2012 22:14:54 +0000 (22:14 +0000)]
include SkPaint.h

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

12 years agoadd more utilities: roundIn(), offsetTo()
reed@google.com [Tue, 6 Nov 2012 22:02:51 +0000 (22:02 +0000)]
add more utilities: roundIn(), offsetTo()

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

12 years agoleading character accidentally deleted on merge
caryclark@google.com [Tue, 6 Nov 2012 21:29:16 +0000 (21:29 +0000)]
leading character accidentally deleted on merge

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

12 years agoadd draw filter option to picture_bench
caryclark@google.com [Tue, 6 Nov 2012 21:26:13 +0000 (21:26 +0000)]
add draw filter option to picture_bench

Option allows adding a draw filter option per type
or for all types. All SkPaint flags may be filtered,
plus disabling blur and setting the hint level.
Review URL: https://codereview.appspot.com/6816092

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

12 years agoBreak out SkOffsetImageFilter into its own file, and derive it from
senorblanco@chromium.org [Tue, 6 Nov 2012 20:29:39 +0000 (20:29 +0000)]
Break out SkOffsetImageFilter into its own file, and derive it from
SkSingleInputImageFilter, to make it DAG-friendly.

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

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

12 years agoAdding SkTileGrid: a new subclass of BBoxHierarchy, optimized for tiled playback.
junov@chromium.org [Tue, 6 Nov 2012 18:58:43 +0000 (18:58 +0000)]
Adding SkTileGrid: a new subclass of BBoxHierarchy, optimized for tiled playback.
Review URL: https://codereview.appspot.com/6820093

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

12 years agoAvoid re-definition of STDC symbols, needed for my ffmpeg work.
senorblanco@chromium.org [Tue, 6 Nov 2012 18:36:33 +0000 (18:36 +0000)]
Avoid re-definition of STDC symbols, needed for my ffmpeg work.

See changes to build/common.gypi in https://codereview.chromium.org/11364077/

BUG=118986, 91970

Review URL: https://codereview.appspot.com/6810088
Patch from PaweÅ‚ Hajdan, Jr. <phajdan.jr@chromium.org>.

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

12 years agoMinimal changes to SkFontHost_fontconfig to not crash in normal use.
bungeman@google.com [Tue, 6 Nov 2012 16:55:24 +0000 (16:55 +0000)]
Minimal changes to SkFontHost_fontconfig to not crash in normal use.

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

12 years agoFix the PictureRecord step of BenchPictures.
djsollen@google.com [Tue, 6 Nov 2012 16:54:40 +0000 (16:54 +0000)]
Fix the PictureRecord step of BenchPictures.

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

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

12 years agoEnhanced debugger with command indenting and Path Bound print out
robertphillips@google.com [Tue, 6 Nov 2012 16:45:36 +0000 (16:45 +0000)]
Enhanced debugger with command indenting and Path Bound print out

https://codereview.appspot.com/6820099/

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

12 years agoWhitespace change to trigger bots after r6307
borenet@google.com [Tue, 6 Nov 2012 15:51:26 +0000 (15:51 +0000)]
Whitespace change to trigger bots after r6307

Builds which skipped failing steps are showing successes; this is addressed in
https://code.google.com/p/skia/issues/detail?id=955

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

12 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Tue, 6 Nov 2012 13:18:25 +0000 (13:18 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

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

12 years agoRemove a pointless anonymous namespace in a header.
thakis@chromium.org [Tue, 6 Nov 2012 00:22:56 +0000 (00:22 +0000)]
Remove a pointless anonymous namespace in a header.
Review URL: https://codereview.appspot.com/6827047

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

12 years agoRemove assert to allow Android bots (that don't support NPOT textures) to continue...
robertphillips@google.com [Mon, 5 Nov 2012 21:00:26 +0000 (21:00 +0000)]
Remove assert to allow Android bots (that don't support NPOT textures) to continue in Debug mode

https://codereview.appspot.com/6820094/

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

12 years agoFix dumb mistake of passing the same matrix to both matrix params of GrGLMatrixEffect...
bsalomon@google.com [Mon, 5 Nov 2012 19:28:12 +0000 (19:28 +0000)]
Fix dumb mistake of passing the same matrix to both matrix params of GrGLMatrixEffect::GenKey in texture domain effect.

Review: Over-the-shoulder review from robertphillips@google.com

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

12 years agoRemove default texture coords / texture matrix
bsalomon@google.com [Mon, 5 Nov 2012 16:36:02 +0000 (16:36 +0000)]
Remove default texture coords / texture matrix
Review URL: https://codereview.appspot.com/6775100

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

12 years agoAttempt to patch Chrome compiler failures
robertphillips@google.com [Mon, 5 Nov 2012 01:31:44 +0000 (01:31 +0000)]
Attempt to patch Chrome compiler failures

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

12 years agoMake bench_pictures output a meaningful config name.
scroggo@google.com [Fri, 2 Nov 2012 22:01:26 +0000 (22:01 +0000)]
Make bench_pictures output a meaningful config name.

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

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

12 years agoMake all remaining effects use GrGLEffectMatrix
bsalomon@google.com [Fri, 2 Nov 2012 21:45:01 +0000 (21:45 +0000)]
Make all remaining effects use GrGLEffectMatrix

R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6817079

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

12 years agoIn bench_pictures --multi, maintain thread local caches.
scroggo@google.com [Fri, 2 Nov 2012 21:28:12 +0000 (21:28 +0000)]
In bench_pictures --multi, maintain thread local caches.

Builds on https://codereview.appspot.com/6718046/ by mtklein.

Previously, each iteration of drawing a picture started new threads to draw the picture. Since each thread is using thread local storage for the font cache, this means that each iteration had to start with an empty font cache.

The newly added MultiCorePictureRenderer, separated from TiledPictureRenderer, now starts the drawing threads at the beginning of the test using an SkThreadPool, and keeps them alive through all iterations, so the font cache can be reused.

For now, I have removed the pipe version of the threaded renderer.

Updated bench_pictures_main and render_pictures_main to use the new
renderer, and to unref a renderer before early exit.

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

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

12 years agoadd blurrect gm
reed@google.com [Fri, 2 Nov 2012 21:11:12 +0000 (21:11 +0000)]
add blurrect gm

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

12 years agoWhen cloning into an SkPicture, clear its data.
scroggo@google.com [Fri, 2 Nov 2012 20:51:19 +0000 (20:51 +0000)]
When cloning into an SkPicture, clear its data.

Prevents a memory leak if the caller clones into an SkPicture
that already has a playback or record.

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

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

12 years agoMake morphology, convolution, and table color filter opt out of default texture matrices.
bsalomon@google.com [Fri, 2 Nov 2012 20:45:37 +0000 (20:45 +0000)]
Make morphology, convolution, and table color filter opt out of default texture matrices.
Review URL: https://codereview.appspot.com/6817077

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

12 years agoadd 'c' toggle to test clipping
reed@google.com [Fri, 2 Nov 2012 19:59:18 +0000 (19:59 +0000)]
add 'c' toggle to test clipping

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

12 years agoMake GrGLTextureDomainEffect use GrGLEffectMatrix.
bsalomon@google.com [Fri, 2 Nov 2012 19:50:26 +0000 (19:50 +0000)]
Make GrGLTextureDomainEffect use GrGLEffectMatrix.

Also, don't send redundant domain.
Review URL: https://codereview.appspot.com/6820082

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

12 years agoFixing crash in render_pictures. Uninitialized member in PictureRenderer
junov@chromium.org [Fri, 2 Nov 2012 19:16:22 +0000 (19:16 +0000)]
Fixing crash in render_pictures. Uninitialized member in PictureRenderer

TBR=scroggo

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

12 years agoSplit off SkConsistentChecksum from SkChecksum
epoger@google.com [Fri, 2 Nov 2012 18:35:04 +0000 (18:35 +0000)]
Split off SkConsistentChecksum from SkChecksum
as part of https://goto.google.com/ImprovingTheSkiaRebaseliningProcess
Review URL: https://codereview.appspot.com/6820074

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

12 years agoMake GrGLConfigConversionEffect use GrGLEffectMatrix
bsalomon@google.com [Fri, 2 Nov 2012 18:23:45 +0000 (18:23 +0000)]
Make GrGLConfigConversionEffect use GrGLEffectMatrix
Review URL: https://codereview.appspot.com/6815074

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

12 years agoAdding rtree support to the bench_pictures utility
junov@chromium.org [Fri, 2 Nov 2012 18:11:49 +0000 (18:11 +0000)]
Adding rtree support to the bench_pictures utility
Review URL: https://codereview.appspot.com/6775080

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

12 years agoFix for 2 parallel gpu rendering issues (bigbitmaprect & image-surface)
robertphillips@google.com [Fri, 2 Nov 2012 17:38:28 +0000 (17:38 +0000)]
Fix for 2 parallel gpu rendering issues (bigbitmaprect & image-surface)

https://codereview.appspot.com/6816079/

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

12 years agoAnother whitespace change to trigger bots
borenet@google.com [Fri, 2 Nov 2012 12:46:23 +0000 (12:46 +0000)]
Another whitespace change to trigger bots

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

12 years agoWhitespace change to trigger bots
borenet@google.com [Fri, 2 Nov 2012 12:23:00 +0000 (12:23 +0000)]
Whitespace change to trigger bots

Fixed chicken-and-egg problem where the update_scripts step couldn't run
because the script hadn't been downloaded yet.

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

12 years agoWhitespace change to trigger rebuild after r6259
borenet@google.com [Fri, 2 Nov 2012 11:37:26 +0000 (11:37 +0000)]
Whitespace change to trigger rebuild after r6259

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

12 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Fri, 2 Nov 2012 02:01:24 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

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

12 years agoDisable static asserts to get Chrome compiling
robertphillips@google.com [Thu, 1 Nov 2012 22:18:10 +0000 (22:18 +0000)]
Disable static asserts to get Chrome compiling

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

12 years agoSupport render_pdfs in iOS too (add tool_main()).
edisonn@google.com [Thu, 1 Nov 2012 20:07:33 +0000 (20:07 +0000)]
Support render_pdfs in iOS too (add tool_main()).

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

12 years agoAdd utility to convert skp files to pdf files. Code compatible with render_pictures_...
edisonn@google.com [Thu, 1 Nov 2012 19:52:38 +0000 (19:52 +0000)]
Add utility to convert skp files to pdf files.  Code compatible with render_pictures_main.cpp. I could have refactored the code to avoid code duplication, but it does not seem right, and it will overcomplicate the code.
Review URL: https://codereview.appspot.com/6615073

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

12 years agoCheck modulo values passed to GM.
bsalomon@google.com [Thu, 1 Nov 2012 18:03:48 +0000 (18:03 +0000)]
Check modulo values passed to GM.

R=reed@google.com
Review URL: https://codereview.appspot.com/6820073

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

12 years agoReplace GrMatrix with SkMatrix.
bsalomon@google.com [Thu, 1 Nov 2012 18:02:54 +0000 (18:02 +0000)]
Replace GrMatrix with SkMatrix.
Review URL: https://codereview.appspot.com/6814067

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

12 years agoFix NoGPU build
borenet@google.com [Thu, 1 Nov 2012 18:01:08 +0000 (18:01 +0000)]
Fix NoGPU build

Some link settings were set in the wrong targets

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

12 years agoImprove NaCl support
borenet@google.com [Thu, 1 Nov 2012 17:43:44 +0000 (17:43 +0000)]
Improve NaCl support

- Add nacl_make script to build Skia targets for NaCl using gyp
- Add nacl_interface for command-line apps
- Add nacl_sample as front-end for SampleApp
- Add freetype to DEPS
- Various gyp tweaks for NaCl

TODO:
- Implement GL interface
- Implement font host
- Fix plumbing so that SampleApp works properly
Review URL: https://codereview.appspot.com/6671044

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

12 years agoFix leaks in SkSurface_Gpu.cpp
robertphillips@google.com [Thu, 1 Nov 2012 17:31:02 +0000 (17:31 +0000)]
Fix leaks in SkSurface_Gpu.cpp

https://codereview.appspot.com/6826046/

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

12 years agoRemove GrScalar, replace with SkScalar.
bsalomon@google.com [Thu, 1 Nov 2012 17:12:34 +0000 (17:12 +0000)]
Remove GrScalar, replace with SkScalar.
Review URL: https://codereview.appspot.com/6812064

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

12 years agoRefactoring RTree integration to support SkBBoxHierarchy polymorphism in SkPicture.
junov@chromium.org [Thu, 1 Nov 2012 17:10:32 +0000 (17:10 +0000)]
Refactoring RTree integration to support SkBBoxHierarchy polymorphism in SkPicture.
This moves the rtree creation into a virtual method.
Review URL: https://codereview.appspot.com/6811057

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

12 years agoReland r6233 with fix.
bsalomon@google.com [Thu, 1 Nov 2012 17:02:46 +0000 (17:02 +0000)]
Reland r6233 with fix.

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

12 years agoUse SkToBool to fix a warning.
scroggo@google.com [Thu, 1 Nov 2012 16:28:23 +0000 (16:28 +0000)]
Use SkToBool to fix a warning.

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

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

12 years agoRe-revert r6233.
bsalomon@google.com [Thu, 1 Nov 2012 15:47:55 +0000 (15:47 +0000)]
Re-revert r6233.

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

12 years agoReland r6233 with fix for config conversion texture matrices.
bsalomon@google.com [Thu, 1 Nov 2012 15:40:47 +0000 (15:40 +0000)]
Reland r6233 with fix for config conversion texture matrices.

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

12 years agoRevert r6233 while investigating bot failures.
bsalomon@google.com [Thu, 1 Nov 2012 14:02:43 +0000 (14:02 +0000)]
Revert r6233 while investigating bot failures.

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

12 years agoCheckpoint in moving texture matrices out of GrGLProgram and into GrGLEffect.
bsalomon@google.com [Thu, 1 Nov 2012 13:50:50 +0000 (13:50 +0000)]
Checkpoint in moving texture matrices out of GrGLProgram and into GrGLEffect.
Review URL: https://codereview.appspot.com/6818064

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

12 years agoFix asserts in SkPathMeasure to honor documented API
djsollen@google.com [Thu, 1 Nov 2012 12:15:12 +0000 (12:15 +0000)]
Fix asserts in SkPathMeasure to honor documented API

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

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

12 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Thu, 1 Nov 2012 02:01:27 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

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

12 years agoGDI fonthost to serialize using correct font name.
bungeman@google.com [Wed, 31 Oct 2012 20:53:49 +0000 (20:53 +0000)]
GDI fonthost to serialize using correct font name.
https://codereview.appspot.com/6822060/

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

12 years agoadd SkScalarsEqual() so we don't have to use memcmp for arrays of floats.
reed@google.com [Wed, 31 Oct 2012 19:59:23 +0000 (19:59 +0000)]
add SkScalarsEqual() so we don't have to use memcmp for arrays of floats.

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

12 years agoImplement SkCondVar for windows.
scroggo@google.com [Wed, 31 Oct 2012 19:29:13 +0000 (19:29 +0000)]
Implement SkCondVar for windows.

Only works on Vista or later, since it uses condition variables.

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

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

12 years agoshape ops work in progress
caryclark@google.com [Wed, 31 Oct 2012 19:00:20 +0000 (19:00 +0000)]
shape ops work in progress

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

12 years agoMake SkShader store localM directly rather than as a separate alloc.
bsalomon@google.com [Wed, 31 Oct 2012 18:09:01 +0000 (18:09 +0000)]
Make SkShader store localM directly rather than as a separate alloc.

May cause very slight GM changes in gpu two pt radial/conical radients.
Review URL: https://codereview.appspot.com/6821056

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

12 years agocatch case where clipping shortened the line down to a single pixel, but our
reed@google.com [Wed, 31 Oct 2012 17:57:01 +0000 (17:57 +0000)]
catch case where clipping shortened the line down to a single pixel, but our
state variables made us draw twice... with different fractional positions (yikes).

Inspired by http://code.google.com/p/chromium/issues/detail?id=148638
tho not necessarily a fix for that issue (can't repro the issue yet).

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

12 years agoShortcut inverting the identity matrix.
bsalomon@google.com [Wed, 31 Oct 2012 16:50:38 +0000 (16:50 +0000)]
Shortcut inverting the identity matrix.

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

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

12 years agoAdd SkThreadPool for managing threads.
scroggo@google.com [Wed, 31 Oct 2012 15:52:16 +0000 (15:52 +0000)]
Add SkThreadPool for managing threads.

Skia-ized from https://codereview.appspot.com/6755043/

TODO: Use SkThread and platform independent features.

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

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

12 years agoFix for error in r6214 (missing pre-declaration)
robertphillips@google.com [Wed, 31 Oct 2012 14:58:16 +0000 (14:58 +0000)]
Fix for error in r6214 (missing pre-declaration)

Unreviewed

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

12 years agoFleshed out GPU portion of image/surface feature
robertphillips@google.com [Wed, 31 Oct 2012 14:48:39 +0000 (14:48 +0000)]
Fleshed out GPU portion of image/surface feature

https://codereview.appspot.com/6813055/

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

12 years agoAdd validation check to GrGpu::createTexture & minor SkGpuDevice cleanup
robertphillips@google.com [Wed, 31 Oct 2012 13:56:35 +0000 (13:56 +0000)]
Add validation check to GrGpu::createTexture & minor SkGpuDevice cleanup

https://codereview.appspot.com/6821055/

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

12 years agoGanesh resource cache changes
robertphillips@google.com [Wed, 31 Oct 2012 12:25:21 +0000 (12:25 +0000)]
Ganesh resource cache changes

https://codereview.appspot.com/6784051/

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

12 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Wed, 31 Oct 2012 02:01:18 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

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

12 years agoWhitespace change to trigger bots
borenet@google.com [Tue, 30 Oct 2012 21:12:16 +0000 (21:12 +0000)]
Whitespace change to trigger bots

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

12 years agoadd test for bug in line drawing. fix is pending a way to handle all of the
reed@google.com [Tue, 30 Oct 2012 20:26:58 +0000 (20:26 +0000)]
add test for bug in line drawing. fix is pending a way to handle all of the
rebaselines...

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

12 years agoUpstreaming changes from gpu_dev to trunk.
bsalomon@google.com [Tue, 30 Oct 2012 20:17:54 +0000 (20:17 +0000)]
Upstreaming changes from gpu_dev to trunk.

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

12 years agoEliminating implicit conversion from enum to bool. Fixes compiler warning
junov@chromium.org [Tue, 30 Oct 2012 19:05:17 +0000 (19:05 +0000)]
Eliminating implicit conversion from enum to bool. Fixes compiler warning
Review URL: https://codereview.appspot.com/6819053

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

12 years agocomment-only: add "this may change" warning to SkChecksum.h
epoger@google.com [Tue, 30 Oct 2012 17:33:09 +0000 (17:33 +0000)]
comment-only: add "this may change" warning to SkChecksum.h
Review URL: https://codereview.appspot.com/6810054

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

12 years agoRevert r6051, re-adding json to DEPS file
epoger@google.com [Tue, 30 Oct 2012 16:25:17 +0000 (16:25 +0000)]
Revert r6051, re-adding json to DEPS file
Review URL: https://codereview.appspot.com/6816059

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

12 years agoRemove unnecessary mul and assignment in gradient shaders.
bsalomon@google.com [Tue, 30 Oct 2012 15:50:22 +0000 (15:50 +0000)]
Remove unnecessary mul and assignment in gradient shaders.

R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6814056

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

12 years agoAdd GL texture validity check to GrGpuGL
robertphillips@google.com [Tue, 30 Oct 2012 15:18:10 +0000 (15:18 +0000)]
Add GL texture validity check to GrGpuGL

https://codereview.appspot.com/6817053/

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

12 years agoSimple rebaseline tool: Add support for ANGLE, DirectWrite builders.
senorblanco@chromium.org [Tue, 30 Oct 2012 14:34:55 +0000 (14:34 +0000)]
Simple rebaseline tool:  Add support for ANGLE, DirectWrite builders.
Set svn mime type to image/png.

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

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

12 years agofactor out computation for dy in SkEdge lines, so we can later try a fix.
reed@google.com [Tue, 30 Oct 2012 14:28:03 +0000 (14:28 +0000)]
factor out computation for dy in SkEdge lines, so we can later try a fix.

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

12 years agoFix cross compilation with mingw.
bungeman@google.com [Tue, 30 Oct 2012 14:15:32 +0000 (14:15 +0000)]
Fix cross compilation with mingw.

Mingw is case sensitive, so use the correct capitaliztion of dwrite.h.
https://codereview.appspot.com/6588055

Props jacek.

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

12 years agoExpose vertex position to GrGLEffect via GrGLShaderBuilder.
bsalomon@google.com [Tue, 30 Oct 2012 12:34:25 +0000 (12:34 +0000)]
Expose vertex position to GrGLEffect via GrGLShaderBuilder.

R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6814054

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6195 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoUse consistent globals in AttachCache.
bungeman@google.com [Mon, 29 Oct 2012 20:16:30 +0000 (20:16 +0000)]
Use consistent globals in AttachCache.
https://codereview.appspot.com/6816052/

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

12 years agoRebase gpu_dev up to r5182
bsalomon@google.com [Mon, 29 Oct 2012 20:13:42 +0000 (20:13 +0000)]
Rebase gpu_dev up to r5182

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6187 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoAdd file accidentally omitted from r6182.
bsalomon@google.com [Mon, 29 Oct 2012 20:02:06 +0000 (20:02 +0000)]
Add file accidentally omitted from r6182.

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6186 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoPass GrCustomStage to key-generation functions and emitCode().
bsalomon@google.com [Mon, 29 Oct 2012 19:51:22 +0000 (19:51 +0000)]
Pass GrCustomStage to key-generation functions and emitCode().

R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6819046

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6182 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoFix alpha computation for specular lighting filter (GPU path).
senorblanco@chromium.org [Mon, 29 Oct 2012 19:47:06 +0000 (19:47 +0000)]
Fix alpha computation for specular lighting filter (GPU path).
Change lighting GM background to show blending.

NOTE:  This will require new results for the lighting GM.

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

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

12 years agoAllow default texture cache limit to be set within gyp.
djsollen@google.com [Mon, 29 Oct 2012 19:24:45 +0000 (19:24 +0000)]
Allow default texture cache limit to be set within gyp.

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

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

12 years agoAlphabetize gm options (in usage message and option parser).
epoger@google.com [Mon, 29 Oct 2012 18:59:17 +0000 (18:59 +0000)]
Alphabetize gm options (in usage message and option parser).
Also add long-form option names for all options.
Review URL: https://codereview.appspot.com/6817050

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

12 years agoFirst stab at a simple rebaseline script.
senorblanco@chromium.org [Mon, 29 Oct 2012 18:06:26 +0000 (18:06 +0000)]
First stab at a simple rebaseline script.

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

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

12 years agoAdd option to gm: write out images into a hierarchy, rather than a flat set of files
epoger@google.com [Mon, 29 Oct 2012 16:42:11 +0000 (16:42 +0000)]
Add option to gm: write out images into a hierarchy, rather than a flat set of files
BUG=https://code.google.com/p/skia/issues/detail?id=743
Review URL: https://codereview.appspot.com/6810047

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