platform/upstream/libSkiaSharp.git
13 years agoremove this until brian can review the results
reed@google.com [Thu, 22 Sep 2011 14:47:29 +0000 (14:47 +0000)]
remove this until brian can review the results

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

13 years agoadd baselines
reed@google.com [Thu, 22 Sep 2011 14:44:46 +0000 (14:44 +0000)]
add baselines

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

13 years agoadd baselines
reed@google.com [Thu, 22 Sep 2011 14:38:59 +0000 (14:38 +0000)]
add baselines

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

13 years agotweak check for BW to avoid cmp
reed@google.com [Thu, 22 Sep 2011 14:33:40 +0000 (14:33 +0000)]
tweak check for BW to avoid cmp

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

13 years agoChange GrGLVersion from typedef GrFixed to uint32_t
bsalomon@google.com [Thu, 22 Sep 2011 14:31:24 +0000 (14:31 +0000)]
Change GrGLVersion from typedef GrFixed to uint32_t
Review URL: http://codereview.appspot.com/5097044

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

13 years agoCleanup handling of GL versions, fix function names
bsalomon@google.com [Thu, 22 Sep 2011 14:10:33 +0000 (14:10 +0000)]
Cleanup handling of GL versions, fix function names
Review URL: http://codereview.appspot.com/5097044/

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

13 years agoFix some warnings
bsalomon@google.com [Wed, 21 Sep 2011 21:46:03 +0000 (21:46 +0000)]
Fix some warnings

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

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

13 years agoadd tests for flatten, unflatten and transform
reed@google.com [Wed, 21 Sep 2011 19:05:12 +0000 (19:05 +0000)]
add tests for flatten, unflatten and transform

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

13 years agorebaseline with faster gradients
reed@google.com [Wed, 21 Sep 2011 18:43:19 +0000 (18:43 +0000)]
rebaseline with faster gradients

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

13 years agodetect when LCD is really just BW, and remark the glyph as that.
reed@google.com [Wed, 21 Sep 2011 18:42:09 +0000 (18:42 +0000)]
detect when LCD is really just BW, and remark the glyph as that.
allows us to take a much faster blitter.
TODO: inform SkGlyphCache of this, so it can shrink its allocation
for the image buffer (since BW takes up 1/16 as much ram)
TODO(2): allow for A8->BW conversion my having scalercontext set a flag
if it really-wants A8 (i.e. we have a maskfilter)

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

13 years agoflatten/unflatten fSegmentMask
reed@google.com [Wed, 21 Sep 2011 18:40:27 +0000 (18:40 +0000)]
flatten/unflatten fSegmentMask

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

13 years agoUse BindFragDataLocation (rather than indexed variant) for FS color output.
bsalomon@google.com [Wed, 21 Sep 2011 16:21:07 +0000 (16:21 +0000)]
Use BindFragDataLocation (rather than indexed variant) for FS color output.

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

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

13 years agorebaseline w/ faster gradients
reed@google.com [Wed, 21 Sep 2011 14:31:03 +0000 (14:31 +0000)]
rebaseline w/ faster gradients

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

13 years agoRebase raster linux GM for faster radial-mirror and sweep
bsalomon@google.com [Wed, 21 Sep 2011 14:23:32 +0000 (14:23 +0000)]
Rebase raster linux GM for faster radial-mirror and sweep

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

13 years agouse common code for treating thin lines as hairlines (much faster)
reed@google.com [Wed, 21 Sep 2011 13:50:35 +0000 (13:50 +0000)]
use common code for treating thin lines as hairlines (much faster)

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

13 years agoupdate baselines with faster radial-mirror and sweep
reed@google.com [Wed, 21 Sep 2011 13:42:02 +0000 (13:42 +0000)]
update baselines with faster radial-mirror and sweep

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

13 years agospeed up radial-mirror 16x, sweep by ~2x
reed@google.com [Wed, 21 Sep 2011 13:38:36 +0000 (13:38 +0000)]
speed up radial-mirror 16x, sweep by ~2x

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

13 years agoupdate fSegmentMask inside ::transform() (thank you validate!)
reed@google.com [Wed, 21 Sep 2011 12:58:51 +0000 (12:58 +0000)]
update fSegmentMask inside ::transform() (thank you validate!)

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

