Commit Graph

3134 Commits

Author SHA1 Message Date
vandebo@chromium.org
b0ccdec166 [PDF] Add GM and infrastructure to test drawing shaders with an initial transform.
Review URL: https://codereview.appspot.com/5867047

git-svn-id: http://skia.googlecode.com/svn/trunk@3450 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-21 16:45:47 +00:00
djsollen@google.com
e63793a2c8 Upstream changes from Android repository.
Review URL: https://codereview.appspot.com/5752055

git-svn-id: http://skia.googlecode.com/svn/trunk@3449 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-21 15:39:03 +00:00
robertphillips@google.com
0ffc56f674 Reverting Linux compiler complaint patch - again
git-svn-id: http://skia.googlecode.com/svn/trunk@3448 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-21 13:05:04 +00:00
robertphillips@google.com
2badb15d43 Partial re-delivery of Linux compiler complaint changes.
Was originally delivered as r3428 but was backed out due to pixel diffs on Mac mini.

http://codereview.appspot.com/5845068/



git-svn-id: http://skia.googlecode.com/svn/trunk@3447 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-21 12:26:18 +00:00
reed@google.com
56d3a23c3e Cast the result of SK_OFFSETOF to size_t to match offsetof() and avoid narrowing conversion errors
git-svn-id: http://skia.googlecode.com/svn/trunk@3446 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-21 12:25:48 +00:00
tomhudson@google.com
599445130c Move SkClampRange into src/effects, where it isn't being advertised as
something for end-users.

http://codereview.appspot.com/5864044/



git-svn-id: http://skia.googlecode.com/svn/trunk@3445 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-20 21:18:43 +00:00
bsalomon@google.com
934c570297 Add GrDrawTarget::drawIndexedInstance, use in default text context.
Review URL: http://codereview.appspot.com/5848064/



git-svn-id: http://skia.googlecode.com/svn/trunk@3444 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-20 21:17:58 +00:00
caryclark@google.com
2e7f4c810d work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@3443 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-20 21:11:59 +00:00
robertphillips@google.com
8570b5c869 Adding CMYK jpeg changes w/o .gyp alterations
http://codereview.appspot.com/5785054/



git-svn-id: http://skia.googlecode.com/svn/trunk@3442 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-20 17:40:58 +00:00
bsalomon@google.com
b3e40c04ef Convert SkMatrix::I() assignments to SkMatrix::reset() calls
git-svn-id: http://skia.googlecode.com/svn/trunk@3441 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-20 15:36:32 +00:00
djsollen@google.com
55e713c697 Add temp android modification to the GLSL version check
Review URL: https://codereview.appspot.com/5845076

git-svn-id: http://skia.googlecode.com/svn/trunk@3440 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-20 15:28:14 +00:00
robertphillips@google.com
0a89c90d18 reverting to 3437
git-svn-id: http://skia.googlecode.com/svn/trunk@3439 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-20 15:13:04 +00:00
robertphillips@google.com
d5c9e996df Fix for CMYK jpeg decoding issue (69 - unable to read some jpeg files on android)
http://codereview.appspot.com/5785054/



git-svn-id: http://skia.googlecode.com/svn/trunk@3438 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-20 14:51:47 +00:00
djsollen@google.com
166e653f67 Fix scaling issue when drawing text on a path.
If the paint is stroked and the font size is small
we were incorrectly rendering the sample text.
Review URL: https://codereview.appspot.com/5844060

git-svn-id: http://skia.googlecode.com/svn/trunk@3437 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-20 14:24:38 +00:00
bsalomon@google.com
7c3578ac7a Revert r3435, no perf win
git-svn-id: http://skia.googlecode.com/svn/trunk@3436 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-19 21:18:04 +00:00
bsalomon@google.com
4a44b4b505 inline GrDrawTarget::copyDrawState
git-svn-id: http://skia.googlecode.com/svn/trunk@3435 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-19 21:09:08 +00:00
bungeman@google.com
f8aa18c08d Compile with c++0x.
http://codereview.appspot.com/5841074/


git-svn-id: http://skia.googlecode.com/svn/trunk@3434 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-19 21:04:52 +00:00
djsollen@google.com
d8b599cb26 Add basic support for vertical text into freetype.
Review URL: https://codereview.appspot.com/5794081

