platform/upstream/libSkiaSharp.git
12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 years agoResult of running tools/sanitize_source_files.py (which was added in https://coderevi...
rmistry@google.com [Thu, 23 Aug 2012 18:22:09 +0000 (18:22 +0000)]
Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/)

This CL is part IV of IV (I broke down the 1280 files into 4 CLs).
Review URL: https://codereview.appspot.com/6475054

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

12 years agoResult of running tools/sanitize_source_files.py (which was added in https://coderevi...
rmistry@google.com [Thu, 23 Aug 2012 18:19:56 +0000 (18:19 +0000)]
Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/)

This CL is part III of IV (I broke down the 1280 files into 4 CLs).
Review URL: https://codereview.appspot.com/6475053

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

12 years agoResult of running tools/sanitize_source_files.py (which was added in https://coderevi...
rmistry@google.com [Thu, 23 Aug 2012 18:14:13 +0000 (18:14 +0000)]
Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/)

This CL is part II of IV (I broke down the 1280 files into 4 CLs).
Review URL: https://codereview.appspot.com/6474054

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

12 years agoResult of running tools/sanitize_source_files.py (which was added in https://coderevi...
rmistry@google.com [Thu, 23 Aug 2012 18:09:54 +0000 (18:09 +0000)]
Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/)

This CL is part I of IV (I broke down the 1280 files into 4 CLs).
Review URL: https://codereview.appspot.com/6485054

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

12 years agoAdded -min option to bench
robertphillips@google.com [Thu, 23 Aug 2012 17:50:06 +0000 (17:50 +0000)]
Added -min option to bench

http://codereview.appspot.com/6478052/

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

12 years agowarning fix (unreviewed).
senorblanco@chromium.org [Thu, 23 Aug 2012 16:29:26 +0000 (16:29 +0000)]
warning fix (unreviewed).

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

12 years agoSpeculative Android GM blend fix (unreviewed).
senorblanco@chromium.org [Thu, 23 Aug 2012 16:27:48 +0000 (16:27 +0000)]
Speculative Android GM blend fix (unreviewed).

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

12 years agoshape ops work in progress
caryclark@google.com [Thu, 23 Aug 2012 15:24:42 +0000 (15:24 +0000)]
shape ops work in progress
add xor spot tests
rewrite path compare
work on quadratic, angle, tooCloseToCall code

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

12 years agoChanged how tiles are copied to the master canvas.
keyar@chromium.org [Thu, 23 Aug 2012 15:24:13 +0000 (15:24 +0000)]
Changed how tiles are copied to the master canvas.

This is in preparation for adding the powers of two mode.

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

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

12 years agoFix bug in tools/sanitize_source_files.py
rmistry@google.com [Thu, 23 Aug 2012 14:46:18 +0000 (14:46 +0000)]
Fix bug in tools/sanitize_source_files.py
Review URL: https://codereview.appspot.com/6474053

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

12 years agoChange scratch texture cache behavior to only reuse scratch textures used as render...
rileya@google.com [Thu, 23 Aug 2012 14:08:57 +0000 (14:08 +0000)]
Change scratch texture cache behavior to only reuse scratch textures used as render targets if they will be reused as render targets.

The original behavior could sometimes confuse the driver; textures would alternate between being used as render targets and having data uploaded into them.
Review URL: https://codereview.appspot.com/6480049

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

12 years ago#if SK_DEBUG -> #ifdef SK_DEBUG in SkTDLinkedList.h (to fix chrome android trybot...
bsalomon@google.com [Thu, 23 Aug 2012 13:24:31 +0000 (13:24 +0000)]
#if SK_DEBUG -> #ifdef SK_DEBUG in SkTDLinkedList.h (to fix chrome android trybot errors)

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

12 years agoAdd gpu.gypi to ease skia->chrome rolls
bsalomon@google.com [Thu, 23 Aug 2012 12:55:01 +0000 (12:55 +0000)]
Add gpu.gypi to ease skia->chrome rolls