13 years agoadd segment types query to SkPath (i.e. does it have any quads)
reed@google.com [Wed, 21 Sep 2011 12:29:05 +0000 (12:29 +0000)]
add segment types query to SkPath (i.e. does it have any quads)

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

13 years agoResubmit 2289 with fix for glsl version
bsalomon@google.com [Tue, 20 Sep 2011 19:06:12 +0000 (19:06 +0000)]
Resubmit 2289 with fix for glsl version

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

13 years agoRevert 2289. GLSL version detection not robust enough. May think we don't have GLSL...
bsalomon@google.com [Tue, 20 Sep 2011 17:57:44 +0000 (17:57 +0000)]
Revert 2289. GLSL version detection not robust enough. May think we don't have GLSL 1.50 support based on OpenGL version. We have to look at the available extensions, not just GL version.

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

13 years ago[GPU] Use new Var type for inputs/outputs of FS and VS
bsalomon@google.com [Tue, 20 Sep 2011 17:33:24 +0000 (17:33 +0000)]
[GPU] Use new Var type for inputs/outputs of FS and VS
Review URL: http://codereview.appspot.com/5056048/

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

13 years agoadd SK_RESTRICT in shadeSpan methods
reed@google.com [Tue, 20 Sep 2011 15:56:13 +0000 (15:56 +0000)]
add SK_RESTRICT in shadeSpan methods

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

13 years agorevert match for newAlpha to exactly match old math, so we don't drive
reed@google.com [Mon, 19 Sep 2011 21:21:45 +0000 (21:21 +0000)]
revert match for newAlpha to exactly match old math, so we don't drive
dumprendertree crazy

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

13 years agoupdate baselines
reed@google.com [Mon, 19 Sep 2011 19:52:25 +0000 (19:52 +0000)]
update baselines

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

13 years agoAdd missing header SkTArray.h to core.gyp
bsalomon@google.com [Mon, 19 Sep 2011 19:43:36 +0000 (19:43 +0000)]
Add missing header SkTArray.h to core.gyp

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

13 years agoFix pdf suppression test for gm.
bungeman@google.com [Mon, 19 Sep 2011 19:31:04 +0000 (19:31 +0000)]
Fix pdf suppression test for gm.

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

13 years agouse new SkDrawTreatAsHairline method to decide when to approximate a thin-line
reed@google.com [Mon, 19 Sep 2011 19:18:18 +0000 (19:18 +0000)]
use new SkDrawTreatAsHairline method to decide when to approximate a thin-line
with a hairline (and have its alpha modulated).

idea is to be able to share this new function with SkGpuDevice

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

13 years agoadd getFlags() to gm baseclass
reed@google.com [Mon, 19 Sep 2011 19:08:33 +0000 (19:08 +0000)]
add getFlags() to gm baseclass
skip PDF for hairmodes for now, since it crashes

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

13 years agoadd gm test for drawing hairlines (and varying thin lines) in xfermodes
reed@google.com [Mon, 19 Sep 2011 19:01:38 +0000 (19:01 +0000)]
add gm test for drawing hairlines (and varying thin lines) in xfermodes
add --nopdf option to gm app

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

13 years agoInclude GrGLInterface.h instead of forward declaring, since we have to get NULL defin...
bsalomon@google.com [Fri, 16 Sep 2011 21:34:29 +0000 (21:34 +0000)]
Include GrGLInterface.h instead of forward declaring, since we have to get NULL defined anyway.

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

13 years agoFix forward decl
bsalomon@google.com [Fri, 16 Sep 2011 21:20:24 +0000 (21:20 +0000)]
Fix forward decl

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

13 years agoMake GrGpuGL release its resources before GrGLInterface is released.
bsalomon@google.com [Fri, 16 Sep 2011 21:18:29 +0000 (21:18 +0000)]
Make GrGpuGL release its resources before GrGLInterface is released.
Forward declare GrGLInterface in GrGLDefaultInterface_none file

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

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

13 years agoFix some mac compilation errors generated when building utils within
seanpaul@google.com [Fri, 16 Sep 2011 20:46:40 +0000 (20:46 +0000)]
Fix some mac compilation errors generated when building utils within
chrome.