git-svn-id: http://skia.googlecode.com/svn/trunk@3433 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-19 19:44:19 +00:00
reed@google.com
0b53d59a24 add optional updateMatrixClip param to getTopDevice(). Chrome should set this
only when it is needed, and in doing so it can stop using the layeriter just
to get its top device.



git-svn-id: http://skia.googlecode.com/svn/trunk@3432 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-19 18:26:34 +00:00
reed@google.com
25027723f7 rebaselin gpu versions
git-svn-id: http://skia.googlecode.com/svn/trunk@3431 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-19 18:18:32 +00:00
robertphillips@google.com
d41a1dc7a8 rolling back to r3427
git-svn-id: http://skia.googlecode.com/svn/trunk@3430 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-19 17:33:58 +00:00
robertphillips@google.com
63883bff32 Forcing buildbots to re-run
git-svn-id: http://skia.googlecode.com/svn/trunk@3429 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-19 16:54:28 +00:00
robertphillips@google.com
34c54e4423 Addressed compiler warnings in the Debug GL Interface on Linux.
http://codereview.appspot.com/5845068/



git-svn-id: http://skia.googlecode.com/svn/trunk@3428 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-19 16:19:02 +00:00
tomhudson@google.com
57e080c1eb Another fix to r3423, reinstate blitter code that was commented out for
testing and apparently isn't exercised by any of our GMs or tests.



git-svn-id: http://skia.googlecode.com/svn/trunk@3427 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-19 15:27:13 +00:00
robertphillips@google.com
0da3719050 Added debug GL Interface. This interface tracks various GL objects in order to find leaks & invalid accesses.
Core Review: http://codereview.appspot.com/5846049/




git-svn-id: http://skia.googlecode.com/svn/trunk@3426 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-19 14:42:13 +00:00
tomhudson@google.com
6c5ccd95f7 Fix Android, too, by providing cross-platform NULL version of new factory.
Another cowboy build fix.



git-svn-id: http://skia.googlecode.com/svn/trunk@3425 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-19 14:20:56 +00:00
tomhudson@google.com
20949e2fbd Remove stale #include.
Unreviewed cowboy commit to fix build.



git-svn-id: http://skia.googlecode.com/svn/trunk@3424 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-19 14:11:03 +00:00
tomhudson@google.com
8dd90a926a (SSE2) acceleration for rectangular opaque erases.
15% speedup for rectangles < 31 px wide, 5% for larger.

http://codereview.appspot.com/5843050/



git-svn-id: http://skia.googlecode.com/svn/trunk@3423 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-19 13:49:50 +00:00
bsalomon@google.com
26936d071f Make the text context not have to save / restore GrDrawState at each draw.
Reivew URL: http://codereview.appspot.com/5844049/



git-svn-id: http://skia.googlecode.com/svn/trunk@3422 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-19 13:06:19 +00:00
junov@chromium.org
f32a9b60ff GPU blit speedup: avoid texture filtering and texture domain when not necessary
BUG=crbug.com/102284
REVIEW=http://codereview.appspot.com/5836047/
TEST=code path already covered by gm/nocolorbleed gm/bitmapfilters and others



git-svn-id: http://skia.googlecode.com/svn/trunk@3421 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-16 20:54:17 +00:00
vandebo@chromium.org
293a758929 [PDF] Fix shaders when the initial transform has a translation.
Fixes chromium bug 115041

Review URL: https://codereview.appspot.com/5849045

git-svn-id: http://skia.googlecode.com/svn/trunk@3420 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-16 19:50:37 +00:00
epoger@google.com
ce47fec10c Add libjpeg.gyp that wraps third_party/externals/libjpeg/libjpeg.gyp
Review URL: https://codereview.appspot.com/5848046

git-svn-id: http://skia.googlecode.com/svn/trunk@3419 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-16 19:01:38 +00:00
epoger@google.com
573e8ba41c Add os_posix gyp variable, nesting variables dicts as needed to do so.
Review URL: https://codereview.appspot.com/5845050

git-svn-id: http://skia.googlecode.com/svn/trunk@3418 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-16 18:28:24 +00:00
bsalomon@google.com
dddf6f6363 Skip unnecessary copies in GrPaint operator ==
Review URL: http://codereview.appspot.com/5846046/



