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
mike@reedtribe.org [Sat, 9 Apr 2011 19:16:54 +0000 (19:16 +0000)]
coding style updates
git-svn-id: http://skia.googlecode.com/svn/trunk@1090
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Sat, 9 Apr 2011 18:54:23 +0000 (18:54 +0000)]
update coding style - no logic change
git-svn-id: http://skia.googlecode.com/svn/trunk@1089
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Sat, 9 Apr 2011 18:54:08 +0000 (18:54 +0000)]
fast return if no part of the paint gets replaced
git-svn-id: http://skia.googlecode.com/svn/trunk@1088
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 8 Apr 2011 19:00:04 +0000 (19:00 +0000)]
Always bind packed depth stencil formats to both attacment points
Review URL: http://codereview.appspot.com/4372048/
git-svn-id: http://skia.googlecode.com/svn/trunk@1087
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 8 Apr 2011 18:54:20 +0000 (18:54 +0000)]
add CR at end
git-svn-id: http://skia.googlecode.com/svn/trunk@1086
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 8 Apr 2011 18:07:53 +0000 (18:07 +0000)]
fix use of smooth lines
Review URL:http://codereview.appspot.com/4370050/
git-svn-id: http://skia.googlecode.com/svn/trunk@1085
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 8 Apr 2011 15:42:19 +0000 (15:42 +0000)]
unbias fy in the gpu glyphproc, since skia has pre-added 1/2 to the value
(assuming we would call floor to get a rounded value.)
apply finalFYMask not to the initial fy, but to the fyMask (so it is always
applied in the loop) in drawText.
git-svn-id: http://skia.googlecode.com/svn/trunk@1084
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Fri, 8 Apr 2011 02:41:54 +0000 (02:41 +0000)]
add optional bitflags to control which aspect of each layer's paint is applied
git-svn-id: http://skia.googlecode.com/svn/trunk@1083
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Fri, 8 Apr 2011 01:22:45 +0000 (01:22 +0000)]
[PDF] Fix node count in page tree.
It should be the number of leaves below a given node, not the number of direct children in the node.
Review URL: http://codereview.appspot.com/4355044
git-svn-id: http://skia.googlecode.com/svn/trunk@1082
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Fri, 8 Apr 2011 00:53:48 +0000 (00:53 +0000)]
fix infinite loop (doh)
git-svn-id: http://skia.googlecode.com/svn/trunk@1081
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Fri, 8 Apr 2011 00:38:05 +0000 (00:38 +0000)]
fix drawfilter to match new api
enlarge default 'z' fatbits view
git-svn-id: http://skia.googlecode.com/svn/trunk@1080
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Fri, 8 Apr 2011 00:37:03 +0000 (00:37 +0000)]
fix infinite loop if we have a drawfilter but no drawlooper
git-svn-id: http://skia.googlecode.com/svn/trunk@1079
2bbb7eff-a529-9590-31e7-
b0007b416f81
Scroggo [Thu, 7 Apr 2011 21:11:49 +0000 (21:11 +0000)]
Fix a typo in my prior commit.
git-svn-id: http://skia.googlecode.com/svn/trunk@1078
2bbb7eff-a529-9590-31e7-
b0007b416f81
Scroggo [Thu, 7 Apr 2011 20:56:21 +0000 (20:56 +0000)]
Borg
git-svn-id: http://skia.googlecode.com/svn/trunk@1077
2bbb7eff-a529-9590-31e7-
b0007b416f81
twiz@google.com [Thu, 7 Apr 2011 15:57:12 +0000 (15:57 +0000)]
During ganesh tear-down, it may be the case that the vertex and index buffers
are those currently bound to the HW geometry state. We should not assert under
these conditions.
Review: http://codereview.appspot.com/4365046/
git-svn-id: http://skia.googlecode.com/svn/trunk@1076
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 7 Apr 2011 14:21:07 +0000 (14:21 +0000)]
rebaseline strokerects with new rounded math for hairlines
git-svn-id: http://skia.googlecode.com/svn/trunk@1075
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 7 Apr 2011 14:18:59 +0000 (14:18 +0000)]
Simplify drawloopers and drawfilters. This allows the canvas to keep its
promise that const SkPaint& stay const (so we don't have bugs if a const paint
is referenced from two threads in pictures)
git-svn-id: http://skia.googlecode.com/svn/trunk@1074
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 7 Apr 2011 13:39:14 +0000 (13:39 +0000)]
update to reflect new rounding in antihairlines
git-svn-id: http://skia.googlecode.com/svn/trunk@1072
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 7 Apr 2011 13:31:48 +0000 (13:31 +0000)]
round the alphamul so we don't overflow a byte
git-svn-id: http://skia.googlecode.com/svn/trunk@1071
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 6 Apr 2011 20:17:29 +0000 (20:17 +0000)]
use new template class SkTLazy for deferred paint initialization
git-svn-id: http://skia.googlecode.com/svn/trunk@1070
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 6 Apr 2011 19:35:37 +0000 (19:35 +0000)]
Fix Two Pt Radial when circles are concentric.
Review URL: http://codereview.appspot.com/4368047/
git-svn-id: http://skia.googlecode.com/svn/trunk@1069
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 6 Apr 2011 18:18:20 +0000 (18:18 +0000)]
Remove transitionary version of getAdvancedTypefaceMetrics. Webkit has been updated.
Review URL: http://codereview.appspot.com/4383041
git-svn-id: http://skia.googlecode.com/svn/trunk@1068
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 6 Apr 2011 17:50:02 +0000 (17:50 +0000)]
Add isMultisampled() to GrRenderTarget. Cleanup MSAA vs smooth lines logic in GrGpuGL.
Skia issue: 178
Review URL: http://codereview.appspot.com/4382041/
git-svn-id: http://skia.googlecode.com/svn/trunk@1067
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 6 Apr 2011 14:39:11 +0000 (14:39 +0000)]
add strokerects baseline images
git-svn-id: http://skia.googlecode.com/svn/trunk@1066
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 6 Apr 2011 14:28:02 +0000 (14:28 +0000)]
re-re-enable antialiased rects for gpu
git-svn-id: http://skia.googlecode.com/svn/trunk@1065
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 6 Apr 2011 13:46:04 +0000 (13:46 +0000)]
eeek, revert last CL until I fix texture matrix
git-svn-id: http://skia.googlecode.com/svn/trunk@1064
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 6 Apr 2011 13:42:34 +0000 (13:42 +0000)]
enable antialiased rects
git-svn-id: http://skia.googlecode.com/svn/trunk@1063
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Wed, 6 Apr 2011 00:54:45 +0000 (00:54 +0000)]
support BW text on GPU
git-svn-id: http://skia.googlecode.com/svn/trunk@1062
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 5 Apr 2011 21:16:14 +0000 (21:16 +0000)]
Fix dangling ptr when GrRenderTarget outlives its GrTexture representation
Move management of fRenderTarget ptr from GL texture class to base class
Minor:
Remove redundant GrContext-per-frame debug code in SampleApp.cpp
Add GrTexture.cpp to legacy VS2010 vcxproj
Review URL: http://codereview.appspot.com/4352051/
git-svn-id: http://skia.googlecode.com/svn/trunk@1061
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 5 Apr 2011 21:05:37 +0000 (21:05 +0000)]
check-point (disabled) for antialiased rects
git-svn-id: http://skia.googlecode.com/svn/trunk@1060
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 5 Apr 2011 20:11:32 +0000 (20:11 +0000)]
Make SkFlate buffers statically sized (fixes Windows compile).
Review URL: http://codereview.appspot.com/4357054
git-svn-id: http://skia.googlecode.com/svn/trunk@1059
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 5 Apr 2011 20:05:56 +0000 (20:05 +0000)]
add rect.inset(dx, dy)
git-svn-id: http://skia.googlecode.com/svn/trunk@1058
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 5 Apr 2011 17:49:49 +0000 (17:49 +0000)]
Add GrTexture.cpp to legacy project files
git-svn-id: http://skia.googlecode.com/svn/trunk@1057
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 5 Apr 2011 17:08:27 +0000 (17:08 +0000)]
Adds read pixels to GrTexture and GrRenderTarget
Adds SkGrRenderTargetPixelRef for SkBitmaps that are backed by RTs that aren't textures.
Adds onReadPixels implementations for SkGr pixel ref types
git-svn-id: http://skia.googlecode.com/svn/trunk@1056
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 5 Apr 2011 14:08:25 +0000 (14:08 +0000)]
export SkDraw::ComputeRectType() and share that with SkGpuDevice
git-svn-id: http://skia.googlecode.com/svn/trunk@1055
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 5 Apr 2011 13:07:03 +0000 (13:07 +0000)]
add toggle keys:
'x' -- flip around X axis
'y' -- flip around Y axis
'b' -- toggle between normal, forced-on and forced-off antialiasing
git-svn-id: http://skia.googlecode.com/svn/trunk@1054
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 5 Apr 2011 13:05:32 +0000 (13:05 +0000)]
support BW text
git-svn-id: http://skia.googlecode.com/svn/trunk@1053
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 5 Apr 2011 13:05:18 +0000 (13:05 +0000)]
handle scale < 0 for stroke-rects
git-svn-id: http://skia.googlecode.com/svn/trunk@1052
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Apr 2011 20:06:59 +0000 (20:06 +0000)]
always flush accumulated draws before we purge the font cache
git-svn-id: http://skia.googlecode.com/svn/trunk@1051
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Mon, 4 Apr 2011 19:46:31 +0000 (19:46 +0000)]
[PDF] Make the NOT_IMPLEMENTED macro not print anything by default.
Review URL: http://codereview.appspot.com/4351046
git-svn-id: http://skia.googlecode.com/svn/trunk@1050
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Apr 2011 18:58:05 +0000 (18:58 +0000)]
reenable fast stroked rects, now that we correctly handle non-square scale
also, degenerate non-antialias rectangles now draw properly
git-svn-id: http://skia.googlecode.com/svn/trunk@1049
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 4 Apr 2011 18:45:32 +0000 (18:45 +0000)]
export GrDefaultPathRenderer/GrPathRenderer
Review URL: http://codereview.appspot.com/4357050/
git-svn-id: http://skia.googlecode.com/svn/trunk@1048
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Apr 2011 18:19:29 +0000 (18:19 +0000)]
temporarily disable fast stroking, until we handle non-square scales in matrix
git-svn-id: http://skia.googlecode.com/svn/trunk@1047
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Apr 2011 18:15:49 +0000 (18:15 +0000)]
move trimStorage to outer scope, so its memory is still valid later on when
we reference the newly assigned src pixels.
git-svn-id: http://skia.googlecode.com/svn/trunk@1046
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 4 Apr 2011 17:13:52 +0000 (17:13 +0000)]
Remove dependence on platform GL headers. Remove code that attempts to infer GL function pointers on various platforms. Instead add platform-specific implementations for Windows and Mac. (GLX coming)
Review URL: http://codereview.appspot.com/4354048/
git-svn-id: http://skia.googlecode.com/svn/trunk@1045
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Apr 2011 14:49:38 +0000 (14:49 +0000)]
rebaseline antialiased stroked rects with faster code-path (and more accurate)
git-svn-id: http://skia.googlecode.com/svn/trunk@1044
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Apr 2011 14:47:09 +0000 (14:47 +0000)]
add #ifdef SK_DISABLE_FAST_AA_STROKE_RECT to disable new 8x faster antialiased
stroked rects, since it draws slightly different (more correct) pixels, for
clients that want pixel compatibility.
git-svn-id: http://skia.googlecode.com/svn/trunk@1043
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Mon, 4 Apr 2011 14:38:12 +0000 (14:38 +0000)]
faster stroke rects
git-svn-id: http://skia.googlecode.com/svn/trunk@1042
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Apr 2011 14:33:57 +0000 (14:33 +0000)]
add baseline images for strokerects
git-svn-id: http://skia.googlecode.com/svn/trunk@1041
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Apr 2011 14:31:36 +0000 (14:31 +0000)]
add strokerects to gm
output current bench settings
git-svn-id: http://skia.googlecode.com/svn/trunk@1040
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo [Mon, 4 Apr 2011 13:02:19 +0000 (13:02 +0000)]
Remove SkMetaData from makefile.
This makefile is used to build the sample app on
unix. The file is not needed, and prevents the
build from working.
git-svn-id: http://skia.googlecode.com/svn/trunk@1039
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Sat, 2 Apr 2011 13:37:23 +0000 (13:37 +0000)]
add 2 stroke tests to rects
git-svn-id: http://skia.googlecode.com/svn/trunk@1038
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 1 Apr 2011 19:05:36 +0000 (19:05 +0000)]
add pixelref->readPixels()
unimplemented (for now) on the gpu side
git-svn-id: http://skia.googlecode.com/svn/trunk@1037
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 1 Apr 2011 18:43:22 +0000 (18:43 +0000)]
Fix crash when codec not found for SampleDecode
git-svn-id: http://skia.googlecode.com/svn/trunk@1036
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Fri, 1 Apr 2011 18:33:22 +0000 (18:33 +0000)]
Move where compression enable/disable is done to make recompilation faster.
Review URL: http://codereview.appspot.com/4354043
git-svn-id: http://skia.googlecode.com/svn/trunk@1035
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 1 Apr 2011 14:51:07 +0000 (14:51 +0000)]
fix mac build of gr unit test
Review URL: http://codereview.appspot.com/4351042/
git-svn-id: http://skia.googlecode.com/svn/trunk@1034
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 1 Apr 2011 14:30:00 +0000 (14:30 +0000)]
add () to fix warning
git-svn-id: http://skia.googlecode.com/svn/trunk@1033
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Thu, 31 Mar 2011 23:17:05 +0000 (23:17 +0000)]
Add src/core include for pdf project.
Review URL: http://codereview.appspot.com/4331053
git-svn-id: http://skia.googlecode.com/svn/trunk@1032
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Thu, 31 Mar 2011 21:26:24 +0000 (21:26 +0000)]
Refactoring the GrGpuGLShaders2 into 2 classes: GrGpuGLShaders
and GrGLProgram. The change also contains stubs and placeholders for GrEffect
(work in progress), which will extend shader and rendering capabilities in
Ganesh. The hash keys for the program cache table have been modified to be able
to accomodate variable-length keys, which will be required for GrEffect support.
Code review: http://codereview.appspot.com/4309045/
git-svn-id: http://skia.googlecode.com/svn/trunk@1031
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 30 Mar 2011 22:34:45 +0000 (22:34 +0000)]
add code to test different premul techniques (disabled right now)
git-svn-id: http://skia.googlecode.com/svn/trunk@1030
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 30 Mar 2011 22:04:53 +0000 (22:04 +0000)]
Add pdf to skia.gyp and checkin a snap of GYP.
Review URL: http://codereview.appspot.com/4307050/
git-svn-id: http://skia.googlecode.com/svn/trunk@1029
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 30 Mar 2011 21:43:04 +0000 (21:43 +0000)]
Fix signed/unsigned warnings in debug build in flushStencil()
git-svn-id: http://skia.googlecode.com/svn/trunk@1028
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 30 Mar 2011 21:31:12 +0000 (21:31 +0000)]
Add GrResource.cpp to gr_files.mk
git-svn-id: http://skia.googlecode.com/svn/trunk@1027
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 30 Mar 2011 21:26:44 +0000 (21:26 +0000)]
Add GrResource base class for ibs, texs, vbs, etc.
Add lostContext() to GrContext.
Review URL: http://codereview.appspot.com/4328044/
git-svn-id: http://skia.googlecode.com/svn/trunk@1026
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 30 Mar 2011 21:23:07 +0000 (21:23 +0000)]
replace SkRefDict with SkMetaData (much more general)
git-svn-id: http://skia.googlecode.com/svn/trunk@1025
2bbb7eff-a529-9590-31e7-
b0007b416f81