BUG=364
TEST=Build skia on mac, ran bench. Ensured both behaved as expected.
Review URL: http://codereview.appspot.com/5032045

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

13 years agoSimplify specification of default interface
bsalomon@google.com [Fri, 16 Sep 2011 18:51:57 +0000 (18:51 +0000)]
Simplify specification of default interface
Review URL: http://codereview.appspot.com/5036045/

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

13 years agoChange AdditionalOptions to a list from a string. This fixes compilation errors
seanpaul@google.com [Fri, 16 Sep 2011 15:47:33 +0000 (15:47 +0000)]
Change AdditionalOptions to a list from a string. This fixes compilation errors
when building bench within chrome.

BUG=363
TEST=Build bench through a chrome checkout on windows
Review URL: http://codereview.appspot.com/5045042

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

13 years agoUpdate SkCoInitialize to better match spec.
bungeman@google.com [Fri, 16 Sep 2011 15:37:20 +0000 (15:37 +0000)]
Update SkCoInitialize to better match spec.
http://codereview.appspot.com/5036044/

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

13 years agoAdd mac filltypepersp baselines.
bsalomon@google.com [Fri, 16 Sep 2011 15:06:56 +0000 (15:06 +0000)]
Add mac filltypepersp baselines.

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

13 years agoFix assertions in GrResourceCache::removeAll, don't reattached invalidated resources
bsalomon@google.com [Thu, 15 Sep 2011 20:43:53 +0000 (20:43 +0000)]
Fix assertions in GrResourceCache::removeAll, don't reattached invalidated resources

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

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

13 years agoMove edgeAA shader gen code to its own function
bsalomon@google.com [Thu, 15 Sep 2011 15:12:00 +0000 (15:12 +0000)]
Move edgeAA shader gen code to its own function
Review URL:  http://codereview.appspot.com/5015048/

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

13 years agoRefactor the bench and common gyp/gypi files to allow for building bench within
seanpaul@google.com [Thu, 15 Sep 2011 14:24:33 +0000 (14:24 +0000)]
Refactor the bench and common gyp/gypi files to allow for building bench within
a chromium checkout (using chromium build configuration).

BUG=362
TEST=Build bench from within the chromium and skia source tree, ensured it built
     and ran successfully.
Review URL: http://codereview.appspot.com/5023042

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

13 years agoenable OES derivatives extension in shaders that use it
bsalomon@google.com [Wed, 14 Sep 2011 18:05:30 +0000 (18:05 +0000)]
enable OES derivatives extension in shaders that use it
Review URL:  http://codereview.appspot.com/5023043/

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

13 years agomake string's reference counting thread-safe
reed@google.com [Wed, 14 Sep 2011 16:13:58 +0000 (16:13 +0000)]
make string's reference counting thread-safe

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

13 years agoWorkaround crash in cmd buffer validation code when GL shaders/programs fail
bsalomon@google.com [Wed, 14 Sep 2011 14:29:18 +0000 (14:29 +0000)]
Workaround crash in cmd buffer validation code when GL shaders/programs fail

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

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

13 years agoFix compilation error related to using nonexistent sk_malloc instead of sk_malloc_thr...
bsalomon@google.com [Wed, 14 Sep 2011 14:01:31 +0000 (14:01 +0000)]
Fix compilation error related to using nonexistent sk_malloc instead of sk_malloc_throw. VC++ lazy template code compilation let this work on windows since the wrong function name was only in currently unused templated functions.

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

13 years agoGrTArray->SkTArray & docs
bsalomon@google.com [Wed, 14 Sep 2011 13:54:05 +0000 (13:54 +0000)]
GrTArray->SkTArray & docs

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

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

13 years agoRemove unnecessary forward decl that was causing a warning.
bsalomon@google.com [Wed, 14 Sep 2011 12:52:28 +0000 (12:52 +0000)]
Remove unnecessary forward decl that was causing a warning.

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

13 years agoShutup strict aliasing warnings in SkTLazy
bsalomon@google.com [Wed, 14 Sep 2011 12:44:13 +0000 (12:44 +0000)]
Shutup strict aliasing warnings in SkTLazy

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

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

13 years agoremove nonexistent files from gyps and make AdditionalOptions a list rather than str
bsalomon@google.com [Tue, 13 Sep 2011 20:57:33 +0000 (20:57 +0000)]
remove nonexistent files from gyps and make AdditionalOptions a list rather than str

