platform/upstream/libSkiaSharp.git
13 years agoFix wall clock in bench system timer on Windows.
bungeman@google.com [Wed, 19 Oct 2011 22:10:21 +0000 (22:10 +0000)]
Fix wall clock in bench system timer on Windows.

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

13 years agoGrGLInterface fixes wrt r2499
bsalomon@google.com [Wed, 19 Oct 2011 21:35:26 +0000 (21:35 +0000)]
GrGLInterface fixes wrt r2499

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

13 years agoPass NULL to BenchTimer cons when gl context creation failed.
bsalomon@google.com [Wed, 19 Oct 2011 21:02:27 +0000 (21:02 +0000)]
Pass NULL to BenchTimer cons when gl context creation failed.

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

13 years agoFix benchmain to build w/ scalar=fixed
bsalomon@google.com [Wed, 19 Oct 2011 20:56:30 +0000 (20:56 +0000)]
Fix benchmain to build w/ scalar=fixed

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

13 years agoVirtualize SkGLContext with subclasses SkNativeGLContext and SkMesaGLContext, allow...
bsalomon@google.com [Wed, 19 Oct 2011 20:43:20 +0000 (20:43 +0000)]
Virtualize SkGLContext with subclasses SkNativeGLContext and SkMesaGLContext, allow both in gm
Review URL: http://codereview.appspot.com/5307045/

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

13 years agoExtract six functions from GrGLProgram::genStageCode() to shorten it by
tomhudson@google.com [Wed, 19 Oct 2011 20:21:48 +0000 (20:21 +0000)]
Extract six functions from GrGLProgram::genStageCode() to shorten it by
~170 LOC.

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

13 years agoadd SK_API to our malloc functions
reed@google.com [Wed, 19 Oct 2011 19:50:48 +0000 (19:50 +0000)]
add SK_API to our malloc functions

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

13 years agoEnsure all vertex attributes (except zero that we always use) are disabled after...
bsalomon@google.com [Wed, 19 Oct 2011 13:25:46 +0000 (13:25 +0000)]
Ensure all vertex attributes (except zero that we always use) are disabled after a resetContext.

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

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

13 years agooops, init fSize to 0 before calling resize
reed@google.com [Tue, 18 Oct 2011 18:58:06 +0000 (18:58 +0000)]
oops, init fSize to 0 before calling resize

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

13 years agoadd OnShrink options to SkAutoMalloc
reed@google.com [Tue, 18 Oct 2011 18:52:03 +0000 (18:52 +0000)]
add OnShrink options to SkAutoMalloc

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

13 years agoremove unused optional param to SkAutoMalloc
reed@google.com [Tue, 18 Oct 2011 18:32:46 +0000 (18:32 +0000)]
remove unused optional param to SkAutoMalloc

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

13 years agomove SkAutoMaskFreeImage from SkMaskFilter.h to SkMask.h
reed@google.com [Tue, 18 Oct 2011 17:35:26 +0000 (17:35 +0000)]
move SkAutoMaskFreeImage from SkMaskFilter.h to SkMask.h

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

13 years ago(re)add SkMask::getAddr() which now checks its pixel-size at runtime.
reed@google.com [Tue, 18 Oct 2011 17:29:44 +0000 (17:29 +0000)]
(re)add SkMask::getAddr() which now checks its pixel-size at runtime.

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

13 years agorename SkMask::getAddr to getAddr8, to match the specificity of the others
reed@google.com [Tue, 18 Oct 2011 15:44:57 +0000 (15:44 +0000)]
rename SkMask::getAddr to getAddr8, to match the specificity of the others
e.g. getAddr1, getAddrLCD16, etc.

This is to make way for a real getAddr that will compute its pixel-size at runtime

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

13 years agoSet stage params in program descriptor to canonical values when stage isn't used
bsalomon@google.com [Tue, 18 Oct 2011 15:13:13 +0000 (15:13 +0000)]
Set stage params in program descriptor to canonical values when stage isn't used

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

13 years agofix warning (add default in switch)
reed@google.com [Tue, 18 Oct 2011 14:03:23 +0000 (14:03 +0000)]
fix warning (add default in switch)

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