http://codereview.appspot.com/6486043/

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

12 years agoFixed compiler error in r5247 (unreviewed)
robertphillips@google.com [Thu, 23 Aug 2012 11:24:02 +0000 (11:24 +0000)]
Fixed compiler error in r5247 (unreviewed)

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

12 years agoRefactored GrDLinkedList into SkTDLinkedList
robertphillips@google.com [Thu, 23 Aug 2012 11:13:48 +0000 (11:13 +0000)]
Refactored GrDLinkedList into SkTDLinkedList

http://codereview.appspot.com/6484045/

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

12 years agoSplit out SkFontHost_FreeType into common files
george@mozilla.com [Thu, 23 Aug 2012 00:39:08 +0000 (00:39 +0000)]
Split out SkFontHost_FreeType into common files

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

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

12 years agoActually remove the GrMorphologyEffect.* files from svn, which I should've
senorblanco@chromium.org [Wed, 22 Aug 2012 20:58:33 +0000 (20:58 +0000)]
Actually remove the GrMorphologyEffect.* files from svn, which I should've
done in my last patch.  Unreviewed.

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

12 years agoMove the code for the GPU implementation of morphology effects from GrContext
senorblanco@chromium.org [Wed, 22 Aug 2012 20:51:19 +0000 (20:51 +0000)]
Move the code for the GPU implementation of morphology effects from GrContext
and GrMorphologyEffect.* into SkMorphologyImageFilter.cpp.

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

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

12 years agoAnother speculative Android build fix (unreviewed).
senorblanco@chromium.org [Wed, 22 Aug 2012 18:57:28 +0000 (18:57 +0000)]
Another speculative Android build fix (unreviewed).

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

12 years agoSkRef for expressions.
bungeman@google.com [Wed, 22 Aug 2012 18:56:56 +0000 (18:56 +0000)]
SkRef for expressions.
https://codereview.appspot.com/6475045/

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

12 years agoAndroid build fix (unreviewed).
senorblanco@chromium.org [Wed, 22 Aug 2012 18:34:16 +0000 (18:34 +0000)]
Android build fix (unreviewed).

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

12 years agoThe script does the following:
rmistry@google.com [Wed, 22 Aug 2012 18:10:37 +0000 (18:10 +0000)]
The script does the following:
* Adds a newline to the end of files if it does not have one.
* Sets svn:eol-style to LF.
* Replaces CRLF with LF.
* Replaces Tabs with 4 whitespaces.
* Removes trailing whitespaces.

Created to fix http://code.google.com/p/skia/issues/detail?id=779 : New buildbot step that fixes and submits whitespace and newline source file fixes.
Review URL: https://codereview.appspot.com/6465078

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

12 years agoFixed instance counting for templated classes
robertphillips@google.com [Wed, 22 Aug 2012 17:31:22 +0000 (17:31 +0000)]
Fixed instance counting for templated classes

http://codereview.appspot.com/6478045/

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

12 years agoFix for no-GPU build (unreviewed).
senorblanco@chromium.org [Wed, 22 Aug 2012 16:29:42 +0000 (16:29 +0000)]
Fix for no-GPU build (unreviewed).

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

12 years agoImplements the non-Porter-Duff compositing modes required for SVG's feBlend
senorblanco@chromium.org [Wed, 22 Aug 2012 16:24:44 +0000 (16:24 +0000)]
Implements the non-Porter-Duff compositing modes required for SVG's feBlend
element.  This filter has two inputs, since normal blending can't be used.  The
GPU side uses two filter stages to accomplish this:  one to sample the
background, and one to sample the foreground and blend it.

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

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

12 years agoSkBitmap::scrollRect changes pixels, but only if not immutable.
scroggo@google.com [Wed, 22 Aug 2012 16:19:52 +0000 (16:19 +0000)]
SkBitmap::scrollRect changes pixels, but only if not immutable.