ReviewURL: http://codereview.appspot.com/5022042/

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

13 years agoadd filltypepersp baselines for linux
bsalomon@google.com [Tue, 13 Sep 2011 20:56:48 +0000 (20:56 +0000)]
add filltypepersp baselines for linux

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

13 years agoUse push_back_n() in place of multiple push_back()s
bsalomon@google.com [Tue, 13 Sep 2011 18:49:13 +0000 (18:49 +0000)]
Use push_back_n() in place of multiple push_back()s

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

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

13 years agoSampleApp: fixing bad ref counting on non dynamically allocated object
junov@google.com [Tue, 13 Sep 2011 18:15:52 +0000 (18:15 +0000)]
SampleApp: fixing bad ref counting on non dynamically allocated object

REVIEW=http://codereview.appspot.com/4969079/

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

13 years agoadd override for max-text-size for lcd
reed@google.com [Tue, 13 Sep 2011 17:20:30 +0000 (17:20 +0000)]
add override for max-text-size for lcd

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

13 years agoRemove wrong file, add right file
bsalomon@google.com [Tue, 13 Sep 2011 15:39:00 +0000 (15:39 +0000)]
Remove wrong file, add right file

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

13 years agoFix some issues in gpu device with perspective. Add a gm that would have caught them.
bsalomon@google.com [Tue, 13 Sep 2011 15:27:18 +0000 (15:27 +0000)]
Fix some issues in gpu device with perspective. Add a gm that would have caught them.

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

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

13 years agoAdd SkCanvas::getClipDescription() and getClipDeviceBounds() so clients don't
tomhudson@google.com [Tue, 13 Sep 2011 15:07:58 +0000 (15:07 +0000)]
Add SkCanvas::getClipDescription() and getClipDeviceBounds() so clients don't
need to explicitly get the exact clip & compute those values themselves. (We
may be able to provide description/bounds more cheaply than the exact clip.)

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

13 years agoRevert r2250 - removal of setMatrixClip() - because Chrome makes heavy use
tomhudson@google.com [Tue, 13 Sep 2011 14:41:06 +0000 (14:41 +0000)]
Revert r2250 - removal of setMatrixClip() - because Chrome makes heavy use
of those functions in a way we're not yet ready to clean up.

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

13 years agoadd SK_RESTRICT to mask procs
reed@google.com [Tue, 13 Sep 2011 13:56:57 +0000 (13:56 +0000)]
add SK_RESTRICT to mask procs
separate out opaque and non for lcd16 blits

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

13 years agoset max size for lcdtext
reed@google.com [Tue, 13 Sep 2011 13:23:26 +0000 (13:23 +0000)]
set max size for lcdtext

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

13 years agowrite 0 to our refcnt in the destructor, in the off-chance of it helping us
reed@google.com [Mon, 12 Sep 2011 19:54:12 +0000 (19:54 +0000)]
write 0 to our refcnt in the destructor, in the off-chance of it helping us
catch reuse-after-delete bugs (debug only)

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

13 years agoReplaces SkDevice::setMatrixClip() with markMatrixDirty() and markClipDirty(),
tomhudson@google.com [Mon, 12 Sep 2011 19:52:44 +0000 (19:52 +0000)]
Replaces SkDevice::setMatrixClip() with markMatrixDirty() and markClipDirty(),
which require no arguments and so may be called without requiring the matrix
and clip to be completely evaluated.

De-inlines virtual functions in SkDevice interface.

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

13 years agoAdd perspective support to the gpu aa hairline renderer.
bsalomon@google.com [Mon, 12 Sep 2011 14:59:34 +0000 (14:59 +0000)]
Add perspective support to the gpu aa hairline renderer.

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

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

13 years agoAdd operator = to GrPaint
bsalomon@google.com [Mon, 12 Sep 2011 14:30:27 +0000 (14:30 +0000)]
Add operator = to GrPaint

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

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

13 years agoFix GrContext::drawPaint with perspective, also never apply AA
bsalomon@google.com [Mon, 12 Sep 2011 13:52:51 +0000 (13:52 +0000)]
Fix GrContext::drawPaint with perspective, also never apply AA

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

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

