bsalomon@google.com
1a8ddf0a35
Changes the SkCanvas::readPixels API. Allows caller to read into prealloced bitmap pixels. Changes how clipping to device bounds is handled.
...
Review URL: http://codereview.appspot.com/5307077/
git-svn-id: http://skia.googlecode.com/svn/trunk@2584 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-02 19:34:16 +00:00
caryclark@google.com
c8e51782f8
fix font id calculation
...
M src/ports/SkFontHost_mac_coretext.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@2583 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-02 18:16:22 +00:00
reed@google.com
66e6cdb5eb
up glyphcache hash table to 12bits (from 8bits).
...
Experimenting shows that is the sweetspot when drawing lots of CJK
git-svn-id: http://skia.googlecode.com/svn/trunk@2582 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-02 15:20:15 +00:00
vandebo@chromium.org
083be07f8f
[PDF] Add debug assert to detect failure of GDI cache hack.
...
If we start hitting this check, then it's likely that something has regressed in WebKit.
Original CL from arthurhsu@chromium.org: http://codereview.appspot.com/5322063/
Review URL: http://codereview.appspot.com/5320062
git-svn-id: http://skia.googlecode.com/svn/trunk@2581 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-01 23:03:20 +00:00
reed@google.com
ab77aafa8c
remove tests for copyPixelsFrom (it is not gone)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2580 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-01 16:03:35 +00:00
reed@google.com
cad8176281
remove unused copyPixelsFrom ... (copyPixelsTo is next on the chopping block)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2579 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-01 15:53:28 +00:00
caryclark@google.com
873c53233c
fix monospace glyph bounds on Lion
...
M src/ports/SkFontHost_mac_coretext.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@2578 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-01 14:42:29 +00:00
reed@google.com
210ce003a5
add getDeviceSize() so callers won't need to call getDevice() so much
...
... we hope to make devices private in the future
git-svn-id: http://skia.googlecode.com/svn/trunk@2577 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-01 14:24:23 +00:00
reed@google.com
f2fc5a5708
match blitH computation for coverage in new blitRect for supersampler
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2576 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-01 11:42:42 +00:00
reed@google.com
967a35d8c5
specialize blitRect in supersampler:
...
10% fast aa-roundrects blits,
2x faster aa-roundrect-clips building
git-svn-id: http://skia.googlecode.com/svn/trunk@2575 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-31 19:37:58 +00:00
epoger@google.com
033b1aac64
Delete DEPS.android in favor of a different approach
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2573 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-31 18:06:07 +00:00
epoger@google.com
120089d12b
First attempt at DEPS.android file
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2572 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-31 17:39:33 +00:00
bsalomon@google.com
452943d9b7
internalDrawBitmap is using kShaderTextureIdx. It should be kBitmapTextureIdx. No functional change, both are names for 0.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2571 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-31 17:37:14 +00:00
bsalomon@google.com
8301de132e
Remove SK_OVERRIDE from func defn
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2570 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-31 16:47:13 +00:00
reed@google.com
1a7eabc8dc
support multiple (OR'd) -match parameters
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2568 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-31 16:33:52 +00:00
reed@google.com
b2a5162f1d
all for multiple --match foo args, which will be logically OR'd together
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2567 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-31 16:30:04 +00:00
reed@google.com
9154eb08ec
implement blitRect for aaclip builder. This speeds up setRect by 15x (for 640x480)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2566 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-31 16:07:28 +00:00
reed@google.com
57c4957604
add bench for building aaclips
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2565 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-31 14:33:35 +00:00
bsalomon@google.com
48dd1a26ec
Import all GMs as Samples.
...
Review URL: http://codereview.appspot.com/5332043/
git-svn-id: http://skia.googlecode.com/svn/trunk@2564 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-31 14:18:20 +00:00
reed@google.com
562a2ac95b
call blitRect in our convex scanconverter (next: take advantage of that in our
...
region and soft-region builders, and in our supersampler)
git-svn-id: http://skia.googlecode.com/svn/trunk@2563 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-31 14:14:18 +00:00
reed@google.com
effe847ca4
can't assume (ever :( ) that a 2-ptr src will convex
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2562 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-31 12:55:49 +00:00
reed@google.com
4d03c110a0
don't assume a 2-point path is convex, unless its also not closed
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2561 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-31 12:12:12 +00:00
mike@reedtribe.org
fc5da9266e
handle when initial edges don't agree on start-y
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2560 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-31 02:58:27 +00:00
vandebo@chromium.org
918352f86e
PDF: Fix bug in weak pointer pattern.
...
For Canonicalized objects, only remove an object from the canonical list if it is the canonical object and not if it is an instance equal to the canonical object.
BUG=381
TBR=reed@google.com
Review URL: http://codereview.appspot.com/5330058
git-svn-id: http://skia.googlecode.com/svn/trunk@2559 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-30 19:13:26 +00:00
mike@reedtribe.org
6151d1d4f0
be sure to erase complete (i.e. before the softclip)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2558 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-30 17:06:24 +00:00
mike@reedtribe.org
8c0f3d8047
Can't put a variable sized array of non-pod on the stack. Use SkAutoTDeleteArray instead.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2557 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-30 16:25:09 +00:00
bsalomon@google.com
4a018bb20b
Fix pure virtual call from destructor and turn VertBench back on
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2556 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-28 19:50:21 +00:00
reed@google.com
7b1ca8c66e
disable for now (brian is fixing)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2555 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-28 19:24:58 +00:00
reed@google.com
a6c7c4803e
add convex special case in scanconverter. about 10% faster for modest ovals and rrects
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2554 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-28 18:58:46 +00:00
reed@google.com
05d63aef00
add initial bench for drawVertices
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2553 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-28 18:57:32 +00:00
tomhudson@google.com
ca529d303e
In debug builds, only run each benchmark 1 time (test for assertion-breakage,
...
not performance).
codereview.appspot.com/5314064/
git-svn-id: http://skia.googlecode.com/svn/trunk@2552 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-28 15:34:49 +00:00
tomhudson@google.com
8382394bf2
Instead of using fixed size for GPU context in benchmain, walk list of
...
benchmarks and find the largest size required.
codereview.appspot.com/5330045/
git-svn-id: http://skia.googlecode.com/svn/trunk@2551 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-28 14:59:07 +00:00
reed@google.com
67f11b15ae
clean up, add test for soft-clip
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2550 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-28 14:55:53 +00:00
reed@google.com
d6040f6f2f
reload base after we call memmove
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2549 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-28 02:39:17 +00:00
bsalomon@google.com
72e49b8982
warning fixes
...
Review URL http://codereview.appspot.com/5328050/
git-svn-id: http://skia.googlecode.com/svn/trunk@2548 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-27 21:47:03 +00:00
reed@google.com
c5507bfe2d
fix bad return type (should have been void)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2547 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-27 21:15:36 +00:00
bsalomon@google.com
bed053871d
Rebasline windows fixed point hairmodes
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2546 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-27 20:55:06 +00:00
bsalomon@google.com
74913722bf
Add NULL GL context implementation. Use in bench (-nullgl) and SampleApp (backspace key)
...
Review URL: http://codereview.appspot.com/5303080/
git-svn-id: http://skia.googlecode.com/svn/trunk@2545 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-27 20:44:19 +00:00
tomhudson@google.com
9381363050
Extract GrDrawTarget::DrState into independent GrDrawState struct.
...
This is intended to be a first step towards making the stack of states
maintained by GrDrawTarget cheaper to maintain.
git-svn-id: http://skia.googlecode.com/svn/trunk@2544 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-27 20:21:16 +00:00
bsalomon@google.com
13788bfbed
Fix leak, reset not called in ~GrTAllocator
...
Review URL: http://codereview.appspot.com/5328047/
git-svn-id: http://skia.googlecode.com/svn/trunk@2543 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-27 17:17:44 +00:00
reed@google.com
c904191995
now we trim the aaclip after building it, to ensure that it has tight bounds
...
around its (rle compressed) image.
git-svn-id: http://skia.googlecode.com/svn/trunk@2542 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-27 16:58:46 +00:00
tomhudson@google.com
83a444602e
Remove warnings (trailing \, signed vs unsigned, parenthesization).
...
Convert some tabs into spaces.
git-svn-id: http://skia.googlecode.com/svn/trunk@2541 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-27 15:27:51 +00:00
tomhudson@google.com
71dd3e0359
New benchmark for blitRect based on call frequency observed while scrolling
...
Gmail inside Chrome. Is a bit slow...
git-svn-id: http://skia.googlecode.com/svn/trunk@2540 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-27 13:27:20 +00:00
bsalomon@google.com
289533ada6
Don't use GrDrawTarget's AA state bit to convey whether to do custom-aa
...
Review URL: http://codereview.appspot.com/5314061/
git-svn-id: http://skia.googlecode.com/svn/trunk@2539 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-27 12:34:25 +00:00
senorblanco@chromium.org
1e7281675d
Fix cmdline argument passing in SampleApp/Mac.
...
When SampleApp was ported to Cocoa, it lost the ability to pass a test
name on the command line. Fix it.
Review URL: http://codereview.appspot.com/5328042/
git-svn-id: http://skia.googlecode.com/svn/trunk@2538 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-26 21:00:37 +00:00
reed@google.com
d8676d2fd2
add test for rgn-ops. some disable for now as they don't work (yet)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2537 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-26 18:01:25 +00:00
reed@google.com
91d449ebf8
add header to document debug-vs-release, fixed-vs-float
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2536 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-26 15:25:18 +00:00
reed@google.com
12e1525306
fix new test to work in fixed-point
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2535 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-26 15:19:36 +00:00
reed@google.com
209c41511e
add initial unittests for aaclip. Fix case where BuilderBlitter skipped the top
...
few scanlines (of its bounds) and therefore didn't know to trim its bounds back
down. This can happen when the path's bounds are larger than the curve's bounds
(i.e. the control points are outside of the tight-bounds of the shape.)
git-svn-id: http://skia.googlecode.com/svn/trunk@2534 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-26 15:03:48 +00:00
reed@google.com
67cdbf5c63
remove unhelpful pixel cache in blitV
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2533 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-25 20:47:10 +00:00