Commit Graph

2371 Commits

Author SHA1 Message Date
bsalomon@google.com
b87d2b5c2a Revert r2611 until windows gm can be debugged
git-svn-id: http://skia.googlecode.com/svn/trunk@2612 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-07 01:58:39 +00:00
bsalomon@google.com
6d9adaec78 Add replacement APIs for createPlatformSurface: createPlatformTexture and createPlatformRenderTarget
git-svn-id: http://skia.googlecode.com/svn/trunk@2611 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-07 01:37:22 +00:00
bsalomon@google.com
979432ba26 Turn off annoying printfs
git-svn-id: http://skia.googlecode.com/svn/trunk@2610 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-05 21:38:22 +00:00
bsalomon@google.com
80d09b9f7e Use timestamp to detect when client GL calls could cause Gr's cache of glTexParam values to be invalid.
git-svn-id: http://skia.googlecode.com/svn/trunk@2609 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-05 21:21:13 +00:00
bsalomon@google.com
64c4fe4113 More removal of texture fUploadByteCount and rename fFormat to fConfig for consistency.
git-svn-id: http://skia.googlecode.com/svn/trunk@2608 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-05 14:51:01 +00:00
bsalomon@google.com
9d6cfd80a0 Remove unneeded field from GrGLTexture
git-svn-id: http://skia.googlecode.com/svn/trunk@2607 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-05 13:25:21 +00:00
bsalomon@google.com
b635d39172 bump GrGpu reset context timestamp size
git-svn-id: http://skia.googlecode.com/svn/trunk@2606 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-05 12:47:43 +00:00
bsalomon@google.com
1bf1c21025 Add reset context count to GrGpu
git-svn-id: http://skia.googlecode.com/svn/trunk@2605 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-05 12:18:58 +00:00
bungeman@google.com
ce1d9e2e42 Back out fontscaler gm, as it seems to show up a gpu issue.
git-svn-id: http://skia.googlecode.com/svn/trunk@2604 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-04 16:06:33 +00:00
bungeman@google.com
0f0c2888e0 Add font scaler gm.
http://codereview.appspot.com/5337044/


git-svn-id: http://skia.googlecode.com/svn/trunk@2603 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-04 15:47:41 +00:00
djsollen@google.com
fad4510d43 Move the Android sample app into the android repo.
Review URL: http://codereview.appspot.com/5332054

git-svn-id: http://skia.googlecode.com/svn/trunk@2602 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-04 13:00:18 +00:00
bsalomon@google.com
6850eab42b Override 32BPP format in SkCanvas::readPixels
Review URL: http://codereview.appspot.com/5330073/



git-svn-id: http://skia.googlecode.com/svn/trunk@2600 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-03 20:29:47 +00:00
reed@google.com
15356a68b2 experimental -- add SkImageFilter to paint. Not called yet.
git-svn-id: http://skia.googlecode.com/svn/trunk@2599 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-03 19:29:08 +00:00
djsollen@google.com
3839ca146a Update the Skia gyp files to use the external android sources.
Review URL: http://codereview.appspot.com/5336048

git-svn-id: http://skia.googlecode.com/svn/trunk@2598 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-03 17:31:41 +00:00
reed@google.com
1f5f94325c revert accidental change to lcd format pref
git-svn-id: http://skia.googlecode.com/svn/trunk@2596 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-03 14:29:38 +00:00
reed@google.com
4a1234b7d3 create inline versions of common CGRect functions, since they appeared on
our profile of FontScalerBench



git-svn-id: http://skia.googlecode.com/svn/trunk@2595 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-03 14:28:35 +00:00
reed@google.com
8e372c98bf custom memset32 to speed up erasing the offscreen when its width is small.
git-svn-id: http://skia.googlecode.com/svn/trunk@2594 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-03 13:45:38 +00:00
djsollen@google.com
51c2fa7bb1 Fix for missing file from previous CL that broke the build.
The file defines skia_target_arch to '' for non-arm platforms.

git-svn-id: http://skia.googlecode.com/svn/trunk@2593 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-03 13:13:27 +00:00
djsollen@google.com
58629291bc Adding support to trunk for building Skia using the Android NDK.
This CL depends on a subsequent CL to add the appropriate NDK
toolchain and system sources to the skia repo.

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

git-svn-id: http://skia.googlecode.com/svn/trunk@2592 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-03 13:08:29 +00:00
reed@google.com
d0601d2e7d speed up font cache creation (20x using FontScalerBench)
git-svn-id: http://skia.googlecode.com/svn/trunk@2591 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-02 21:04:12 +00:00
reed@google.com
6e5a45c038 add bench for building the font cache
git-svn-id: http://skia.googlecode.com/svn/trunk@2590 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-02 21:02:57 +00:00
reed@google.com
11b4d8a251 add hack for testing gSkSuppressFontCachePurgeSpew
git-svn-id: http://skia.googlecode.com/svn/trunk@2589 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-02 21:02:36 +00:00
bsalomon@google.com
daba14b7d4 Line-endings only change (some windows line-endings snuck in)
git-svn-id: http://skia.googlecode.com/svn/trunk@2588 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-02 20:10:48 +00:00
bsalomon@google.com
910267dde2 Make SkDevice::onReadPixels take a const& rather than const*
git-svn-id: http://skia.googlecode.com/svn/trunk@2587 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-02 20:06:25 +00:00
bsalomon@google.com
c69809745e Recommit r2584 with gpu pass of the new ReadPixels test disabled in fixed pt (gpu code doesn't work in general in fixed pt).
git-svn-id: http://skia.googlecode.com/svn/trunk@2586 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-02 19:57:21 +00:00
bsalomon@google.com
ace7bd5623 Revert r2584 (new test fails in fixed pt builds)
git-svn-id: http://skia.googlecode.com/svn/trunk@2585 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-11-02 19:39:51 +00:00
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