13 years ago[gpu] Remove getMaxStretch for perspective, use mapRadius for perspective path subdiv...
bsalomon@google.com [Fri, 9 Sep 2011 19:32:04 +0000 (19:32 +0000)]
[gpu] Remove getMaxStretch for perspective, use mapRadius for perspective path subdiv tol, add test

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

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

13 years agocache offscreen HDC
reed@google.com [Fri, 9 Sep 2011 14:59:59 +0000 (14:59 +0000)]
cache offscreen HDC

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

13 years agoAdd 'K' to SampleApp to trigger animated perspective rendering
bsalomon@google.com [Thu, 8 Sep 2011 18:48:12 +0000 (18:48 +0000)]
Add 'K' to SampleApp to trigger animated perspective rendering

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

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

13 years agofix INHERITED to match class
reed@google.com [Thu, 8 Sep 2011 13:37:07 +0000 (13:37 +0000)]
fix INHERITED to match class

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

13 years agoadd test for hairlines and xfermodes
reed@google.com [Thu, 8 Sep 2011 13:36:30 +0000 (13:36 +0000)]
add test for hairlines and xfermodes

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

13 years agodisable premul check for now in 16bit blit, until we cleanup GDI's mess
reed@google.com [Wed, 7 Sep 2011 18:51:31 +0000 (18:51 +0000)]
disable premul check for now in 16bit blit, until we cleanup GDI's mess

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

13 years agoRevert accidental change to sample code
bsalomon@google.com [Wed, 7 Sep 2011 18:44:17 +0000 (18:44 +0000)]
Revert accidental change to sample code

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

13 years agoImprove gpu path subdiv with perspective, remove tolerance scale, fix comment
bsalomon@google.com [Wed, 7 Sep 2011 18:42:30 +0000 (18:42 +0000)]
Improve gpu path subdiv with perspective, remove tolerance scale, fix comment

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

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

13 years agouse templated skipT() for skipping structs within a reader
reed@google.com [Wed, 7 Sep 2011 13:52:17 +0000 (13:52 +0000)]
use templated skipT() for skipping structs within a reader

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

13 years agouse drawBitmapNine instead of SkNinePatch utils
reed@google.com [Wed, 7 Sep 2011 12:27:43 +0000 (12:27 +0000)]
use drawBitmapNine instead of SkNinePatch utils

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

13 years agoadd SkPoint::CanNormalize to unify decisions about when a vector is degenerate
reed@google.com [Wed, 7 Sep 2011 12:23:41 +0000 (12:23 +0000)]
add SkPoint::CanNormalize to unify decisions about when a vector is degenerate

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

13 years agoadd baselines
reed@google.com [Wed, 7 Sep 2011 12:17:05 +0000 (12:17 +0000)]
add baselines

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

13 years agoadd impl for drawBitmapNine
reed@google.com [Wed, 7 Sep 2011 11:57:52 +0000 (11:57 +0000)]
add impl for drawBitmapNine

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

13 years agoadd drawBitmapNine to canvas
reed@google.com [Wed, 7 Sep 2011 11:57:34 +0000 (11:57 +0000)]
add drawBitmapNine to canvas
will add to device soon I think

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

13 years agoMake gpu hairline check for degenerate quad more robust
bsalomon@google.com [Tue, 6 Sep 2011 22:10:52 +0000 (22:10 +0000)]
Make gpu hairline check for degenerate quad more robust

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

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

13 years agoFix bitrot in GrGLDefaultInterface_android.cpp
bsalomon@google.com [Tue, 6 Sep 2011 21:04:36 +0000 (21:04 +0000)]
Fix bitrot in GrGLDefaultInterface_android.cpp

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

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

13 years agodetect when scale is really 1.0, and don't mis-mark our flags to kScale
reed@google.com [Tue, 6 Sep 2011 21:02:36 +0000 (21:02 +0000)]
detect when scale is really 1.0, and don't mis-mark our flags to kScale

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

13 years agowhitespace change to trigger buildbots
epoger@google.com [Tue, 6 Sep 2011 20:42:47 +0000 (20:42 +0000)]
whitespace change to trigger buildbots

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

13 years agoreimage ninepatch-stretch with white bg (for easier printing)
reed@google.com [Tue, 6 Sep 2011 19:34:13 +0000 (19:34 +0000)]
reimage ninepatch-stretch with white bg (for easier printing)

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