scrollRect will now return false if the bitmap is immutable, and
call notifyPixelsChanged when changing the pixels. This will give
the bitmap a new generation ID.

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

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

12 years agoFix GPU-less build.
scroggo@google.com [Wed, 22 Aug 2012 15:14:43 +0000 (15:14 +0000)]
Fix GPU-less build.

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

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

12 years agoWhen copying a bitmap, copy the generation ID.
scroggo@google.com [Wed, 22 Aug 2012 15:00:05 +0000 (15:00 +0000)]
When copying a bitmap, copy the generation ID.

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

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

12 years agoRemove unnecessary flush from SkGpuDevice
bsalomon@google.com [Wed, 22 Aug 2012 13:30:37 +0000 (13:30 +0000)]
Remove unnecessary flush from SkGpuDevice

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

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

12 years agoRevert 5213. WK r126226 has landed in Chromium and the workaround is no longer necessary.
bsalomon@google.com [Wed, 22 Aug 2012 13:00:24 +0000 (13:00 +0000)]
Revert 5213. WK r126226 has landed in Chromium and the workaround is no longer necessary.

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

12 years agoDelete failing images on galaxy nexus (Issue 790).
bsalomon@google.com [Wed, 22 Aug 2012 12:56:29 +0000 (12:56 +0000)]
Delete failing images on galaxy nexus (Issue 790).

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

12 years agoScratch textures are no longer removed from the cache in Debug
robertphillips@google.com [Wed, 22 Aug 2012 11:03:19 +0000 (11:03 +0000)]
Scratch textures are no longer removed from the cache in Debug

http://codereview.appspot.com/6465079/

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

12 years agoAdded resource cache debug output to help track changes
robertphillips@google.com [Wed, 22 Aug 2012 10:57:05 +0000 (10:57 +0000)]
Added resource cache debug output to help track changes

http://codereview.appspot.com/6463079/

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

12 years agoDelete more win7 intel flaky hairline position images.
bsalomon@google.com [Tue, 21 Aug 2012 20:07:09 +0000 (20:07 +0000)]
Delete more win7 intel flaky hairline position images.

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

12 years agoForce opaque in SkBlendLCD16Opaque_SSE2 to match SkBlendLCD16.
bungeman@google.com [Tue, 21 Aug 2012 19:25:42 +0000 (19:25 +0000)]
Force opaque in SkBlendLCD16Opaque_SSE2 to match SkBlendLCD16.
https://codereview.appspot.com/6460123/

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

12 years agoUpdate bench_compare to do the comparison using different statistical methods
djsollen@google.com [Tue, 21 Aug 2012 19:10:05 +0000 (19:10 +0000)]
Update bench_compare to do the comparison using different statistical methods

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

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

12 years agoImages are written by PictureRenderer and not render_pictures_main.
keyar@chromium.org [Tue, 21 Aug 2012 19:05:08 +0000 (19:05 +0000)]
Images are written by PictureRenderer and not render_pictures_main.

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

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

12 years agoBenchmark results will now print to STDOUT if on not-Android.
keyar@chromium.org [Tue, 21 Aug 2012 17:57:59 +0000 (17:57 +0000)]
Benchmark results will now print to STDOUT if on not-Android.

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

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

12 years agoFlush in ~SkGpuDevice to unblock Skia roll
bsalomon@google.com [Tue, 21 Aug 2012 15:41:28 +0000 (15:41 +0000)]
Flush in ~SkGpuDevice to unblock Skia roll

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

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

12 years agoAdd check for EDSP to the 565 opaque blitter.
djsollen@google.com [Tue, 21 Aug 2012 15:27:29 +0000 (15:27 +0000)]
Add check for EDSP to the 565 opaque blitter.

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

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

12 years agoUpstream ARM 565 optimizations from AOSP.
djsollen@google.com [Tue, 21 Aug 2012 15:16:56 +0000 (15:16 +0000)]
Upstream ARM 565 optimizations from AOSP.

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

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