13 years agomove LCD blits into opts, so they can have assembly versions
reed@google.com [Tue, 18 Oct 2011 13:56:50 +0000 (13:56 +0000)]
move LCD blits into opts, so they can have assembly versions

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

13 years agochange text bench to measure text blit speed
reed@google.com [Tue, 18 Oct 2011 12:21:50 +0000 (12:21 +0000)]
change text bench to measure text blit speed

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

13 years agoadd tests for read/writePackedUInt, and fix a bug there.
reed@google.com [Tue, 18 Oct 2011 11:49:52 +0000 (11:49 +0000)]
add tests for read/writePackedUInt, and fix a bug there.

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

13 years agoHandle failure of GetAdvancedTypefaceMetrics gracefully until we can figure out why...
vandebo@chromium.org [Mon, 17 Oct 2011 23:22:49 +0000 (23:22 +0000)]
Handle failure of GetAdvancedTypefaceMetrics gracefully until we can figure out why it is failing.

Code from arthurhsu@chromium.org.  Original CL: http://codereview.appspot.com/5276057/

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

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

13 years agocommit http://codereview.chromium.org/8274009/
reed@google.com [Thu, 13 Oct 2011 19:16:20 +0000 (19:16 +0000)]
commit http://codereview.chromium.org/8274009/

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

13 years agoadd FillIRect variant that takes a rasterclip
reed@google.com [Thu, 13 Oct 2011 15:29:01 +0000 (15:29 +0000)]
add FillIRect variant that takes a rasterclip

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

13 years agoupdate to use new api (offset -> translate)
reed@google.com [Thu, 13 Oct 2011 15:18:49 +0000 (15:18 +0000)]
update to use new api (offset -> translate)

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

13 years agocheckpoint -- more support changes for soft clipping
reed@google.com [Thu, 13 Oct 2011 15:11:59 +0000 (15:11 +0000)]
checkpoint -- more support changes for soft clipping

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

13 years agomove utils/SkEGLContext to gpu/SkGLContext, some gpu.gyp cleanup, set eol style LF...
bsalomon@google.com [Thu, 13 Oct 2011 13:33:08 +0000 (13:33 +0000)]
move utils/SkEGLContext to gpu/SkGLContext, some gpu.gyp cleanup, set eol style LF on all gpu files

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

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

13 years agoadd rasterclip entrypoints for scan converting paths
reed@google.com [Wed, 12 Oct 2011 20:42:05 +0000 (20:42 +0000)]
add rasterclip entrypoints for scan converting paths

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

13 years agotrim off extra alpha==0 spans before and after our bounds
reed@google.com [Wed, 12 Oct 2011 20:23:55 +0000 (20:23 +0000)]
trim off extra alpha==0 spans before and after our bounds

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