git-svn-id: http://skia.googlecode.com/svn/trunk@3417 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-16 17:50:37 +00:00
tomhudson@google.com
f97ef2f98e Delete 'obsolete' directory, most of whose contents have been there more than a year.
git-svn-id: http://skia.googlecode.com/svn/trunk@3416 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-16 17:16:25 +00:00
bsalomon@google.com
022a3e1f3e Call reset() in text context rather than set to SkMatrix::I(). Perf improvement in bench.
git-svn-id: http://skia.googlecode.com/svn/trunk@3415 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-16 15:41:40 +00:00
reed@google.com
80e1459c32 add IRect variant of getBounds()
git-svn-id: http://skia.googlecode.com/svn/trunk@3414 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-16 14:58:07 +00:00
reed@google.com
0beaba5b34 decal mode babystep
git-svn-id: http://skia.googlecode.com/svn/trunk@3413 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-16 14:38:06 +00:00
bsalomon@google.com
f4a9c82918 Split GrTextContext into baseclass and subclass
This is a step towards enabling alternate text rendering code paths (GLyphy in particular)

Committed on behalf of baranowski@chromium.org

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



git-svn-id: http://skia.googlecode.com/svn/trunk@3412 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-16 14:02:46 +00:00
epoger@google.com
aa3b6a965e Make all gyp targets automatically include common.gypi
Do this, rather than including common.gypi explicitly in all our gyp files, so that gyp files we use but do not maintain (e.g., third_party/externals/libjpeg/libjpeg.gyp) will include common.gypi too.
Review URL: https://codereview.appspot.com/5820068

git-svn-id: http://skia.googlecode.com/svn/trunk@3411 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-16 13:52:49 +00:00
reed@google.com
fb2d3c6981 forward declare SkRect
git-svn-id: http://skia.googlecode.com/svn/trunk@3410 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-15 21:18:11 +00:00
reed@google.com
86b2e43a33 add getBounds() helper
git-svn-id: http://skia.googlecode.com/svn/trunk@3409 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-15 21:17:03 +00:00
reed@google.com
c329641248 update baseline
git-svn-id: http://skia.googlecode.com/svn/trunk@3408 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-15 19:52:39 +00:00
reed@google.com
6983042b68 update baseline
git-svn-id: http://skia.googlecode.com/svn/trunk@3407 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-15 19:51:54 +00:00
tomhudson@google.com
0435f161fc Close a couple of minor memory leaks, add a valgrind suppression file to
mute complaints about apparent driver bugs.

http://codereview.appspot.com/5837046/



git-svn-id: http://skia.googlecode.com/svn/trunk@3406 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-15 18:16:39 +00:00
bsalomon@google.com
6036149354 Change vertex buffer size for draw buffer. Hopefully helps with some of the perf regression of r3382 on txt drawing.
git-svn-id: http://skia.googlecode.com/svn/trunk@3405 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-15 17:47:06 +00:00
djsollen@google.com
b8ff633dba Fix broken android build
git-svn-id: http://skia.googlecode.com/svn/trunk@3404 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-15 16:04:27 +00:00
djsollen@google.com
ff029606bd Add CreateFallbackForScript to SkTypeface for Android.
WebKit uses HarfBuzz directly to do Complex Text Layout, so it needs to get the
proper SkTypeface to pass it to HarfBuzz. However, on Android, fallback scripts
have no name, and we can only get them by file name each time (CreateFromFile).
This actually breaks the semantics of SkTypeface, which states 'The ID should
be unique for the underlying font file/data, not unique per typeface instance.'

And add 2 helper function to convert between FallbackScripts enum and font file
name. These are useful for WebKit's FontCache, which needs string as key.

https://codereview.appspot.com/5797066/

git-svn-id: http://skia.googlecode.com/svn/trunk@3403 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-15 15:49:51 +00:00
djsollen@google.com
ae8ae3d1a2 Cleanup sample slide for drawTextOnPath
Review URL: https://codereview.appspot.com/5834048

git-svn-id: http://skia.googlecode.com/svn/trunk@3402 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-15 15:01:34 +00:00
bsalomon@google.com
1a38d5508f Perform degenerate check in device coords in convex path renderer
Review URL: http://codereview.appspot.com/5821053/



git-svn-id: http://skia.googlecode.com/svn/trunk@3401 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-15 14:40:46 +00:00