12 years agoFixed compilation issue when instance counting is disabled
robertphillips@google.com [Tue, 21 Aug 2012 15:16:41 +0000 (15:16 +0000)]
Fixed compilation issue when instance counting is disabled

http://codereview.appspot.com/6462089/

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

12 years agoshape ops work in progress
caryclark@google.com [Tue, 21 Aug 2012 13:13:52 +0000 (13:13 +0000)]
shape ops work in progress
working demo of old vs. new

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

12 years agoWhitespace change to trigger rebuild after master restart
borenet@google.com [Mon, 20 Aug 2012 22:58:18 +0000 (22:58 +0000)]
Whitespace change to trigger rebuild after master restart

Windows 64-bit build is now enabled - should fail due to
lack of VS2010 Pro.

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

12 years agoRemoved the TileInfo struct used in TiledPictureRenderer.
keyar@chromium.org [Mon, 20 Aug 2012 22:04:07 +0000 (22:04 +0000)]
Removed the TileInfo struct used in TiledPictureRenderer.

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

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

12 years agoFix typo in r5202, preventing include files from showing up.
senorblanco@chromium.org [Mon, 20 Aug 2012 21:35:00 +0000 (21:35 +0000)]
Fix typo in r5202, preventing include files from showing up.

Build fix; unreviewed.

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

12 years agoAdded copyright notice to PictureRenderer.cpp
keyar@chromium.org [Mon, 20 Aug 2012 21:02:49 +0000 (21:02 +0000)]
Added copyright notice to PictureRenderer.cpp

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

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

12 years agoExtract list of source files from effects.gyp into effects.gypi, as was done for
senorblanco@chromium.org [Mon, 20 Aug 2012 20:56:26 +0000 (20:56 +0000)]
Extract list of source files from effects.gyp into effects.gypi, as was done for
core.gyp.  This should make our lives easier when rolling DEPS.

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

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

12 years agoWhitespace change to trigger rebuild after restart (r5198)
borenet@google.com [Mon, 20 Aug 2012 20:08:02 +0000 (20:08 +0000)]
Whitespace change to trigger rebuild after restart (r5198)

Added/renamed bots

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

12 years agoAndroid build fix; unreviewed.
senorblanco@chromium.org [Mon, 20 Aug 2012 19:45:02 +0000 (19:45 +0000)]
Android build fix; unreviewed.

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

12 years agoMove SkColorFilterImageFilter into its own file.
senorblanco@chromium.org [Mon, 20 Aug 2012 19:23:24 +0000 (19:23 +0000)]
Move SkColorFilterImageFilter into its own file.

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

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

12 years agoRemove _UPM_ GrPixelConfigs
bsalomon@google.com [Mon, 20 Aug 2012 19:22:38 +0000 (19:22 +0000)]
Remove _UPM_ GrPixelConfigs
Review URL: http://codereview.appspot.com/6460113/

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

12 years agoEnable 64-bit builds on Windows
borenet@google.com [Mon, 20 Aug 2012 18:58:26 +0000 (18:58 +0000)]
Enable 64-bit builds on Windows

Encountered compile errors passing 64-bit size_t to
SkIntToScalar and needed to make adjustments to
gm/gradients.cpp and bench/PicturePlaybackBench.cpp.

Verified on my local Linux, Mac, and Windows machines.

As of this change, the skia_arch_width gyp define
actually forces a 32/64-bit build on Linux, Mac, and
Windows.
Review URL: https://codereview.appspot.com/6460112

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

12 years agoAdd TexParameteriv entry point so ANGLE interface will validate
robertphillips@google.com [Mon, 20 Aug 2012 18:17:40 +0000 (18:17 +0000)]
Add TexParameteriv entry point so ANGLE interface will validate

http://codereview.appspot.com/6441165/

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