bsalomon@google.com
5877ffd5ea
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
2011-04-11 17:58:48 +00:00
senorblanco@chromium.org
afac88855a
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
2011-04-11 15:59:47 +00:00
reed@google.com
cff1c7f490
add initial baselines for pathfill on linux
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1100 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-11 14:37:20 +00:00
reed@google.com
ad89fbd353
add
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1099 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-11 13:57:34 +00:00
reed@google.com
c280700ad8
add pathfill gm sample
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1098 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-11 13:57:04 +00:00
reed@google.com
d34658a5f1
add benchmark for path filling
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1097 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-11 13:12:51 +00:00
reed@google.com
7db9fe65b2
code style
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1096 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-11 11:57:54 +00:00
mike@reedtribe.org
4e1d3acc16
code style
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1095 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-10 01:04:37 +00:00
mike@reedtribe.org
d5e05d4286
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
2011-04-10 00:44:32 +00:00
mike@reedtribe.org
2c8fc5a703
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
2011-04-10 00:35:29 +00:00
mike@reedtribe.org
d11f0e0173
coding style
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1092 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-09 19:39:25 +00:00
mike@reedtribe.org
eadc8072aa
coding style
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1091 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-09 19:28:43 +00:00
mike@reedtribe.org
bcc1d33e94
coding style updates
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1090 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-09 19:16:54 +00:00
mike@reedtribe.org
99219d337f
update coding style - no logic change
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1089 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-09 18:54:23 +00:00
mike@reedtribe.org
3c1225bee4
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
2011-04-09 18:54:08 +00:00
bsalomon@google.com
9283b583ab
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
2011-04-08 19:00:04 +00:00
reed@google.com
4281d65093
add CR at end
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1086 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-08 18:54:20 +00:00
bsalomon@google.com
0650e811b5
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
2011-04-08 18:07:53 +00:00
reed@google.com
39ce0ac09a
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
2011-04-08 15:42:19 +00:00
mike@reedtribe.org
0e2810be95
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
2011-04-08 02:41:54 +00:00
vandebo@chromium.org
bd36ebe294
[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
2011-04-08 01:22:45 +00:00
mike@reedtribe.org
e5d0def6d9
fix infinite loop (doh)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1081 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-08 00:53:48 +00:00
mike@reedtribe.org
3ce59dc499
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
2011-04-08 00:38:05 +00:00
mike@reedtribe.org
53e3bed84b
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
2011-04-08 00:37:03 +00:00
Scroggo
eb1760377d
Fix a typo in my prior commit.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1078 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-07 21:11:49 +00:00
Scroggo
813c33c86b
Borg
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1077 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-07 20:56:21 +00:00
twiz@google.com
f236d16914
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
2011-04-07 15:57:12 +00:00
reed@google.com
a7e2370e72
rebaseline strokerects with new rounded math for hairlines
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1075 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-07 14:21:07 +00:00
reed@google.com
4e2b3d3fb1
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
2011-04-07 14:18:59 +00:00
reed@google.com
591b6dadb0
update to reflect new rounding in antihairlines
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1072 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-07 13:39:14 +00:00
reed@google.com
3a968750b2
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
2011-04-07 13:31:48 +00:00
reed@google.com
a076e9be17
use new template class SkTLazy for deferred paint initialization
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1070 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-06 20:17:29 +00:00
bsalomon@google.com
dc66c42d7d
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
2011-04-06 19:35:37 +00:00
vandebo@chromium.org
139d84b263
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
2011-04-06 18:18:20 +00:00
bsalomon@google.com
f954d8dd9a
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
2011-04-06 17:50:02 +00:00
reed@google.com
7cf3dcd902
add strokerects baseline images
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1066 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-06 14:39:11 +00:00
reed@google.com
7de5fc22e6
re-re-enable antialiased rects for gpu
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1065 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-06 14:28:02 +00:00
reed@google.com
f1f4a67e0d
eeek, revert last CL until I fix texture matrix
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1064 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-06 13:46:04 +00:00
reed@google.com
bf86c63065
enable antialiased rects
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1063 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-06 13:42:34 +00:00
mike@reedtribe.org
c34effe857
support BW text on GPU
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1062 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-06 00:54:45 +00:00
bsalomon@google.com
6dcf499d35
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
2011-04-05 21:16:14 +00:00
reed@google.com
c9aa587f4a
check-point (disabled) for antialiased rects
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1060 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-05 21:05:37 +00:00
vandebo@chromium.org
c7a38f38c9
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
2011-04-05 20:11:32 +00:00
reed@google.com
f81401763e
add rect.inset(dx, dy)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1058 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-05 20:05:56 +00:00
bsalomon@google.com
3eb291455c
Add GrTexture.cpp to legacy project files
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1057 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-05 17:49:49 +00:00
bsalomon@google.com
669fdc4ed8
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
2011-04-05 17:08:27 +00:00
reed@google.com
62ab7addb0
export SkDraw::ComputeRectType() and share that with SkGpuDevice
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1055 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-05 14:08:25 +00:00
reed@google.com
569e0435af
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
2011-04-05 13:07:03 +00:00
reed@google.com
261c20a122
support BW text
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1053 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-05 13:05:32 +00:00
reed@google.com
6115338c59
handle scale < 0 for stroke-rects
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1052 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-04-05 13:05:18 +00:00