reed@google.com [Tue, 26 Apr 2011 20:06:08 +0000 (20:06 +0000)]
http://codereview.appspot.com/4436057/
Tag some more API headers with SK_API so they are exposed
when doing a DLL build.
git-svn-id: http://skia.googlecode.com/svn/trunk@1193
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 26 Apr 2011 20:04:16 +0000 (20:04 +0000)]
http://codereview.appspot.com/4438070/
update SK_API for non-windows builds
git-svn-id: http://skia.googlecode.com/svn/trunk@1192
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 26 Apr 2011 19:31:33 +0000 (19:31 +0000)]
Another tiny comment-only change to trigger svn update
git-svn-id: http://skia.googlecode.com/svn/trunk@1191
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Tue, 26 Apr 2011 18:15:03 +0000 (18:15 +0000)]
Allocate a bitmap on the stack in xfermodes.cpp to work around a limitation
in SkPicture.
git-svn-id: http://skia.googlecode.com/svn/trunk@1190
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 26 Apr 2011 17:59:32 +0000 (17:59 +0000)]
Update GR_API to support non-Windows DLLs.
Review URL: http://codereview.appspot.com/4441067/
git-svn-id: http://skia.googlecode.com/svn/trunk@1189
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 26 Apr 2011 17:49:03 +0000 (17:49 +0000)]
add helper available()
git-svn-id: http://skia.googlecode.com/svn/trunk@1188
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 26 Apr 2011 17:41:56 +0000 (17:41 +0000)]
add experimental canvas pipe
git-svn-id: http://skia.googlecode.com/svn/trunk@1187
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 26 Apr 2011 15:31:40 +0000 (15:31 +0000)]
Per-draw super sampling. Disabled, path only, 2x2 only
Review URL: http://codereview.appspot.com/4452048/
git-svn-id: http://skia.googlecode.com/svn/trunk@1186
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Tue, 26 Apr 2011 14:59:32 +0000 (14:59 +0000)]
Fix default value of doSerialize parameter (oops!).
Change suffixes on auxiliary output directories to match names of flags
(-replay and -serialize).
Add to output messages an indication of whether this error occurred during
-replay or -serialize (no indication == standard rendering).
git-svn-id: http://skia.googlecode.com/svn/trunk@1185
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 26 Apr 2011 14:58:35 +0000 (14:58 +0000)]
Tiny comment-only change to trigger SVN update in buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@1184
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 26 Apr 2011 13:40:57 +0000 (13:40 +0000)]
CGColorSpaceCreateDeviceRGB() better matches CG's output
git-svn-id: http://skia.googlecode.com/svn/trunk@1183
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 26 Apr 2011 13:22:33 +0000 (13:22 +0000)]
Fix signed/unsigned warning in GrInOrderDrawBuffer.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@1182
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 26 Apr 2011 13:18:16 +0000 (13:18 +0000)]
Remove sampler state param from lockKeylessTexture. It didn't serve any function and gave the false impression that tiling modes were handled on APIs with npot limitations.
http://codereview.appspot.com/4444061/
git-svn-id: http://skia.googlecode.com/svn/trunk@1181
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Tue, 26 Apr 2011 11:48:33 +0000 (11:48 +0000)]
make SkDeviceFactory reference counted
git-svn-id: http://skia.googlecode.com/svn/trunk@1180
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Mon, 25 Apr 2011 20:49:39 +0000 (20:49 +0000)]
Fix to (two-point radial) gradient playback error in SkPictures that swapped
the X and Y coordinates of their centers.
git-svn-id: http://skia.googlecode.com/svn/trunk@1179
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 25 Apr 2011 20:02:38 +0000 (20:02 +0000)]
add SK_API
git-svn-id: http://skia.googlecode.com/svn/trunk@1178
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Mon, 25 Apr 2011 19:20:54 +0000 (19:20 +0000)]
Add command-line parameters to control execution of SkPicture tests; default
to off.
Emergency commit to fix broken test harness manually reviewed by reed@.
git-svn-id: http://skia.googlecode.com/svn/trunk@1177
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 25 Apr 2011 19:17:44 +0000 (19:17 +0000)]
Make clear a GrDrawTarget virtual method and implement in GrInOrderDrawBuffer
Review URL: http://codereview.appspot.com/4442081/
git-svn-id: http://skia.googlecode.com/svn/trunk@1176
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 25 Apr 2011 19:14:12 +0000 (19:14 +0000)]
rebaseline strokerects and gradients do to new aa code.
git-svn-id: http://skia.googlecode.com/svn/trunk@1175
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 25 Apr 2011 19:04:27 +0000 (19:04 +0000)]
devolve flattening parameters to their base classes
e.g. FlattenableReadBufer -> Reader32
git-svn-id: http://skia.googlecode.com/svn/trunk@1174
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 25 Apr 2011 18:02:58 +0000 (18:02 +0000)]
Remove unnecessary BindBuffers. These were needed when we used vertex arrays. Now we always use buffer objects.
git-svn-id: http://skia.googlecode.com/svn/trunk@1173
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 25 Apr 2011 15:51:06 +0000 (15:51 +0000)]
Add lockKeylessTexture() for caching texture without a content key.
Review URL: http://codereview.appspot.com/4440065/
git-svn-id: http://skia.googlecode.com/svn/trunk@1172
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Mon, 25 Apr 2011 15:49:53 +0000 (15:49 +0000)]
Extends gm to test SkPicture replay and serialization.
Adds usage, fixes coding style violations.
http://codereview.appspot.com/4440063
git-svn-id: http://skia.googlecode.com/svn/trunk@1171
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 25 Apr 2011 14:31:44 +0000 (14:31 +0000)]
move end-timer for FPS to afterChildren, so we will have flushed opengl
git-svn-id: http://skia.googlecode.com/svn/trunk@1170
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 25 Apr 2011 12:43:45 +0000 (12:43 +0000)]
Move alpha-ramp AA to GrContext, detect cases when AA is applied via other methods (smooth lines, MSAA) or rect falls on integer coords and skip the alpha ramp path. Use pre-fab index buffer for alpha-ramped fill rects and stroke rects.
Review URL: http://codereview.appspot.com/4449047/
git-svn-id: http://skia.googlecode.com/svn/trunk@1169
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 22 Apr 2011 19:22:58 +0000 (19:22 +0000)]
Fix copy/paste bug that causes stage 0 sample mode to be used for all stages
git-svn-id: http://skia.googlecode.com/svn/trunk@1168
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 22 Apr 2011 19:18:20 +0000 (19:18 +0000)]
add test for premultiplycolor
git-svn-id: http://skia.googlecode.com/svn/trunk@1167
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 22 Apr 2011 14:10:48 +0000 (14:10 +0000)]
migrate some samples over to SampleView, for FPS measurements
git-svn-id: http://skia.googlecode.com/svn/trunk@1166
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Fri, 22 Apr 2011 01:59:09 +0000 (01:59 +0000)]
add 'f' toggle to trigger timer for sample. Must subclass SampleView instead
of SkView to opt-in. Then override onDrawContent() and optionally onDrawBackground.
git-svn-id: http://skia.googlecode.com/svn/trunk@1165
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 20 Apr 2011 21:27:51 +0000 (21:27 +0000)]
Move docs/ outside of trunk/
See http://buganizer.corp.google.com/4313925 ('remove doxygen docs from subversion, and make it easy for users to generate them')
git-svn-id: http://skia.googlecode.com/svn/trunk@1164
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 20 Apr 2011 15:54:09 +0000 (15:54 +0000)]
tiny test commit
http://codereview.appspot.com/4432053
git-svn-id: http://skia.googlecode.com/svn/trunk@1163
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 20 Apr 2011 15:47:04 +0000 (15:47 +0000)]
Fix alignment issues with stack allocated memory allocated as bytes but used to hold other types.
Review URL: http://codereview.appspot.com/4435060/
git-svn-id: http://skia.googlecode.com/svn/trunk@1162
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 20 Apr 2011 13:01:29 +0000 (13:01 +0000)]
Fix mask from change r1155. (I blame the mistake on skipping afternoon coffee :))
git-svn-id: http://skia.googlecode.com/svn/trunk@1161
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Wed, 20 Apr 2011 11:39:28 +0000 (11:39 +0000)]
code style
git-svn-id: http://skia.googlecode.com/svn/trunk@1160
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Wed, 20 Apr 2011 11:17:30 +0000 (11:17 +0000)]
code style
git-svn-id: http://skia.googlecode.com/svn/trunk@1159
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Wed, 20 Apr 2011 11:04:30 +0000 (11:04 +0000)]
code style
git-svn-id: http://skia.googlecode.com/svn/trunk@1158
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Wed, 20 Apr 2011 11:01:37 +0000 (11:01 +0000)]
code style
git-svn-id: http://skia.googlecode.com/svn/trunk@1157
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Wed, 20 Apr 2011 10:56:02 +0000 (10:56 +0000)]
code style
git-svn-id: http://skia.googlecode.com/svn/trunk@1156
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 19 Apr 2011 21:15:09 +0000 (21:15 +0000)]
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
tomhudson@google.com [Tue, 19 Apr 2011 20:19:57 +0000 (20:19 +0000)]
Update shadows_ images to new baselines (per reed@).
git-svn-id: http://skia.googlecode.com/svn/trunk@1154
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 19 Apr 2011 20:11:25 +0000 (20:11 +0000)]
code style
git-svn-id: http://skia.googlecode.com/svn/trunk@1153
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 19 Apr 2011 18:36:09 +0000 (18:36 +0000)]
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
reed@google.com [Tue, 19 Apr 2011 15:53:12 +0000 (15:53 +0000)]
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
bsalomon@google.com [Tue, 19 Apr 2011 13:44:20 +0000 (13:44 +0000)]
Add SkClampRange files to gyp
git-svn-id: http://skia.googlecode.com/svn/trunk@1150
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 18 Apr 2011 19:59:38 +0000 (19:59 +0000)]
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
bsalomon@google.com [Mon, 18 Apr 2011 19:07:44 +0000 (19:07 +0000)]
Suppress warnings in GrBufferAllocPool
git-svn-id: http://skia.googlecode.com/svn/trunk@1148
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 18 Apr 2011 18:47:46 +0000 (18:47 +0000)]
fix warnings
code style
git-svn-id: http://skia.googlecode.com/svn/trunk@1147
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Mon, 18 Apr 2011 18:12:50 +0000 (18:12 +0000)]
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
reed@google.com [Mon, 18 Apr 2011 14:15:36 +0000 (14:15 +0000)]
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
reed@google.com [Mon, 18 Apr 2011 13:31:48 +0000 (13:31 +0000)]
disable fast linear for now (really this time)
git-svn-id: http://skia.googlecode.com/svn/trunk@1144
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 18 Apr 2011 12:43:32 +0000 (12:43 +0000)]
disable fast linear until we handle the overflow cases
git-svn-id: http://skia.googlecode.com/svn/trunk@1143
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Fri, 15 Apr 2011 20:57:37 +0000 (20:57 +0000)]
[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
vandebo@chromium.org [Fri, 15 Apr 2011 20:01:17 +0000 (20:01 +0000)]
[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
reed@google.com [Fri, 15 Apr 2011 18:14:16 +0000 (18:14 +0000)]
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
reed@google.com [Fri, 15 Apr 2011 15:50:34 +0000 (15:50 +0000)]
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
reed@google.com [Fri, 15 Apr 2011 15:47:35 +0000 (15:47 +0000)]
add gradient bench
use -O3 in release builds
git-svn-id: http://skia.googlecode.com/svn/trunk@1138
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 15 Apr 2011 15:42:24 +0000 (15:42 +0000)]
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
reed@google.com [Fri, 15 Apr 2011 15:31:03 +0000 (15:31 +0000)]
move header
fix warning in release build
git-svn-id: http://skia.googlecode.com/svn/trunk@1136
2bbb7eff-a529-9590-31e7-
b0007b416f81
Scroggo [Fri, 15 Apr 2011 14:48:08 +0000 (14:48 +0000)]
http://codereview.appspot.com/4373057/
git-svn-id: http://skia.googlecode.com/svn/trunk@1135
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Fri, 15 Apr 2011 13:41:26 +0000 (13:41 +0000)]
Upstream android changes.
reviewed by: reed
git-svn-id: http://skia.googlecode.com/svn/trunk@1134
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 15 Apr 2011 12:11:12 +0000 (12:11 +0000)]
code style
git-svn-id: http://skia.googlecode.com/svn/trunk@1133
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Fri, 15 Apr 2011 03:43:23 +0000 (03:43 +0000)]
experimental
git-svn-id: http://skia.googlecode.com/svn/trunk@1132
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 14 Apr 2011 18:59:28 +0000 (18:59 +0000)]
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
bsalomon@google.com [Thu, 14 Apr 2011 18:40:27 +0000 (18:40 +0000)]
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
reed@google.com [Thu, 14 Apr 2011 17:53:24 +0000 (17:53 +0000)]
fix warnings
git-svn-id: http://skia.googlecode.com/svn/trunk@1129
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 14 Apr 2011 17:43:23 +0000 (17:43 +0000)]
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
reed@google.com [Thu, 14 Apr 2011 15:52:15 +0000 (15:52 +0000)]
update to reflect new faster 2-point-radial gradients
git-svn-id: http://skia.googlecode.com/svn/trunk@1127
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 14 Apr 2011 15:50:52 +0000 (15:50 +0000)]
add reflection asColorMode to SkColorFilter (for gpu)
git-svn-id: http://skia.googlecode.com/svn/trunk@1126
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 14 Apr 2011 15:07:22 +0000 (15:07 +0000)]
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
bsalomon@google.com [Thu, 14 Apr 2011 12:26:31 +0000 (12:26 +0000)]
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
mike@reedtribe.org [Thu, 14 Apr 2011 01:22:45 +0000 (01:22 +0000)]
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
bsalomon@google.com [Wed, 13 Apr 2011 21:28:23 +0000 (21:28 +0000)]
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
reed@google.com [Wed, 13 Apr 2011 21:12:04 +0000 (21:12 +0000)]
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
reed@google.com [Wed, 13 Apr 2011 18:32:19 +0000 (18:32 +0000)]
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
reed@google.com [Wed, 13 Apr 2011 17:44:55 +0000 (17:44 +0000)]
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
reed@google.com [Wed, 13 Apr 2011 17:44:24 +0000 (17:44 +0000)]
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
wjmaclean@chromium.org [Wed, 13 Apr 2011 13:31:06 +0000 (13:31 +0000)]
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
reed@google.com [Tue, 12 Apr 2011 18:55:21 +0000 (18:55 +0000)]
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
reed@google.com [Tue, 12 Apr 2011 18:32:06 +0000 (18:32 +0000)]
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
bsalomon@google.com [Tue, 12 Apr 2011 17:58:39 +0000 (17:58 +0000)]
Fix missing assignment of fContext in new SkGpuDevice cons.
git-svn-id: http://skia.googlecode.com/svn/trunk@1114
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 12 Apr 2011 15:40:00 +0000 (15:40 +0000)]
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
bsalomon@google.com [Tue, 12 Apr 2011 14:16:21 +0000 (14:16 +0000)]
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
vandebo@chromium.org [Mon, 11 Apr 2011 23:24:18 +0000 (23:24 +0000)]
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
bsalomon@google.com [Mon, 11 Apr 2011 19:54:04 +0000 (19:54 +0000)]
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
reed@google.com [Mon, 11 Apr 2011 19:43:58 +0000 (19:43 +0000)]
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
reed@google.com [Mon, 11 Apr 2011 19:42:50 +0000 (19:42 +0000)]
mark viewport APIs as deprecated
git-svn-id: http://skia.googlecode.com/svn/trunk@1108
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 11 Apr 2011 19:20:46 +0000 (19:20 +0000)]
Review URL: http://codereview.appspot.com/4360049/
git-svn-id: http://skia.googlecode.com/svn/trunk@1107
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 11 Apr 2011 19:01:12 +0000 (19:01 +0000)]
code style
git-svn-id: http://skia.googlecode.com/svn/trunk@1106
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 11 Apr 2011 17:58:48 +0000 (17:58 +0000)]
Add APIs and plumbing for external rendertaret-textures w/ and w/out MSAA.
Review URL: http://codereview.appspot.com/4388049/
git-svn-id: http://skia.googlecode.com/svn/trunk@1102
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Mon, 11 Apr 2011 15:59:47 +0000 (15:59 +0000)]
This patch provides the include file common.gypi (cargo culted from another
project) which implements basic support for Debug and Release targets in the
gyp-generated project files. All configurations build on all platforms with
the exception of Windows/Release, which seems to have compile errors not
resolved here.
Review URL: http://codereview.appspot.com/4391042/
git-svn-id: http://skia.googlecode.com/svn/trunk@1101
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 11 Apr 2011 14:37:20 +0000 (14:37 +0000)]
add initial baselines for pathfill on linux
git-svn-id: http://skia.googlecode.com/svn/trunk@1100
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 11 Apr 2011 13:57:34 +0000 (13:57 +0000)]
add
git-svn-id: http://skia.googlecode.com/svn/trunk@1099
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 11 Apr 2011 13:57:04 +0000 (13:57 +0000)]
add pathfill gm sample
git-svn-id: http://skia.googlecode.com/svn/trunk@1098
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 11 Apr 2011 13:12:51 +0000 (13:12 +0000)]
add benchmark for path filling
git-svn-id: http://skia.googlecode.com/svn/trunk@1097
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 11 Apr 2011 11:57:54 +0000 (11:57 +0000)]
code style
git-svn-id: http://skia.googlecode.com/svn/trunk@1096
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Sun, 10 Apr 2011 01:04:37 +0000 (01:04 +0000)]
code style
git-svn-id: http://skia.googlecode.com/svn/trunk@1095
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Sun, 10 Apr 2011 00:44:32 +0000 (00:44 +0000)]
balance sk_malloc with sk_free (instead of delete[]) in SkAutoUCS2
patch submitted by alean2...@gmail.com
git-svn-id: http://skia.googlecode.com/svn/trunk@1094
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Sun, 10 Apr 2011 00:35:29 +0000 (00:35 +0000)]
add init() to SkTLazy to create a default instance
use SkLazyPaint in internalDrawBitmap
git-svn-id: http://skia.googlecode.com/svn/trunk@1093
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Sat, 9 Apr 2011 19:39:25 +0000 (19:39 +0000)]
coding style
git-svn-id: http://skia.googlecode.com/svn/trunk@1092
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Sat, 9 Apr 2011 19:28:43 +0000 (19:28 +0000)]
coding style
git-svn-id: http://skia.googlecode.com/svn/trunk@1091
2bbb7eff-a529-9590-31e7-
b0007b416f81