mike@reedtribe.org
4135f28932
code style
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1158 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-20 11:04:30 +00:00
mike@reedtribe.org
ebe5bcd743
code style
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1157 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-20 11:01:37 +00:00
mike@reedtribe.org
69bc9943c7
code style
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1156 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-20 10:56:02 +00:00
bsalomon@google.com
4be283f3a8
Adds a build flag for GL to never use vertex attributes that don't have per-vertex values.
...
Also promotes the ATTRIBUTE_MATRIX flag that was local to cpp files to the public config file.
Review URL: http://codereview.appspot.com/4434057/
git-svn-id: http://skia.googlecode.com/svn/trunk@1155 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-19 21:15:09 +00:00
tomhudson@google.com
c733996e84
Update shadows_ images to new baselines (per reed@).
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1154 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-19 20:19:57 +00:00
reed@google.com
feb8cc870d
code style
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1153 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-19 20:11:25 +00:00
reed@google.com
6b7aee387d
optimize when we have a colorfilter, but no shader or xfermode
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1152 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-19 18:36:09 +00:00
reed@google.com
34cec2416c
remove static from template functions
...
http://codereview.appspot.com/4437055/
git-svn-id: http://skia.googlecode.com/svn/trunk@1151 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-19 15:53:12 +00:00
bsalomon@google.com
1217afe9a7
Add SkClampRange files to gyp
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1150 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-19 13:44:20 +00:00
reed@google.com
13659f1f8d
handle overflow
...
note: gradient caller doesn't so we can still draw wrong when the caller
converts its initial fx from float->fixed. Perhaps SkClampRange should offer
a float interface as well.
git-svn-id: http://skia.googlecode.com/svn/trunk@1149 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-18 19:59:38 +00:00
bsalomon@google.com
8b484419e8
Suppress warnings in GrBufferAllocPool
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1148 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-18 19:07:44 +00:00
reed@google.com
91408cc296
fix warnings
...
code style
git-svn-id: http://skia.googlecode.com/svn/trunk@1147 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-18 18:47:46 +00:00
ctguil@chromium.org
d5683e2caa
Add newline to GrStencil.cpp to prevent warning.
...
Review URL: http://codereview.appspot.com/4442061
git-svn-id: http://skia.googlecode.com/svn/trunk@1146 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-18 18:12:50 +00:00
reed@google.com
63c1ad82fc
add fFx1 field, returning where to start the iterator for fCount1 range
...
add unittest
git-svn-id: http://skia.googlecode.com/svn/trunk@1145 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-18 14:15:36 +00:00
reed@google.com
b692a14984
disable fast linear for now (really this time)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1144 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-18 13:31:48 +00:00
reed@google.com
17705075b1
disable fast linear until we handle the overflow cases
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1143 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-18 12:43:32 +00:00
vandebo@chromium.org
77bcaa324a
[PDF] Implement clear() method and a couple fixes.
...
+ If the clip matches the initial clip, don't set the clip.
+ Don't change the transform for drawPaint.
Review URL: http://codereview.appspot.com/4424041
git-svn-id: http://skia.googlecode.com/svn/trunk@1142 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-15 20:57:37 +00:00
vandebo@chromium.org
fb0b0edd86
[PDF] If the clip is empty, we shouldn't bother actually drawing anything.
...
Plus, fix ifdef for flate test.
Review URL: http://codereview.appspot.com/4420041
git-svn-id: http://skia.googlecode.com/svn/trunk@1141 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-15 20:01:17 +00:00
reed@google.com
e61414ce7b
add SK_USE_SLOW_2POINT_RADIAL_GRADIENT option for clients that like slowness
...
(or the previous images)
git-svn-id: http://skia.googlecode.com/svn/trunk@1140 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-15 18:14:16 +00:00
reed@google.com
5eb158d84d
use SkClampRange to speedup clamp iterators
...
speeds up linear gradients 4x
git-svn-id: http://skia.googlecode.com/svn/trunk@1139 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-15 15:50:34 +00:00
reed@google.com
02b17f79cb
add gradient bench
...
use -O3 in release builds
git-svn-id: http://skia.googlecode.com/svn/trunk@1138 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-15 15:47:35 +00:00
bsalomon@google.com
8c3ff17e2c
Add DLL exports (Fixes Multi-DLL build in Chrome against TOT skia)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1137 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-15 15:42:24 +00:00
reed@google.com
73ccb980e9
move header
...
fix warning in release build
git-svn-id: http://skia.googlecode.com/svn/trunk@1136 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-15 15:31:03 +00:00
Scroggo
9df214e836
http://codereview.appspot.com/4373057/
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1135 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-15 14:48:08 +00:00
djsollen@google.com
f5dbe2f00f
Upstream android changes.
...
reviewed by: reed
git-svn-id: http://skia.googlecode.com/svn/trunk@1134 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-15 13:41:26 +00:00
reed@google.com
61eb040e2f
code style
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1133 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-15 12:11:12 +00:00
mike@reedtribe.org
676d69b82f
experimental
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1132 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-15 03:43:23 +00:00
reed@google.com
2a98181f04
add SkCanvas::clear(SkColor color) to call the new virtual clear on device.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1131 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-14 18:59:28 +00:00
bsalomon@google.com
398109cc3e
rename SkDevice::eraseColor to clear and make virtual.
...
Properly flush in GrContext before calling GrGpu::clear()
Review URL: http://codereview.appspot.com/4419043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1130 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-14 18:40:27 +00:00
reed@google.com
261b8e2ca1
fix warnings
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1129 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-14 17:53:24 +00:00
bsalomon@google.com
9ccdb95319
NO_ERROR version of GR_GL macro shouldn't call check errror
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1128 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-14 17:43:23 +00:00
reed@google.com
8ea3572dad
update to reflect new faster 2-point-radial gradients
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1127 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-14 15:52:15 +00:00
reed@google.com
43c50c8c77
add reflection asColorMode to SkColorFilter (for gpu)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1126 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-14 15:50:52 +00:00
bsalomon@google.com
586f48cfa8
Add genID for SkBitmaps with raw pixels
...
Review URL: http://codereview.appspot.com/4413047/
git-svn-id: http://skia.googlecode.com/svn/trunk@1125 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-14 15:07:22 +00:00
bsalomon@google.com
f5848e49ae
Fix wrong class name used when unregistering class for dummy window in SkOsWindow_win.cpp
...
Skia issue 212.
git-svn-id: http://skia.googlecode.com/svn/trunk@1124 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-14 12:26:31 +00:00
mike@reedtribe.org
a8282ef8f9
add mask for paint-bits to layerdrawlooper
...
change addLayer variants that don't respect paint changes to return void
git-svn-id: http://skia.googlecode.com/svn/trunk@1123 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-14 01:22:45 +00:00
bsalomon@google.com
399d454be9
test of writable Skia tree in a chrome tree.
...
(removed an extra newline from FlingState.h)
git-svn-id: http://skia.googlecode.com/svn/trunk@1122 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-13 21:28:23 +00:00
reed@google.com
c0d4aa2088
fix asMode() to always succeed if the xfermode was built from a Mode
...
update dox to reflect this
update test
git-svn-id: http://skia.googlecode.com/svn/trunk@1121 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-13 21:12:04 +00:00
reed@google.com
80adceb39a
rename radial to radial1, so I can distinguish it from radial2 in my
...
-match patter sniffer
git-svn-id: http://skia.googlecode.com/svn/trunk@1120 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-13 18:32:19 +00:00
reed@google.com
23480f0b8d
rebaseline with new 2-point-radial gradients (minor precision differences)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1119 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-13 17:44:55 +00:00
reed@google.com
84e9c0801f
speed up 2-point-radial gradients by 9x, using float instead of fixed
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1118 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-13 17:44:24 +00:00
wjmaclean@chromium.org
1fbf760a12
Fix SkFixed overflows in SkFixedSquare, SkGradientShader.
...
Return SK_FixedMax when overflow occurs.
git-svn-id: http://skia.googlecode.com/svn/trunk@1117 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-13 13:31:06 +00:00
reed@google.com
521e34e291
return Coeff for kPlus_Mode and kMultiply_Mode
...
now these work correctly on the gpu
git-svn-id: http://skia.googlecode.com/svn/trunk@1116 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-12 18:55:21 +00:00
reed@google.com
0716c63332
expand SkLayerDrawLooper to allow for an xfermode when transfering the paint's color,
...
and allow that the offset be applied pre or post
git-svn-id: http://skia.googlecode.com/svn/trunk@1115 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-12 18:32:06 +00:00
bsalomon@google.com
ea2ee8a854
Fix missing assignment of fContext in new SkGpuDevice cons.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1114 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-12 17:58:39 +00:00
bsalomon@google.com
bcdbbe61e1
rename XHelper members to onX
...
Review URL: http://codereview.appspot.com/4380056/
git-svn-id: http://skia.googlecode.com/svn/trunk@1113 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-12 15:40:00 +00:00
bsalomon@google.com
13a950ae4e
Use has_gl_extension_from_string in GrGLDefaultInterface_win.cpp (before the GL iface is installed).
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1112 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-12 14:16:21 +00:00
vandebo@chromium.org
75f97e452e
Generalize the flip origin argument to the PDF device constructor.
...
The argument still has a default value that does what most users will want, but provides more flexibility.
Chrome will use this change to support an initial translation of the origin to simulate a margin and to scale the entire content (needed on Windows).
When landing to Chrome, this will need http://codereview.chromium.org/6820038
Review URL: http://codereview.appspot.com/4373052
git-svn-id: http://skia.googlecode.com/svn/trunk@1111 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-11 23:24:18 +00:00
bsalomon@google.com
7aaee005fa
Use min of max_texture and max_renderbuffer size when calling fbo_test
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1110 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-11 19:54:04 +00:00
reed@google.com
9f2f0a84d5
add testing defines to test different blitters for antialiasing (RLE and mask)
...
speed up wide spans for maskblitter by accumulating 4-bytes at a time
code style clean up
git-svn-id: http://skia.googlecode.com/svn/trunk@1109 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-11 19:43:58 +00:00