13 years agoadd gm test for ninepatch stretching
reed@google.com [Tue, 6 Sep 2011 19:23:41 +0000 (19:23 +0000)]
add gm test for ninepatch stretching
pdf output incorrect, so not checked in.

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

13 years agoMake GL calls go through macro (and therefore trigger callback function if present)
bsalomon@google.com [Tue, 6 Sep 2011 19:05:24 +0000 (19:05 +0000)]
Make GL calls go through macro (and therefore trigger callback function if present)

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

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

13 years agoupdate sample to test stretching + and - amounds
reed@google.com [Tue, 6 Sep 2011 18:54:54 +0000 (18:54 +0000)]
update sample to test stretching + and - amounds

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

13 years agoAdd gm baseline images for Mac Mini
epoger@google.com [Tue, 6 Sep 2011 18:14:51 +0000 (18:14 +0000)]
Add gm baseline images for Mac Mini

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

13 years agowhitespace change to trigger buildbots
epoger@google.com [Tue, 6 Sep 2011 17:23:35 +0000 (17:23 +0000)]
whitespace change to trigger buildbots

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

13 years agoIgnore blur margin fix flag for backward bug compatibility.
bungeman@google.com [Tue, 6 Sep 2011 15:34:31 +0000 (15:34 +0000)]
Ignore blur margin fix flag for backward bug compatibility.
http://codereview.appspot.com/4981046/

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

13 years agoadd detach back to SkAutoMalloc
bsalomon@google.com [Tue, 6 Sep 2011 15:02:33 +0000 (15:02 +0000)]
add detach back to SkAutoMalloc

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

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

13 years agoadd optional SK_OVERRIDE_GLOBAL_NEW for testing
reed@google.com [Tue, 6 Sep 2011 14:56:20 +0000 (14:56 +0000)]
add optional SK_OVERRIDE_GLOBAL_NEW for testing

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

13 years agoFix realloc->reset rename missed in mac file
bsalomon@google.com [Fri, 2 Sep 2011 22:14:16 +0000 (22:14 +0000)]
Fix realloc->reset rename missed in mac file

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

13 years agoRename existing nonpreserving reallocs to reset, add reset to SkAutoMalloc, use reset...
bsalomon@google.com [Fri, 2 Sep 2011 22:06:24 +0000 (22:06 +0000)]
Rename existing nonpreserving reallocs to reset, add reset to SkAutoMalloc, use reset in GrBufferAllocPool

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

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

13 years agooutset 2 on all sides, as we now find some CJK fonts that are off by
reed@google.com [Fri, 2 Sep 2011 20:08:11 +0000 (20:08 +0000)]
outset 2 on all sides, as we now find some CJK fonts that are off by
that amount when we compare the bounds returned by GetGlyphOutline and what
GDI actually draws.

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

13 years agoRemove unneeded #define
bsalomon@google.com [Fri, 2 Sep 2011 17:28:06 +0000 (17:28 +0000)]
Remove unneeded #define

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

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

13 years agoFix BlurTest to work with fixed point.
bungeman@google.com [Fri, 2 Sep 2011 15:46:17 +0000 (15:46 +0000)]
Fix BlurTest to work with fixed point.

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

13 years agoReduce size of filter mask.
bungeman@google.com [Fri, 2 Sep 2011 15:06:44 +0000 (15:06 +0000)]
Reduce size of filter mask.
http://codereview.appspot.com/4965057/

Reduce the size of filter masks, fix HQ blur when clipped, and add tests.

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

13 years agoRemove comment related to removed function.
bsalomon@google.com [Thu, 1 Sep 2011 15:55:31 +0000 (15:55 +0000)]
Remove comment related to removed function.

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

13 years agoFix some warnings when including some Skia headers in Chromium code under VS2008.
bsalomon@google.com [Thu, 1 Sep 2011 15:34:14 +0000 (15:34 +0000)]
Fix some warnings when including some Skia headers in Chromium code under VS2008.

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

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

13 years agowhitespace change to trigger buildbots
epoger@google.com [Thu, 1 Sep 2011 14:29:43 +0000 (14:29 +0000)]
whitespace change to trigger buildbots

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