caryclark@google.com
fa0588ff67
work in progress
...
in the middle of switching to sortless version
git-svn-id: http://skia.googlecode.com/svn/trunk@3768 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-26 21:01:06 +00:00
bsalomon@google.com
8e124a2454
Give GrGLProgramStage a virtual destructor
...
Review URL: http://codereview.appspot.com/6127044
git-svn-id: http://skia.googlecode.com/svn/trunk@3767 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-25 17:48:49 +00:00
robertphillips@google.com
7460b378d6
Fixed minor Release & fixed point compiler warnings on Linux
...
http://codereview.appspot.com/6118050/
git-svn-id: http://skia.googlecode.com/svn/trunk@3766 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-25 16:54:51 +00:00
bsalomon@google.com
c1f6621446
Rebaselines from r3764
...
git-svn-id: http://skia.googlecode.com/svn/trunk@3765 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-25 16:45:48 +00:00
bsalomon@google.com
7d30a21315
Fixes matrix inconsistency in GPU draws with filters. Also adds a GM test.
...
May make GM go red on bots, will rebaseline.
Committed on behalf of Guanqun.Lu@gmail.com
Review URL: http://codereview.appspot.com/6049046/
git-svn-id: http://skia.googlecode.com/svn/trunk@3764 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-25 15:52:27 +00:00
robertphillips@google.com
0f191f30af
Minor refactoring to remove duplicate enum from Ganesh (_SetOp -> SkRegion::Op)
...
http://codereview.appspot.com/6116047/
git-svn-id: http://skia.googlecode.com/svn/trunk@3763 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-25 15:23:36 +00:00
bsalomon@google.com
69afee1c8f
add isSimilarityTransform() and some tests
...
Committed on behalf of Guanqun.Lu@gmail.com
Review URL: http://codereview.appspot.com/5999050/
git-svn-id: http://skia.googlecode.com/svn/trunk@3762 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-25 15:07:40 +00:00
reed@google.com
1df888bc3a
check for numerical imprecision on phase
...
fixes http://code.google.com/p/chromium/issues/detail?id=124652
git-svn-id: http://skia.googlecode.com/svn/trunk@3761 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-24 22:47:21 +00:00
reed@google.com
566c837844
use new storage parameter to SkOrderedWriteBuffer (to avoid small dynamic allocs)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@3760 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-24 21:30:16 +00:00
reed@google.com
e49aca968c
add optional storage parameter to SkWriter32
...
git-svn-id: http://skia.googlecode.com/svn/trunk@3759 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-24 21:12:39 +00:00
epoger@google.com
494548b870
Land http://codereview.appspot.com/6117046/ for Guanqun.Lu@gmail.com
...
git-svn-id: http://skia.googlecode.com/svn/trunk@3758 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-24 15:19:23 +00:00
reed@google.com
064e50d495
allow SkMutex* as an alternative arg to SkAutoMutexAcquire constructor
...
git-svn-id: http://skia.googlecode.com/svn/trunk@3754 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-23 16:04:22 +00:00
reed@google.com
d65ad1324c
fix copy/paste error
...
git-svn-id: http://skia.googlecode.com/svn/trunk@3753 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-23 15:57:46 +00:00
reed@google.com
ae1b6b61ce
add SkTLS::Delete
...
git-svn-id: http://skia.googlecode.com/svn/trunk@3752 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-23 15:49:45 +00:00
reed@google.com
098370137f
move FontCacheLimit implementations into SkGlyphCache.cpp, in prep for TLS
...
Review URL: https://codereview.appspot.com/6110043
git-svn-id: http://skia.googlecode.com/svn/trunk@3751 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-23 15:04:44 +00:00
reed@google.com
331560e461
fix debug build
...
git-svn-id: http://skia.googlecode.com/svn/trunk@3750 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-23 14:09:38 +00:00
reed@google.com
eb9a9bfc73
cleanups in prep for tls cache
...
Review URL: https://codereview.appspot.com/6109045
git-svn-id: http://skia.googlecode.com/svn/trunk@3749 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-23 13:43:30 +00:00
reed@google.com
e6f7d6821f
add experimental tls (for font cache eventually)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@3748 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-23 12:51:32 +00:00
epoger@google.com
fa1755f12c
whitespace change to test buildbot changes in r3746
...
git-svn-id: http://skia.googlecode.com/svn/trunk@3747 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-20 20:59:29 +00:00
bsalomon@google.com
daf12bb01a
Fix early termination of GM when 16x msaa rt can't be created.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@3744 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-20 19:08:44 +00:00
scroggo@google.com
72ae6bd24e
Fix the Android build.
...
Use the correct macro for SkEmbossMaskFilter
Review URL: https://codereview.appspot.com/6081045
git-svn-id: http://skia.googlecode.com/svn/trunk@3743 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-20 18:42:55 +00:00
tomhudson@google.com
07eecdca3e
Hooks up the GrCustomStage/GrGLProgramStageFactory/GrGLProgramStage
...
classes from r3726 so they can be used. Does not implement any actual
effect stages.
Has one large known bug: if custom stages are provided, GrSamplerState
comparisons will break; this should preserve correct drawing, but decrease
performance - among other things, we'll break draw batching. To fix this
we'll need a RTTI system for GrCustomState objects, and we'll need to change
the GrSamplerState comparison from a memcmp to something that also does a
deep type-sensitive compare of any GrCustomState objects present.
http://codereview.appspot.com/6074043/
git-svn-id: http://skia.googlecode.com/svn/trunk@3742 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-20 18:35:38 +00:00
scroggo@google.com
5a2e879ef8
Fixes for drawing through an SkGPipe.
...
Implement SkGPipeCanvas::drawBitmap.
Fix a bug where needOpBytes did not necessarily provide as
many bytes as requested.
Fix a bug where needOpBytes would wipe old data without
calling notify.
Register SkEmbossMaskFilter so it can be flattened.
Override drawBitmapNine (currently unimplemented) so an
SkGPipeCanvas does not call its base class' method (which
would fail).
Review URL: https://codereview.appspot.com/6071045
git-svn-id: http://skia.googlecode.com/svn/trunk@3741 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-20 17:39:51 +00:00
bungeman@google.com
90b7e386ca
Fix gdi assert that the font is not a vector FON font.
...
See http://code.google.com/p/chromium/issues/detail?id=124313
git-svn-id: http://skia.googlecode.com/svn/trunk@3740 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-20 15:26:28 +00:00
reed@google.com
fab1ddd3a8
only add pathmeasure segment if the accumulated length was actually changed,
...
and not based on if the local length was > 0. This is necessary since
assert(delta > 0); // true
prevDistance = distance;
distance += delta;
assert(distance > prevDistance); // not always true
Fixes https://bugs.webkit.org/show_bug.cgi?id=78979
git-svn-id: http://skia.googlecode.com/svn/trunk@3739 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-20 15:10:32 +00:00
reed@google.com
d6195f956f
add x() and y() aliases for fLeft and fTop (matching SkIRect)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@3737 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-19 21:01:24 +00:00
bsalomon@google.com
b3400badf0
Fix undefined GLint in Mac builds
...
git-svn-id: http://skia.googlecode.com/svn/trunk@3736 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-19 19:27:19 +00:00
reed@google.com
57b1935dbc
silence warning
...
git-svn-id: http://skia.googlecode.com/svn/trunk@3735 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-19 19:25:49 +00:00
bsalomon@google.com
7361f54294
Make GM able to run MSAA modes and multiple GPU configs in a single run.
...
Review URL: http://codereview.appspot.com/6061051/
git-svn-id: http://skia.googlecode.com/svn/trunk@3734 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-19 19:15:35 +00:00
reed@google.com
5bfa55b1cd
fix unused-return-result-warning for invert/getPosTan
...
git-svn-id: http://skia.googlecode.com/svn/trunk@3733 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-19 18:59:25 +00:00
reed@google.com
8b0a335b6b
retarget fonttable tests to use SkTypeface api, rather than (should-be-private) SkFontHost api
...
git-svn-id: http://skia.googlecode.com/svn/trunk@3732 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-19 18:52:39 +00:00
bsalomon@google.com
44706382dd
Fix class/struct warning
...
Review URL: http://codereview.appspot.com/6073044/
git-svn-id: http://skia.googlecode.com/svn/trunk@3730 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-19 13:27:04 +00:00
reed@google.com
bb39a29772
mirror 3713 for non-antialiased-hairlines. clamp lines to 32K to avoid fixedpoint overflow
...
fixes crbug.com/123105
git-svn-id: http://skia.googlecode.com/svn/trunk@3729 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-18 21:19:26 +00:00
reed@google.com
a4b0d139e3
speculative fix for debug/release problem on windows with mirror bitmaps
...
Review URL: https://codereview.appspot.com/6063051
git-svn-id: http://skia.googlecode.com/svn/trunk@3728 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-18 20:16:18 +00:00
reed@google.com
aeb0786405
inline common case when we are left-aligned in drawPosText
...
Review URL: https://codereview.appspot.com/6051051
git-svn-id: http://skia.googlecode.com/svn/trunk@3727 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-18 18:32:04 +00:00
tomhudson@google.com
168e63418c
Infrastructure for new Ganesh shader pipeline: base classes for GPU
...
implementation of user-defined effects.
http://codereview.appspot.com/6052047/
git-svn-id: http://skia.googlecode.com/svn/trunk@3726 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-18 17:49:20 +00:00
vandebo@chromium.org
95ead84e0f
Fix some float/scalar/int confusion.
...
Review URL: https://codereview.appspot.com/6064043
git-svn-id: http://skia.googlecode.com/svn/trunk@3725 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-18 17:11:19 +00:00
reed@google.com
fec9836e18
fix memory leaks
...
Review URL: https://codereview.appspot.com/6063049
git-svn-id: http://skia.googlecode.com/svn/trunk@3724 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-18 16:19:17 +00:00
bungeman@google.com
a0319f6d07
Basic support for bitmap fonts on Windows.
...
http://codereview.appspot.com/6062044/
git-svn-id: http://skia.googlecode.com/svn/trunk@3723 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-18 15:40:50 +00:00
djsollen@google.com
2d8c757f5c
Remove unecessary virtual calls by having SkPicture use SkReader32 directly.
...
Review URL: https://codereview.appspot.com/6048046
git-svn-id: http://skia.googlecode.com/svn/trunk@3722 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-18 15:35:37 +00:00
robertphillips@google.com
e788430144
Added glBlendEquation to GL interface
...
http://codereview.appspot.com/6057047/
git-svn-id: http://skia.googlecode.com/svn/trunk@3720 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-18 14:39:58 +00:00
scroggo@google.com
7dadc748d9
In SampleWindow, pass ownership of menus to SkWindow, so it can safely
...
delete them in its destructor.
BUG=557
TEST=Run SampleApp on linux. Then press escape.
Review URL: https://codereview.appspot.com/6050047
git-svn-id: http://skia.googlecode.com/svn/trunk@3719 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-18 14:07:57 +00:00
scroggo@google.com
3b45cd53f0
Fix bug where SkGPipe'ed clips do not happen.
...
Modify SkGPipeCanvas::clipRect and ::clipPath so they correctly
override the SkCanvas versions, and therefore get called. Also use
SK_OVERRIDE for its virtual functions to help catch this in the
future.
BUG=572
Review URL: https://codereview.appspot.com/6055050
git-svn-id: http://skia.googlecode.com/svn/trunk@3718 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-18 13:57:47 +00:00
epoger@google.com
9284ccd8bc
Make gm tool able to read and write image files in the same run
...
BUG=http://code.google.com/p/skia/issues/detail?id=571
Review URL: https://codereview.appspot.com/6052050
git-svn-id: http://skia.googlecode.com/svn/trunk@3717 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-18 13:36:54 +00:00
bsalomon@google.com
6aa2965ca8
Track oval in SkPath
...
Committed on behalf of Guanqun.Lu@gmail.com
Review URL:http://codereview.appspot.com/6012047/
git-svn-id: http://skia.googlecode.com/svn/trunk@3716 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-18 13:29:52 +00:00
vandebo@chromium.org
386dfc049b
[PDF] Handle failures of matrix inversion
...
Previously reviewed in https://codereview.appspot.com/6033047 . Rolled back
because of unrelated fixed-point bugs.
Review URL: https://codereview.appspot.com/6052051
git-svn-id: http://skia.googlecode.com/svn/trunk@3715 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-17 22:31:52 +00:00
vandebo@chromium.org
c39c8674c9
Fix some fixed-point bugs.
...
Review URL: https://codereview.appspot.com/6047046
git-svn-id: http://skia.googlecode.com/svn/trunk@3714 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-17 21:46:18 +00:00
reed@google.com
99b300ed9d
chop hairlines against 32K bounds, since that is our limit (currently)
...
for a fixedpoint implementation.
git-svn-id: http://skia.googlecode.com/svn/trunk@3713 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-17 20:43:47 +00:00
vandebo@chromium.org
8aa66b6f76
Revert "[PDF] Handle failures of matrix inversion" while I investigate fixed point failures.
...
This reverts commit r3711
Review URL: https://codereview.appspot.com/6050049
git-svn-id: http://skia.googlecode.com/svn/trunk@3712 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-17 20:37:37 +00:00
vandebo@chromium.org
ebad2d9e20
[PDF] Handle failures of matrix inversion.
...
Review URL: https://codereview.appspot.com/6033047
git-svn-id: http://skia.googlecode.com/svn/trunk@3711 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-17 20:19:03 +00:00