external/skia/src.git
2 hours agoSanitizing source files in Housekeeper-Nightly master
skia.committer@gmail.com [Thu, 23 May 2013 07:01:22 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

9 hours agoReverting r9245 due to Chrome breakage
robertphillips@google.com [Wed, 22 May 2013 23:56:49 +0000 (23:56 +0000)]
Reverting r9245 due to Chrome breakage

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

12 hours agouse macro to encapsulate building get_mtname() specializations
reed@google.com [Wed, 22 May 2013 20:53:42 +0000 (20:53 +0000)]
use macro to encapsulate building get_mtname() specializations

BUG=

Review URL: https://codereview.chromium.org/15773002

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

13 hours agoexpand SkLua to handle creation of its own State
reed@google.com [Wed, 22 May 2013 20:12:50 +0000 (20:12 +0000)]
expand SkLua to handle creation of its own State

add lua sample

BUG=
R=robertphillips@google.com

Review URL: https://codereview.chromium.org/15742009

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

14 hours agoRemove SkImageFilter::getInputResult(), since its return value is not
senorblanco@chromium.org [Wed, 22 May 2013 18:59:58 +0000 (18:59 +0000)]
Remove SkImageFilter::getInputResult(), since its return value is not
style-compliant, and doesn't allow us to abort on failure.

R=reed@google.com

Review URL: https://codereview.chromium.org/15600003

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

17 hours agofix int -> bool warning
reed@google.com [Wed, 22 May 2013 15:43:21 +0000 (15:43 +0000)]
fix int -> bool warning

BUG=

Review URL: https://codereview.chromium.org/15737012

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

18 hours agoadd dumpops.lua as a sample scraper that just dumps the arguments
reed@google.com [Wed, 22 May 2013 15:13:18 +0000 (15:13 +0000)]
add dumpops.lua as a sample scraper that just dumps the arguments

add SkLua.h for common utilities

BUG=
R=rmistry@google.com

Review URL: https://codereview.chromium.org/15737010

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

18 hours agoMake GrGLProgramDesc's key variable length by compacting the effect key array
bsalomon@google.com [Wed, 22 May 2013 14:34:04 +0000 (14:34 +0000)]
Make GrGLProgramDesc's key variable length by compacting the effect key array

R=robertphillips@google.com

Review URL: https://codereview.chromium.org/15252004

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

19 hours agoreenable lerpmode in gms, now that I think we fixed the global-initialization
reed@google.com [Wed, 22 May 2013 13:21:32 +0000 (13:21 +0000)]
reenable lerpmode in gms, now that I think we fixed the global-initialization

BUG=

Review URL: https://codereview.chromium.org/15737004

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

20 hours agoAdd methods to SkLayerDrawLooper to allow adding layers on top
commit-bot@chromium.org [Wed, 22 May 2013 12:35:50 +0000 (12:35 +0000)]
Add methods to SkLayerDrawLooper to allow adding layers on top
as well as on the bottom.

This is more convenient for some callers who generate layers
from a data structure in bottom-to-top, rather than top-to-bottom,
order.

BUG=242529
R=tomhudson@chromium.org

Author: jbroman@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15314003

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

26 hours agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Wed, 22 May 2013 07:01:13 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

33 hours agoFix clang warnings/errors in Android only code
robertphillips@google.com [Wed, 22 May 2013 00:12:43 +0000 (00:12 +0000)]
Fix clang warnings/errors in Android only code

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

35 hours agoadd SkLerpXfermode
reed@google.com [Tue, 21 May 2013 21:33:11 +0000 (21:33 +0000)]
add SkLerpXfermode

BUG=
R=bsalomon@google.com

Review URL: https://codereview.chromium.org/15602003

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

36 hours agoPatch to prevent chromium breakage until the DEPS.
scroggo@google.com [Tue, 21 May 2013 20:45:03 +0000 (20:45 +0000)]
Patch to prevent chromium breakage until the DEPS.

Once https://codereview.chromium.org/15489004/ is submitted to
Skia, a DEPS roll into chrome will break due to a change in the
API. A long term fix for chrome to use the new API is at
https://codereview.chromium.org/15496006/, but since it depends
on the earlier Skia change, this patch fills in the gap.

Will be reverted once https://codereview.chromium.org/15496006/
is submitted to chrome.

R=djsollen@google.com

Review URL: https://codereview.chromium.org/15538005

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

36 hours agoAdd prototype for warning.
scroggo@google.com [Tue, 21 May 2013 20:38:40 +0000 (20:38 +0000)]
Add prototype for warning.

Fixes build.

Review URL: https://codereview.chromium.org/15536007

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

36 hours agoNew API for encoding bitmaps during serialization.
scroggo@google.com [Tue, 21 May 2013 20:31:23 +0000 (20:31 +0000)]
New API for encoding bitmaps during serialization.

This change gives more flexibility to the implementation of
EncodeBitmap to prefer calling refEncodedData, doing its own
encode, or even doing both and making a decision about which
to use.

The new function signature also allows the implementation to
tell the ordered write buffer whether to store the pixel offset,
in the case where the encoded bitmap represents the larger
bitmap, or to ignore the pixel offset, in the case where the
implementation only encoded the subset that is used.

Requires changes to chromium to use the new function signature.
(https://codereview.chromium.org/15496006/)

SkPicture:
New API for EncodeBitmap.

SkOrderedReadBuffer:
Ifdef'd out addition of reading the offset.

SkOrderedWriteBuffer:
Never call refEncodedData. Allow the user to call that from their
EncodeBitmap function, if desired.
This addresses https://code.google.com/p/skia/issues/detail?id=1239
Add in ifdef'd out code to record the offset.

PictureTest and PictureRenderer:
Implement the new definition of EncodeBitmap. Also update the name
of the function to meet coding style guidelines.

BUG=https://code.google.com/p/skia/issues/detail?id=1239
R=reed@google.com

Review URL: https://codereview.chromium.org/15489004

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

36 hours agoremove extra return statement (doh)
reed@google.com [Tue, 21 May 2013 20:30:17 +0000 (20:30 +0000)]
remove extra return statement (doh)

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

37 hours agoFixing deferred canvases so that they do not return deferred devices on createCompati...
junov@chromium.org [Tue, 21 May 2013 20:16:17 +0000 (20:16 +0000)]
Fixing deferred canvases so that they do not return deferred devices on createCompatibleDevice

TEST= DeferredCanvas unit test.

Review URL: https://codereview.chromium.org/15594004

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

37 hours agoFix android font lookup bug
djsollen@google.com [Tue, 21 May 2013 20:08:10 +0000 (20:08 +0000)]
Fix android font lookup bug

R=reed@google.com

Review URL: https://codereview.chromium.org/15602002

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

39 hours agoadd SkPath as real lua object
reed@google.com [Tue, 21 May 2013 17:52:33 +0000 (17:52 +0000)]
add SkPath as real lua object

R=robertphillips@google.com

Review URL: https://codereview.chromium.org/15563013

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

40 hours agoFix release build warnings for unused variables
djsollen@google.com [Tue, 21 May 2013 17:15:27 +0000 (17:15 +0000)]
Fix release build warnings for unused variables

R=rmistry@google.com

Review URL: https://codereview.chromium.org/15565008

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

40 hours agoAdd a fontConfig interface for android.
djsollen@google.com [Tue, 21 May 2013 16:53:50 +0000 (16:53 +0000)]
Add a fontConfig interface for android.

The contents of this CL are based on the SkFontHost_android.cpp found
in the android repository.

BUG=
R=reed@google.com

Review URL: https://codereview.chromium.org/14731025

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

40 hours agoAdd buffer helper to read directly into SkString to avoid extra copying
djsollen@google.com [Tue, 21 May 2013 16:17:14 +0000 (16:17 +0000)]
Add buffer helper to read directly into SkString to avoid extra copying

R=reed@google.com

Review URL: https://codereview.chromium.org/15179008

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

44 hours agosupport SkCanvas as a real lua object
mike@reedtribe.org [Tue, 21 May 2013 12:20:39 +0000 (12:20 +0000)]
support SkCanvas as a real lua object

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

2 days agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Tue, 21 May 2013 07:01:40 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

2 days agoMove SkImage::encode to SkImage_Codec.cpp.
commit-bot@chromium.org [Mon, 20 May 2013 23:57:38 +0000 (23:57 +0000)]
Move SkImage::encode to SkImage_Codec.cpp.

Chrome depends on SkImage.cpp, but does not include SkImageDecoder,
so having SkImage::encode in SkImage.cpp breaks chromium. Temporarily
fix the problem by moving the implementation into SkImage_Codec.cpp.

The larger fix will be to solve
https://code.google.com/p/skia/issues/detail?id=1275

R=reed@google.com, robertphillips@google.com

Author: scroggo@google.com

Review URL: https://chromiumcodereview.appspot.com/15314004

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

2 days agofix boolean check for unknown rtconf variables in files.
humper@google.com [Mon, 20 May 2013 17:14:40 +0000 (17:14 +0000)]
fix boolean check for unknown rtconf variables in files.

BUG=

Review URL: https://codereview.chromium.org/15300019

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

2 days agoadd SkDrawPictureCallback optional parameter to drawPicture(), which can abort the...
reed@google.com [Mon, 20 May 2013 17:02:41 +0000 (17:02 +0000)]
add SkDrawPictureCallback optional parameter to drawPicture(), which can abort the picture drawing.

R=bsalomon@google.com

Review URL: https://codereview.chromium.org/14598023

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

2 days agoMake DecodeMemoryToTarget handle more configs.
scroggo@google.com [Mon, 20 May 2013 16:58:16 +0000 (16:58 +0000)]
Make DecodeMemoryToTarget handle more configs.

In SkImageDecoder::DecodeMemoryToTarget, if SkBitmapToImageInfo fails due to an unsupported config, copy to 8888.

Needed for https://codereview.chromium.org/15145004/ and
https://codereview.chromium.org/12851012/ for all bitmaps to be
decoded properly in render_pictures and bench_pictures.

R=reed@google.com

Review URL: https://codereview.chromium.org/14772035

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

2 days agoReland path bounds change with correct bounds for convex and hairline path renderers.
bsalomon@google.com [Mon, 20 May 2013 16:49:06 +0000 (16:49 +0000)]
Reland path bounds change with correct bounds for convex and hairline path renderers.

R=robertphillips@google.com

Review URL: https://codereview.chromium.org/15465005

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

2 days agoadd encodeData() to SkImageEncoder, and add encoding to SkImage
reed@google.com [Mon, 20 May 2013 16:33:41 +0000 (16:33 +0000)]
add encodeData() to SkImageEncoder, and add encoding to SkImage

BUG=
R=scroggo@google.com

Review URL: https://codereview.chromium.org/15002004

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

2 days agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Mon, 20 May 2013 11:51:35 +0000 (11:51 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

5 days agoOne SkTSearch to rule them all. Allow key to be of different type than the array.
bsalomon@google.com [Fri, 17 May 2013 19:05:03 +0000 (19:05 +0000)]
One SkTSearch to rule them all. Allow key to be of different type than the array.

R=bungeman@google.com

Review URL: https://codereview.chromium.org/15070011

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

5 days agoRevert "Revert "Revert "Pass bounds into draw calls in path renderers."""
bsalomon@google.com [Fri, 17 May 2013 18:01:38 +0000 (18:01 +0000)]
Revert "Revert "Revert "Pass bounds into draw calls in path renderers."""

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

5 days agofix uninitialized adcd
bsalomon@google.com [Fri, 17 May 2013 13:31:57 +0000 (13:31 +0000)]
fix uninitialized adcd

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

5 days agoRevert "Revert "Pass bounds into draw calls in path renderers.""
bsalomon@google.com [Fri, 17 May 2013 13:31:40 +0000 (13:31 +0000)]
Revert "Revert "Pass bounds into draw calls in path renderers.""

This reverts commit 2b80eb179df14c7c8d67b8ef2b2ee60efc504f65.

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

5 days agoAdd special handling of rectori case for gpu
robertphillips@google.com [Fri, 17 May 2013 12:50:27 +0000 (12:50 +0000)]
Add special handling of rectori case for gpu

https://codereview.chromium.org/15080010/

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

6 days agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Fri, 17 May 2013 07:01:11 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

6 days agoRevert "Pass bounds into draw calls in path renderers."
bsalomon@google.com [Thu, 16 May 2013 20:54:05 +0000 (20:54 +0000)]
Revert "Pass bounds into draw calls in path renderers."

This reverts commit 9e6c4259d8453b893b4abc28beba8f77226d18d1.

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

6 days agoPass bounds into draw calls in path renderers.
bsalomon@google.com [Thu, 16 May 2013 19:58:46 +0000 (19:58 +0000)]
Pass bounds into draw calls in path renderers.

R=jvanverth@google.com, robertphillips@google.com

Review URL: https://codereview.chromium.org/14882011

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

6 days agoBand-aid for subsetted bitmaps in SKPs.
scroggo@google.com [Thu, 16 May 2013 19:35:39 +0000 (19:35 +0000)]
Band-aid for subsetted bitmaps in SKPs.

Partial fix for https://code.google.com/p/skia/issues/detail?id=1301.

Instead of firing an assert when the recorded width and height do
not match the encoded data's width and height, take a subset of
the bitmap of the correct size.

The bitmap may be drawn incorrectly, since it will not necessarily
be the correct subset (though it will be the correct size). The
complete fix will be to record the offset to the stream. Holding off
on that since it will change the PICTURE_VERSION. There is still
more work to do on read/writeBitmap, and I would like to change
PICTURE_VERSION as few times as possible.

BUG=https://code.google.com/p/skia/issues/detail?id=1301
R=djsollen@google.com

Review URL: https://codereview.chromium.org/15159004

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

6 days agoMake the use of fallback fonts in Android a runtime decision.
djsollen@google.com [Thu, 16 May 2013 18:38:43 +0000 (18:38 +0000)]
Make the use of fallback fonts in Android a runtime decision.

R=reed@google.com

Review URL: https://codereview.chromium.org/14972022

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

6 days agoadd the following fields to the lua accumulate table:
reed@google.com [Thu, 16 May 2013 13:51:07 +0000 (13:51 +0000)]
add the following fields to the lua accumulate table:
- rrect.rect
- rrect[1..8] for radii
- rrect.type = "empty|rect|oval|simple|complex"
- path.isRect, path.isOval

Review URL: https://codereview.chromium.org/15192003

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

6 days agoBetter method for rendering AA ellipses.
commit-bot@chromium.org [Thu, 16 May 2013 13:14:46 +0000 (13:14 +0000)]
Better method for rendering AA ellipses.

This uses the standard ellipse equation as a signed distance
test, and adjusts the result by the length of the gradient
at that point to get a better approximation of the distance
to the ellipse. It replaces the standard ellipse and
roundrect shader renderers.

Also adds a check to see if the curvature extrema of the
stroke are less than the curvature extrema of the ellipse (i.e.
the radius of curvature is larger). In this case, it's no
longer an ellipse and we can't use this renderer.

Only supports stroking for near-circular ellipses.

R=bsalomon@google.com, robertphillips@google.com

Author: jvanverth@google.com

Review URL: https://chromiumcodereview.appspot.com/14938004

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

7 days agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Thu, 16 May 2013 07:01:00 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

7 days agolua accumulate now receives a table of the draw parameters
mike@reedtribe.org [Thu, 16 May 2013 04:20:23 +0000 (04:20 +0000)]
lua accumulate now receives a table of the draw parameters

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

7 days agoMove the FontConfigTypeface class into private header.
djsollen@google.com [Wed, 15 May 2013 20:11:20 +0000 (20:11 +0000)]
Move the FontConfigTypeface class into private header.

R=reed@google.com

Review URL: https://codereview.chromium.org/15111004

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

7 days agoadd SkLuaCanvas
reed@google.com [Wed, 15 May 2013 19:34:20 +0000 (19:34 +0000)]
add SkLuaCanvas

add lua 5.2 to third_party

BUG=
R=bungeman@google.com

Review URL: https://codereview.chromium.org/14907017

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

7 days agoDisable blending when there is an effect that reads the dst and draw state blend...
bsalomon@google.com [Wed, 15 May 2013 17:53:04 +0000 (17:53 +0000)]
Disable blending when there is an effect that reads the dst and draw state blend is 1,0.

R=robertphillips@google.com

Review URL: https://codereview.chromium.org/15199008

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

7 days agoDon't make dst copies when color stage requires dst but color writes are disabled.
bsalomon@google.com [Wed, 15 May 2013 17:30:26 +0000 (17:30 +0000)]
Don't make dst copies when color stage requires dst but color writes are disabled.

R=robertphillips@google.com

Review URL: https://codereview.chromium.org/15001035

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

7 days agoFix vertical text scaling and clipping on Mac.
bungeman@google.com [Wed, 15 May 2013 15:07:32 +0000 (15:07 +0000)]
Fix vertical text scaling and clipping on Mac.
https://codereview.chromium.org/15064003/

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

7 days agoProvide a function to print the name of a Format.
scroggo@google.com [Wed, 15 May 2013 14:53:49 +0000 (14:53 +0000)]
Provide a function to print the name of a Format.

Also use SkToU32 instead of a flat cast.

R=djsollen@google.com

Review URL: https://codereview.chromium.org/14565005

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

8 days agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Wed, 15 May 2013 07:01:09 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

8 days agoFix includes in SkLayerDrawLooper.h. It was previously not possible to
commit-bot@chromium.org [Tue, 14 May 2013 20:11:23 +0000 (20:11 +0000)]
Fix includes in SkLayerDrawLooper.h. It was previously not possible to
include this header unless SkPoint and SkPaint were previously defined.

BUG=
R=reed@google.com, senorblanco@chromium.org

Author: jbroman@chromium.org

Review URL: https://chromiumcodereview.appspot.com/14607015

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

8 days agoRemove assert that is no longer valid.
bsalomon@google.com [Tue, 14 May 2013 19:55:56 +0000 (19:55 +0000)]
Remove assert that is no longer valid.

R=robertphillips@google.com

Review URL: https://codereview.chromium.org/14671017

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

8 days agoRe-add isIRect test for AA rect drawing
robertphillips@google.com [Tue, 14 May 2013 19:47:47 +0000 (19:47 +0000)]
Re-add isIRect test for AA rect drawing

https://codereview.chromium.org/14820035/

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

8 days agoSort points for PDF's draw rect, to match raster and GPU implementation.
commit-bot@chromium.org [Tue, 14 May 2013 18:16:40 +0000 (18:16 +0000)]
Sort points for PDF's draw rect, to match raster and GPU implementation.

R=caryclark@google.com, vandebo@google.com

Author: edisonn@google.com

Review URL: https://chromiumcodereview.appspot.com/15162005

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

8 days agoMake GrAAConvexPathRender support paths with > 64K verts.
bsalomon@google.com [Tue, 14 May 2013 14:20:28 +0000 (14:20 +0000)]
Make GrAAConvexPathRender support paths with > 64K verts.

R=robertphillips@google.com

Review URL: https://codereview.chromium.org/15120004

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

9 days agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Tue, 14 May 2013 07:01:11 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

9 days agoadd separate impl file for SkFontMgr_fontconfig, so we don't polute
reed@google.com [Mon, 13 May 2013 19:43:59 +0000 (19:43 +0000)]
add separate impl file for SkFontMgr_fontconfig, so we don't polute
SkFontHost_fontconfig, which should be sharable w/ android. Eventaully
we will remove that FontHost file completely, and just use the SkFontMgr.

R=djsollen@google.com

Review URL: https://codereview.chromium.org/15077008

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

9 days agoKey shader on whether frag pos read is relative to top-left or bottom-left
bsalomon@google.com [Mon, 13 May 2013 18:50:25 +0000 (18:50 +0000)]
Key shader on whether frag pos read is relative to top-left or bottom-left

R=robertphillips@google.com

Review URL: https://codereview.chromium.org/14633007

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

9 days agoRemove 16bit asserts and casts of string length.
bsalomon@google.com [Mon, 13 May 2013 18:48:40 +0000 (18:48 +0000)]
Remove 16bit asserts and casts of string length.

R=reed@google.com

Review URL: https://codereview.chromium.org/14711011

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

9 days agoFix stroked roundrects on Nexus 10.
commit-bot@chromium.org [Mon, 13 May 2013 14:41:03 +0000 (14:41 +0000)]
Fix stroked roundrects on Nexus 10.

Due to floating point precision errors, using the formula b^2x^2 + a^2y^2  - a^2b^2
doesn't work on the Nexus 10 GPU. Changed to use x^2/a^2 + y^2/b^2  - 1.

Addresses issue 1290.

R=bsalomon@google.com

Author: jvanverth@google.com

Review URL: https://chromiumcodereview.appspot.com/15039016

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

9 days agoAPI modifications needed to upstream Android font changes.
commit-bot@chromium.org [Mon, 13 May 2013 14:09:13 +0000 (14:09 +0000)]
API modifications needed to upstream Android font changes.

Committed: http://code.google.com/p/skia/source/detail?r=9083

R=reed@google.com

Author: djsollen@google.com

Review URL: https://chromiumcodereview.appspot.com/14761003

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

9 days agoPartial revert of r9087
robertphillips@google.com [Mon, 13 May 2013 13:38:35 +0000 (13:38 +0000)]
Partial revert of r9087

https://codereview.chromium.org/14858035/

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

12 days agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Sat, 11 May 2013 07:01:34 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

12 days agoDon't call purgeCache() from within GrResource memebers.
bsalomon@google.com [Fri, 10 May 2013 19:08:22 +0000 (19:08 +0000)]
Don't call purgeCache() from within GrResource memebers.

R=robertphillips@google.com

Review URL: https://codereview.chromium.org/14864020

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

12 days ago[PDF] Only output the Dests dictionary if it isn't epmpty
vandebo@chromium.org [Fri, 10 May 2013 18:29:43 +0000 (18:29 +0000)]
[PDF] Only output the Dests dictionary if it isn't epmpty

R=edisonn@google.com

Review URL: https://codereview.chromium.org/15028012

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

12 days agoFix memory leak in SkTypeface.cpp
robertphillips@google.com [Fri, 10 May 2013 17:22:48 +0000 (17:22 +0000)]
Fix memory leak in SkTypeface.cpp

https://codereview.chromium.org/14617019/

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

12 days agoRemove GrPathCmd
bsalomon@google.com [Fri, 10 May 2013 17:14:06 +0000 (17:14 +0000)]
Remove GrPathCmd

R=reed@google.com

Review URL: https://codereview.chromium.org/15068008

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

12 days agoRemove duplicated code in SkPictureRecord::drawRRect
junov@chromium.org [Fri, 10 May 2013 14:39:26 +0000 (14:39 +0000)]
Remove duplicated code in SkPictureRecord::drawRRect

Review URL: https://codereview.chromium.org/15057005

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

12 days agoFurther defer devRect computation in gpu rect drawing
robertphillips@google.com [Fri, 10 May 2013 14:09:54 +0000 (14:09 +0000)]
Further defer devRect computation in gpu rect drawing

https://codereview.chromium.org/14798007/

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

12 days agoUpdate shader rect drawing path for r9087 (removal of isIRect "opt")
robertphillips@google.com [Fri, 10 May 2013 13:16:13 +0000 (13:16 +0000)]
Update shader rect drawing path for r9087 (removal of isIRect "opt")

https://codereview.chromium.org/14972013/

(SkipBuildbotRuns)

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

12 days agoRemove isIRect "optimization" & defer computation of device Rect in AA rect rendering
robertphillips@google.com [Fri, 10 May 2013 11:05:58 +0000 (11:05 +0000)]
Remove isIRect "optimization" & defer computation of device Rect in AA rect rendering

https://chromiumcodereview.appspot.com/14890021/

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

13 days agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Fri, 10 May 2013 07:01:04 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

13 days agoReverting 9083 & 9084 due to Android failures
robertphillips@google.com [Thu, 9 May 2013 22:47:33 +0000 (22:47 +0000)]
Reverting 9083 & 9084 due to Android failures

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

13 days agofix warning/error of uninitialized len
reed@google.com [Thu, 9 May 2013 22:02:35 +0000 (22:02 +0000)]
fix warning/error of uninitialized len

BUG=

Review URL: https://codereview.chromium.org/15001019

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

13 days agoAPI modifications needed to upstream Android font changes.
commit-bot@chromium.org [Thu, 9 May 2013 20:54:20 +0000 (20:54 +0000)]
API modifications needed to upstream Android font changes.

R=reed@google.com

Author: djsollen@google.com

Review URL: https://chromiumcodereview.appspot.com/14761003

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

13 days agoFix some warnings in SkPath.
scroggo@google.com [Thu, 9 May 2013 18:05:32 +0000 (18:05 +0000)]
Fix some warnings in SkPath.

R=caryclark@google.com

Review URL: https://codereview.chromium.org/14969003

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

13 days agoremove unneeded reference to SkTScopedPtr
commit-bot@chromium.org [Thu, 9 May 2013 16:15:20 +0000 (16:15 +0000)]
remove unneeded reference to SkTScopedPtr

R=djsollen@google.com, scroggo@google.com

Author: reed@google.com

Review URL: https://chromiumcodereview.appspot.com/14057013

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

13 days agoMake GrGLShaderBuilder check whether GrEffect advertised that it would require the...
commit-bot@chromium.org [Thu, 9 May 2013 14:55:46 +0000 (14:55 +0000)]
Make GrGLShaderBuilder check whether GrEffect advertised that it would require the dst color or fragment position

R=senorblanco@chromium.org, robertphillips@google.com

Author: bsalomon@google.com

Review URL: https://chromiumcodereview.appspot.com/14998007

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

13 days agoMove loops that chain together effects into GrGLShaderBuilder from GrGLProgram.
bsalomon@google.com [Thu, 9 May 2013 13:45:02 +0000 (13:45 +0000)]
Move loops that chain together effects into GrGLShaderBuilder from GrGLProgram.

R=robertphillips@google.com

Review URL: https://codereview.chromium.org/14925010

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

2 weeks agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Thu, 9 May 2013 07:02:04 +0000 (07:02 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

2 weeks agoneed to clamp all of the cubic points after a chop, in case our finite precision
reed@google.com [Wed, 8 May 2013 21:08:21 +0000 (21:08 +0000)]
need to clamp all of the cubic points after a chop, in case our finite precision
meant we didn't compute values below the chop-point.

crbug:234190

R=caryclark@google.com

Review URL: https://codereview.chromium.org/14607012

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

2 weeks agonegate FontBox.bottom, since it is negative, but we want it positive (doh)
reed@google.com [Wed, 8 May 2013 17:46:48 +0000 (17:46 +0000)]
negate FontBox.bottom, since it is negative, but we want it positive (doh)

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

2 weeks agoRe-land r9059 with empty cityhash.gyp, instead of deleted cityhash.gyp
epoger@google.com [Wed, 8 May 2013 16:04:02 +0000 (16:04 +0000)]
Re-land r9059 with empty cityhash.gyp, instead of deleted cityhash.gyp

R=rmistry@google.com

Review URL: https://codereview.chromium.org/15060008/

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

2 weeks agoFix behavior of SkPicture::kUsePathBoundsForClip_RecordingFlag to handle inverse...
junov@chromium.org [Wed, 8 May 2013 15:39:13 +0000 (15:39 +0000)]
Fix behavior of SkPicture::kUsePathBoundsForClip_RecordingFlag to handle inverse fills and all clip ops correctly.
BUG=crbug.com/229011
TEST=Picture unit test + complexclip* GMs

Review URL: https://codereview.chromium.org/14820021

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

2 weeks agoremove dead code (SkBitmapSampler)
reed@google.com [Wed, 8 May 2013 15:32:41 +0000 (15:32 +0000)]
remove dead code (SkBitmapSampler)

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

2 weeks agoRevert r9055.
jvanverth@google.com [Wed, 8 May 2013 15:31:43 +0000 (15:31 +0000)]
Revert r9055.

Unreviewed.

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

2 weeks agoRoll out r9059 to unbreak bots
epoger@google.com [Wed, 8 May 2013 15:22:36 +0000 (15:22 +0000)]
Roll out r9059 to unbreak bots

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

2 weeks agoRemove third-party cityhash, unused since r8992
epoger@google.com [Wed, 8 May 2013 14:49:50 +0000 (14:49 +0000)]
Remove third-party cityhash, unused since r8992

R=djsollen@google.com

Review URL: https://codereview.chromium.org/15027013

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

2 weeks agowe only need one fontmetrics, since the paint (and fontcache) now know explicitly
reed@google.com [Wed, 8 May 2013 14:19:08 +0000 (14:19 +0000)]
we only need one fontmetrics, since the paint (and fontcache) now know explicitly
if they are horizontal or vertical.

Review URL: https://codereview.chromium.org/14940018

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

2 weeks agoUse more fields from OutlineFontMEtrics: linegap, bbox.
reed@google.com [Wed, 8 May 2013 14:11:28 +0000 (14:11 +0000)]
Use more fields from OutlineFontMEtrics: linegap, bbox.
Up our canonical size to 2048 to reduce precision loss.

R=bungeman@google.com

Review URL: https://codereview.chromium.org/14759021

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

2 weeks agoBetter method for rendering AA ellipses.
commit-bot@chromium.org [Wed, 8 May 2013 13:59:36 +0000 (13:59 +0000)]
Better method for rendering AA ellipses.

This uses the standard ellipse equation as a signed distance
test, and adjusts the result by the length of the gradient
at that point to get a better approximation of the distance
to the ellipse. It replaces the standard ellipse and
roundrect shader renderers.

Also adds a check to see if the curvature extrema of the
stroke are less than the curvature extrema of the ellipse (i.e.
the radius of curvature is larger). In this case, it's no
longer an ellipse and we can't use this renderer.

Committed: http://code.google.com/p/skia/source/detail?r=9016

R=bsalomon@google.com, robertphillips@google.com

Author: jvanverth@google.com

Review URL: https://chromiumcodereview.appspot.com/14938004

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

2 weeks agoComment out invalid assert.
bsalomon@google.com [Wed, 8 May 2013 12:49:49 +0000 (12:49 +0000)]
Comment out invalid assert.

R=robertphillips@google.com

Review URL: https://codereview.chromium.org/15021008

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

2 weeks agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Wed, 8 May 2013 07:01:40 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

2 weeks agoshare derivative code with extrema logic, remove some dead code.
mike@reedtribe.org [Wed, 8 May 2013 01:55:49 +0000 (01:55 +0000)]
share derivative code with extrema logic, remove some dead code.

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

2 weeks agofix impl for conic derivative (tangent)
mike@reedtribe.org [Wed, 8 May 2013 01:15:54 +0000 (01:15 +0000)]
fix impl for conic derivative (tangent)

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

2 weeks agoadd (untested) tangent calc for conics
reed@google.com [Tue, 7 May 2013 20:42:35 +0000 (20:42 +0000)]
add (untested) tangent calc for conics

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

2 weeks agopath ops -- make combined clips soft if one is soft
caryclark@google.com [Tue, 7 May 2013 19:48:31 +0000 (19:48 +0000)]
path ops -- make combined clips soft if one is soft
Review URL: https://codereview.chromium.org/14786018

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