13 years agoMove gpu/include/* to include/gpu and gpu/src/* to src/gpu
bsalomon@google.com [Wed, 12 Oct 2011 19:53:16 +0000 (19:53 +0000)]
Move gpu/include/* to include/gpu and gpu/src/* to src/gpu
Review URL: http://codereview.appspot.com/5250070/

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

13 years agoSet SDK for Mac build to 10.6, ignore gyp/build, fixup gpu files to compile against...
bsalomon@google.com [Wed, 12 Oct 2011 18:12:11 +0000 (18:12 +0000)]
Set SDK for Mac build to 10.6, ignore gyp/build, fixup gpu files to compile against 10.5 if needed

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

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

13 years agoRebaseline win fixed. (shadertext images were long out of date and several tests...
bsalomon@google.com [Wed, 12 Oct 2011 15:55:04 +0000 (15:55 +0000)]
Rebaseline win fixed. (shadertext images were long out of date and several tests didn't have images)

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

13 years agoremove these (they need to be rebaselined)
reed@google.com [Wed, 12 Oct 2011 15:31:03 +0000 (15:31 +0000)]
remove these (they need to be rebaselined)

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

13 years agoRebase linux for gpu xfer mode changes
bsalomon@google.com [Wed, 12 Oct 2011 15:23:36 +0000 (15:23 +0000)]
Rebase linux for gpu xfer mode changes

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

13 years agoRebase mac pro for gpu xfer mode changes
bsalomon@google.com [Wed, 12 Oct 2011 15:12:50 +0000 (15:12 +0000)]
Rebase mac pro for gpu xfer mode changes

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

13 years agoforgot explicit return statements
reed@google.com [Wed, 12 Oct 2011 15:11:14 +0000 (15:11 +0000)]
forgot explicit return statements

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

13 years agoGpu blend optimizations, handle more xfer modes with fractional pixel coverage
bsalomon@google.com [Wed, 12 Oct 2011 14:54:26 +0000 (14:54 +0000)]
Gpu blend optimizations, handle more xfer modes with fractional pixel coverage

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

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

13 years agoupdate to new api for doAA
reed@google.com [Wed, 12 Oct 2011 14:43:27 +0000 (14:43 +0000)]
update to new api for doAA

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

13 years agouse SkRasterClip inside canvas (check-point for soft clipping)
reed@google.com [Wed, 12 Oct 2011 14:34:30 +0000 (14:34 +0000)]
use SkRasterClip inside canvas (check-point for soft clipping)

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

13 years agoseparate SkBlitMask decl into its own header
reed@google.com [Wed, 12 Oct 2011 13:43:52 +0000 (13:43 +0000)]
separate SkBlitMask decl into its own header

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

13 years agoadd bool arg to clipRect and clipPath
reed@google.com [Wed, 12 Oct 2011 11:57:42 +0000 (11:57 +0000)]
add bool arg to clipRect and clipPath

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

13 years agoadd bool argument to canvas' clipRect and clipPath for antialiasing
reed@google.com [Wed, 12 Oct 2011 11:52:53 +0000 (11:52 +0000)]
add bool argument to canvas' clipRect and clipPath for antialiasing
(currently ignored)

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

13 years agoFix per-vertex coverage on Macs with aligned attrib bug
bsalomon@google.com [Tue, 11 Oct 2011 20:15:26 +0000 (20:15 +0000)]
Fix per-vertex coverage on Macs with aligned attrib bug

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

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

13 years agouse ATSFontRef for our unique ID. Much more stable than using the ptr itself (duh)
reed@google.com [Tue, 11 Oct 2011 19:30:02 +0000 (19:30 +0000)]
use ATSFontRef for our unique ID. Much more stable than using the ptr itself (duh)

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

13 years agoadd SkRasterClip
reed@google.com [Tue, 11 Oct 2011 18:00:20 +0000 (18:00 +0000)]
add SkRasterClip

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

13 years agofix warnings (failed to return a bool)
reed@google.com [Tue, 11 Oct 2011 17:18:04 +0000 (17:18 +0000)]
fix warnings (failed to return a bool)

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

13 years agoadd op(rgn, op)
reed@google.com [Tue, 11 Oct 2011 13:15:03 +0000 (13:15 +0000)]
add op(rgn, op)

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

13 years agochange getLastPt to return a bool
reed@google.com [Tue, 11 Oct 2011 11:58:32 +0000 (11:58 +0000)]
change getLastPt to return a bool

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

13 years agoadd getTotalClipBounds() as a partial replacement for getTotalClip. This can be
reed@google.com [Mon, 10 Oct 2011 21:24:37 +0000 (21:24 +0000)]
add getTotalClipBounds() as a partial replacement for getTotalClip. This can be
faster than getTotalClip, since it doesn't need to compute the actual complex
region for the answer.

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

13 years agoadd experimental wrapper for region+aaclip
reed@google.com [Mon, 10 Oct 2011 19:36:25 +0000 (19:36 +0000)]
add experimental wrapper for region+aaclip

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

13 years agoadd setRegion and doAA parameter to setPath
reed@google.com [Mon, 10 Oct 2011 19:35:47 +0000 (19:35 +0000)]
add setRegion and doAA parameter to setPath

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

13 years agoadd baselines
reed@google.com [Mon, 10 Oct 2011 17:38:58 +0000 (17:38 +0000)]
add baselines

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

13 years agoBug fixes:
suyang1 [Mon, 10 Oct 2011 16:38:58 +0000 (16:38 +0000)]
Bug fixes:
- Mac SampleApp resize and maximize bug
- Mac SampleApp now accepts/dispatches mouse moved events
- SampleAnimator: moved drawColor outside so the sample draws a background every drawing call
- Removed SampleExtractAlpha from the repository and SampleApp.gyp
http://codereview.appspot.com/5249054/

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

13 years agoadd SkAAClip.cpp
reed@google.com [Mon, 10 Oct 2011 16:04:26 +0000 (16:04 +0000)]
add SkAAClip.cpp

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

13 years agoadd sample for clipping
reed@google.com [Mon, 10 Oct 2011 15:42:36 +0000 (15:42 +0000)]
add sample for clipping

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

13 years agoAdd semicolon back that was accidentally deleted in r2444
bsalomon@google.com [Mon, 10 Oct 2011 15:27:20 +0000 (15:27 +0000)]
Add semicolon back that was accidentally deleted in r2444

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

13 years agoMake a bunch of GrPrintfs be debug-only
bsalomon@google.com [Mon, 10 Oct 2011 15:17:58 +0000 (15:17 +0000)]
Make a bunch of GrPrintfs be debug-only

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

13 years agoWhen we're not using the NULL buffer data hint update with glBufferData rather than...
bsalomon@google.com [Mon, 10 Oct 2011 14:49:29 +0000 (14:49 +0000)]
When we're not using the NULL buffer data hint update with glBufferData rather than glBufferSubData.

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

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

13 years agoexplicitly set opt level for mac-release
reed@google.com [Mon, 10 Oct 2011 14:19:40 +0000 (14:19 +0000)]
explicitly set opt level for mac-release
delete obsolete FPS bench

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

13 years agoAdd baselines for linux aarectmodes and some missing gpu linux baselines.
bsalomon@google.com [Mon, 10 Oct 2011 14:16:05 +0000 (14:16 +0000)]
Add baselines for linux aarectmodes and some missing gpu linux baselines.

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

13 years agoAdd per-vertex coverage field, use in AA rects when alpha tweak is not valid, add...
bsalomon@google.com [Mon, 10 Oct 2011 14:08:47 +0000 (14:08 +0000)]
Add per-vertex coverage field, use in AA rects when alpha tweak is not valid, add relevant sample/gm

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

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

13 years agoFixed signed/unsigned comparison warnings in empty path gm/sample
bsalomon@google.com [Mon, 10 Oct 2011 14:03:33 +0000 (14:03 +0000)]
Fixed signed/unsigned comparison warnings in empty path gm/sample

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

13 years agoMac does not like empty projects.
bungeman@google.com [Mon, 10 Oct 2011 13:47:06 +0000 (13:47 +0000)]
Mac does not like empty projects.

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

13 years agoAdd xps device to skia.
bungeman@google.com [Mon, 10 Oct 2011 13:19:10 +0000 (13:19 +0000)]
Add xps device to skia.
http://codereview.appspot.com/5076041/

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

13 years agoimplement region-ops
reed@google.com [Mon, 10 Oct 2011 12:57:12 +0000 (12:57 +0000)]
implement region-ops

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

13 years agoSetting perspective in fixed point.
bungeman@google.com [Fri, 7 Oct 2011 21:55:56 +0000 (21:55 +0000)]
Setting perspective in fixed point.
http://codereview.appspot.com/5088043/

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

13 years agoDon't let templates live in shadows.
bungeman@google.com [Fri, 7 Oct 2011 21:10:39 +0000 (21:10 +0000)]
Don't let templates live in shadows.

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

13 years agoSeparate code paths of SkTArray at compile time.
bungeman@google.com [Fri, 7 Oct 2011 20:54:15 +0000 (20:54 +0000)]
Separate code paths of SkTArray at compile time.
http://codereview.appspot.com/5243043/

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

13 years agoFix more VS2010 warnings.
bsalomon@google.com [Fri, 7 Oct 2011 20:03:39 +0000 (20:03 +0000)]
Fix more VS2010 warnings.

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

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

13 years agoAdd newlines to debug error strings
bsalomon@google.com [Fri, 7 Oct 2011 19:55:03 +0000 (19:55 +0000)]
Add newlines to debug error strings

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

13 years agoDirectly assign glBindTexture in windows gl interface rather than wglGetProcAddress...
bsalomon@google.com [Fri, 7 Oct 2011 17:01:32 +0000 (17:01 +0000)]
Directly assign glBindTexture in windows gl interface rather than wglGetProcAddress since it is a GL 1.1 function and isn't exported as a ptr in the ATI driver.

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

13 years agorebaseline
reed@google.com [Thu, 6 Oct 2011 20:24:11 +0000 (20:24 +0000)]
rebaseline

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

13 years agoupdate baseline
reed@google.com [Thu, 6 Oct 2011 20:18:28 +0000 (20:18 +0000)]
update baseline

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

13 years agofix scalar=fixed for the new tests
reed@google.com [Thu, 6 Oct 2011 20:13:22 +0000 (20:13 +0000)]
fix scalar=fixed for the new tests

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

13 years agoadd SkAlphaBlend255
reed@google.com [Thu, 6 Oct 2011 20:04:36 +0000 (20:04 +0000)]
add SkAlphaBlend255

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

13 years agoFix clamped_gradients gm to work in fixed.
bungeman@google.com [Thu, 6 Oct 2011 19:37:39 +0000 (19:37 +0000)]
Fix clamped_gradients gm to work in fixed.

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

13 years agobug fix for character 0x200B : zero-advance-space
reed@google.com [Thu, 6 Oct 2011 16:28:45 +0000 (16:28 +0000)]
bug fix for character 0x200B : zero-advance-space
If we see a zero-advance, double check to see if its bounds should really be
empty, by asking for its path. If that is empty, jam the bounds to 0

The bug was that CT was returning a huge bounds for that character
(but, strangely enough, not for normal space character, hence our check for
zero-advance)

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

13 years agochange gamma for white and neutral text
reed@google.com [Thu, 6 Oct 2011 15:40:43 +0000 (15:40 +0000)]
change gamma for white and neutral text

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

13 years agomake no promises if we see a looper
reed@google.com [Thu, 6 Oct 2011 15:11:03 +0000 (15:11 +0000)]
make no promises if we see a looper

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

13 years agoremove mention of obsolete symbol SK_SUPPORT_888_TEXT
reed@google.com [Thu, 6 Oct 2011 13:24:52 +0000 (13:24 +0000)]
remove mention of obsolete symbol SK_SUPPORT_888_TEXT

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

13 years agouse SK_OVERRIDE
reed@google.com [Thu, 6 Oct 2011 13:14:12 +0000 (13:14 +0000)]
use SK_OVERRIDE

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

13 years agocheck-point for aaclip
reed@google.com [Thu, 6 Oct 2011 13:11:25 +0000 (13:11 +0000)]
check-point for aaclip

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

13 years agoremove unused variable "inside", begin fixing coding style
reed@google.com [Thu, 6 Oct 2011 13:11:46 +0000 (13:11 +0000)]
remove unused variable "inside", begin fixing coding style

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

13 years agomove call to nothingToDraw into our iterator, so it sees the results of filters and...
reed@google.com [Thu, 6 Oct 2011 12:37:00 +0000 (12:37 +0000)]
move call to nothingToDraw into our iterator, so it sees the results of filters and loopers
before making its decision.

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

13 years agoadd baselines
reed@google.com [Thu, 6 Oct 2011 12:17:50 +0000 (12:17 +0000)]
add baselines

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

13 years agoRebaseline shadertext on windows
bsalomon@google.com [Wed, 5 Oct 2011 20:04:04 +0000 (20:04 +0000)]
Rebaseline shadertext on windows

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

13 years agoFixup rendering of empty paths (including inverted fills)
bsalomon@google.com [Wed, 5 Oct 2011 19:57:55 +0000 (19:57 +0000)]
Fixup rendering of empty paths (including inverted fills)
Add GM and Sample that draw empty paths with various styles and fills

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

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

13 years agocheck-point for aaclip
reed@google.com [Wed, 5 Oct 2011 16:27:44 +0000 (16:27 +0000)]
check-point for aaclip

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

13 years agoRemove failing tests. Go green.
caryclark@google.com [Wed, 5 Oct 2011 15:19:56 +0000 (15:19 +0000)]
Remove failing tests. Go green.

D    gm/base-macmini-fixed/lcdtext_8888.png
D    gm/base-macbook/lcdtext_8888.png
D    gm/base-macmini/lcdtext_8888.png
D    gm/base-MacPro-fixed/lcdtext_8888.png
D    gm/base/lcdtext_8888.png

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

13 years agofix text for Lion, Leopard, Skia on Mac
caryclark@google.com [Wed, 5 Oct 2011 14:38:15 +0000 (14:38 +0000)]
fix text for Lion, Leopard, Skia on Mac

M    src/ports/SkFontHost_mac_coretext.cpp

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

13 years agofirst cut at aaclipping
reed@google.com [Tue, 4 Oct 2011 21:38:55 +0000 (21:38 +0000)]
first cut at aaclipping

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

13 years agoChange SkAutoMaskImage so that we're less likely to write leaky code.
bungeman@google.com [Tue, 4 Oct 2011 21:25:00 +0000 (21:25 +0000)]
Change SkAutoMaskImage so that we're less likely to write leaky code.
http://codereview.appspot.com/5180047/

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

13 years agoRemove nonexistant header from gyp file
bsalomon@google.com [Tue, 4 Oct 2011 21:03:41 +0000 (21:03 +0000)]
Remove nonexistant header from gyp file
Review URL: http://codereview.appspot.com/5179046/

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

13 years agofix calculation and assert for grmask -> bytes-per-pixel
reed@google.com [Tue, 4 Oct 2011 20:14:57 +0000 (20:14 +0000)]
fix calculation and assert for grmask -> bytes-per-pixel

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

13 years agoRemove debug messages that are no longer needed.
vandebo@chromium.org [Tue, 4 Oct 2011 19:00:44 +0000 (19:00 +0000)]
Remove debug messages that are no longer needed.

Code from arthurhsu@chromium.org
Original CL: http://codereview.appspot.com/5186045/

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

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

13 years agodisable CHECK_NOTHING_TO_DRAW for now, since it doesn't play well with DrawLooper
reed@google.com [Tue, 4 Oct 2011 15:37:22 +0000 (15:37 +0000)]
disable CHECK_NOTHING_TO_DRAW for now, since it doesn't play well with DrawLooper

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

13 years agoMake asBlur method const.
bungeman@google.com [Tue, 4 Oct 2011 15:11:38 +0000 (15:11 +0000)]
Make asBlur method const.
http://codereview.appspot.com/5190041/

This change makes asBlur const consistent with SkShader::asAGradient and asABitmap.

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

13 years agoNow that layout tests are fixed, remove flag to ignore margin fix.
bungeman@google.com [Tue, 4 Oct 2011 13:39:37 +0000 (13:39 +0000)]
Now that layout tests are fixed, remove flag to ignore margin fix.
http://codereview.appspot.com/5186044/

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

13 years agoquick-rejects based on xfermode, using SkPaint::nothingToDraw()
reed@google.com [Tue, 4 Oct 2011 01:17:15 +0000 (01:17 +0000)]
quick-rejects based on xfermode, using SkPaint::nothingToDraw()

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

13 years agoadd force-rle parameter to help with aaclip testing
reed@google.com [Mon, 3 Oct 2011 21:15:46 +0000 (21:15 +0000)]
add force-rle parameter to help with aaclip testing

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

13 years agoFix two warnings in bench timers.
bungeman@google.com [Mon, 3 Oct 2011 20:44:39 +0000 (20:44 +0000)]
Fix two warnings in bench timers.
http://codereview.appspot.com/5164049/

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

13 years agoadd accessors to irect
reed@google.com [Mon, 3 Oct 2011 20:27:14 +0000 (20:27 +0000)]
add accessors to irect

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