twiz@google.com
06c3b6bfd5
Correction of Windows SampleApp build break introduced by r925.
...
(http://code.google.com/p/skia/source/detail?r=925 )
Issue: http://codereview.appspot.com/4286053/
git-svn-id: http://skia.googlecode.com/svn/trunk@933 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-14 16:58:39 +00:00
reed@google.com
f0b5f68807
add tristate toggle 'l' for lcd text drawing
...
git-svn-id: http://skia.googlecode.com/svn/trunk@925 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-11 20:08:25 +00:00
reed@google.com
5ba2d5b187
Fix warnings of SkScalar -> int conversions, by using SkScalarRound()
...
git-svn-id: http://skia.googlecode.com/svn/trunk@921 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-10 19:40:34 +00:00
bsalomon@google.com
807cec4397
Add complex clip gm sample and cleanup unused headers/code in SampleComplexClip
...
git-svn-id: http://skia.googlecode.com/svn/trunk@919 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-10 19:20:15 +00:00
bsalomon@google.com
498a623e2e
Remove offscreen GL support from SampleApp and SkOSWindow. This never worked anywhere but Mac and it doesn't work there anymore.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@918 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-10 18:24:15 +00:00
reed@google.com
f88d6765a5
check-point for kLCD16_Format mask support
...
disabled for now in SkPaint.cpp (for further testing)
git-svn-id: http://skia.googlecode.com/svn/trunk@917 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-10 15:06:27 +00:00
reed@google.com
1d12b1fd66
add setXYWH to rects
...
new tests for circles
git-svn-id: http://skia.googlecode.com/svn/trunk@877 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-03 13:23:35 +00:00
reed@google.com
55b6b58d8f
Fix inverse scanconversion -- be sure to keep our calls to SkBlitter in scanline
...
order (top to bottom), since the region blitter explicitly requires this.
git-svn-id: http://skia.googlecode.com/svn/trunk@876 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-02 15:58:18 +00:00
bsalomon@google.com
7239aab311
Sample that exercises complex clipping variations.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@875 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-02 15:35:28 +00:00
reed@google.com
d6f5a81955
#ifdef protect win specific code (e.g. LOGFONT)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@874 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-02 14:34:11 +00:00
reed@google.com
b652427197
remove obsolete generateLineHeight
...
use canonical lfHeight so we can compare different LOGFONTs and map
equivalent fonts (except for height) to the same typeface. To do this I
add fSize to scale the output from GDI to get from the canonical int textSize
to the actual fractional size.
git-svn-id: http://skia.googlecode.com/svn/trunk@871 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-01 15:18:14 +00:00
reed@google.com
a09368c971
fix bool bug so we can multisample now
...
git-svn-id: http://skia.googlecode.com/svn/trunk@851 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-24 21:42:29 +00:00
reed@google.com
11a5ff376b
use new high-quality blur in samples
...
git-svn-id: http://skia.googlecode.com/svn/trunk@819 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-18 20:20:51 +00:00
reed@google.com
a965a15abd
add test for points
...
git-svn-id: http://skia.googlecode.com/svn/trunk@806 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-17 15:06:52 +00:00
reed@google.com
67981c5e4b
add test for poly2poly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@805 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-17 14:21:01 +00:00
reed@google.com
0ecc2b79db
add text
...
git-svn-id: http://skia.googlecode.com/svn/trunk@798 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-16 13:06:15 +00:00
bsalomon@google.com
dd53d91b60
safeUnref() -> SkSafeUnref()
...
git-svn-id: http://skia.googlecode.com/svn/trunk@785 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-13 18:21:16 +00:00
reed@google.com
fb56a9ee2d
add 'c' command, which toggles a semi-complex clip (the pink is what has been
...
clipped out).
git-svn-id: http://skia.googlecode.com/svn/trunk@781 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-10 18:47:24 +00:00
bsalomon@google.com
9695921824
safeunref method to SkSafeUnref.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@777 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-08 22:03:36 +00:00
reed@google.com
82065d667f
remove SkRefCnt safeRef() and safeUnref(), and replace the call-sites with
...
SkSafeRef() and SkSafeUnref().
This is basically a bug waiting to happen. An optimizing compiler can remove
checks for null on "this" if it chooses. However, SkRefCnt::safeRef() relies on
precisely this check...
void SkRefCnt::safeRef() {
if (this) {
this->ref();
}
}
Since a compiler might skip the if-clause, it breaks the intention of this
method, hence its removal.
static inline void SkSafeRef(SkRefCnt* obj) {
if (obj) {
obj->ref();
}
}
This form is not ignored by an optimizing compile, so we use it instead.
git-svn-id: http://skia.googlecode.com/svn/trunk@762 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-07 15:30:46 +00:00
bsalomon@google.com
0fdaa22dea
Add shaded text sample and gm test.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@725 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-01-25 18:35:26 +00:00
bsalomon@google.com
5782d712ff
Rev the GrContext interface. Context has draw* functions that take a new GrPaint object. Removed many of the lower-level GrGpu function call-throughs on context.
...
Remove unused/unsupported point size (we don't draw non-hairline points using GL points).
Change current* getter functions to get* for consistency.
Fix bounds when drawing inverse-filled paths.
git-svn-id: http://skia.googlecode.com/svn/trunk@718 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-01-21 21:03:59 +00:00
bsalomon@google.com
2e7b43d33c
Remove notion of default rendertarget. This doesn't map well to usage patterns outside sample app. Make binding between SkGpuDevice and a GrRenderTarget more explicit. Create method on GrContext to wrap the current target in the 3D API with a GrRenderTarget.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@706 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-01-18 20:57:22 +00:00
reed@google.com
55b8e8c81a
add dithering to 32bit linear gradients
...
git-svn-id: http://skia.googlecode.com/svn/trunk@691 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-01-13 16:22:35 +00:00
reed@google.com
9b2135a923
git-svn-id: http://skia.googlecode.com/svn/trunk@685 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-01-11 19:45:38 +00:00
bsalomon@google.com
2fbc7fa460
Make SampleApp build on Win32 (still requires glew, this needs to be fixed)
...
In fbo test funciton set min filter to nearest (for systems that don't support rendering to level of a texture that isn't mip map complete.)
Add a lot more sample slides to the win32 build
Fix texture red/blue color swap on windows.
git-svn-id: http://skia.googlecode.com/svn/trunk@677 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-01-05 16:34:41 +00:00
reed@google.com
ac10a2d039
add gpu backend (not hooked up yet)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@649 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-12-22 21:39:39 +00:00
reed@android.com
f2b98d67dc
merge with changes for GPU backend
...
git-svn-id: http://skia.googlecode.com/svn/trunk@637 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-12-20 18:26:13 +00:00
reed@android.com
cb34235f46
fix matrix use in coretext fonthost
...
update gm images to new baseline
git-svn-id: http://skia.googlecode.com/svn/trunk@590 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-07-22 18:27:53 +00:00
reed@android.com
0bb6d06622
updates
...
git-svn-id: http://skia.googlecode.com/svn/trunk@567 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-05-17 14:50:04 +00:00
reed@android.com
7d970c739d
updates
...
git-svn-id: http://skia.googlecode.com/svn/trunk@558 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-04-22 16:07:49 +00:00
reed@android.com
b5d0f7bd47
add unittests for map()
...
git-svn-id: http://skia.googlecode.com/svn/trunk@512 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-02-24 22:08:58 +00:00
reed@android.com
745bfbd74d
add localToGlobal and parents
...
git-svn-id: http://skia.googlecode.com/svn/trunk@511 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-02-24 17:16:35 +00:00
reed@android.com
c8c49c573b
add tests for translate, concat, scale
...
git-svn-id: http://skia.googlecode.com/svn/trunk@510 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-02-24 15:36:57 +00:00
reed@android.com
2bd703b316
add DEBUG_LAYER_BOUNDS option to show layer bounds
...
git-svn-id: http://skia.googlecode.com/svn/trunk@509 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-02-24 02:01:23 +00:00
reed@android.com
da6fb3246a
more layers extracted from webkit
...
git-svn-id: http://skia.googlecode.com/svn/trunk@503 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-02-19 21:41:30 +00:00
reed@android.com
562ea92179
use statictextviews to display coordinates in unitmapper
...
git-svn-id: http://skia.googlecode.com/svn/trunk@491 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-02-08 21:45:03 +00:00
reed@android.com
2736a69077
update
...
git-svn-id: http://skia.googlecode.com/svn/trunk@484 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-01-28 21:24:01 +00:00
reed@android.com
1eadb955be
check for gl-canvas before calling GL
...
git-svn-id: http://skia.googlecode.com/svn/trunk@480 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-01-25 22:09:16 +00:00
reed@android.com
04d86c6a6b
update to try out programmable shaders
...
git-svn-id: http://skia.googlecode.com/svn/trunk@478 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-01-25 22:02:44 +00:00
reed@android.com
e191b16fda
update windows port
...
git-svn-id: http://skia.googlecode.com/svn/trunk@461 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-18 21:33:39 +00:00
reed@android.com
cb60844b34
add drawData() to canvas, to record data blobs
...
git-svn-id: http://skia.googlecode.com/svn/trunk@452 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-04 21:32:27 +00:00
reed@android.com
a3d901099d
add unittest for IntersectLine, used by hairlines
...
git-svn-id: http://skia.googlecode.com/svn/trunk@447 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-30 12:48:33 +00:00
reed@android.com
55e76b209c
outset the bounds if we're in hairline before quick-reject in SkDraw.cpp
...
git-svn-id: http://skia.googlecode.com/svn/trunk@445 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-23 21:46:47 +00:00
reed@android.com
4417740a48
add SampleCode::GetAnimTime() so slides go through a central location for
...
animation timing. This allows us to "freeze" time in order to do things like
draw multiple times to test clipping.
git-svn-id: http://skia.googlecode.com/svn/trunk@444 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-23 21:07:51 +00:00
reed@android.com
e522ca5d5f
fix winding bug in lineclipper
...
expose path.dump() all the time
UP arrow now toggles a grid of clip rects in sample app
git-svn-id: http://skia.googlecode.com/svn/trunk@443 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-23 20:10:41 +00:00
reed@android.com
e28ff55d98
retool clipping in hairlines to catch huge coordinates
...
git-svn-id: http://skia.googlecode.com/svn/trunk@436 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-19 20:46:39 +00:00
reed@android.com
909994fbae
new scanconversion technique
...
This technique geometrically clips all segments against the clip bounds,
ensuring that we never send a value to the edgelist that might overflow in
fixedpoint.
Current disabled in SkScan_Path.cpp by a #define. There are a few minor pixel
differences between this and the old technique, as found by the gm tool, so
at the moment this new code is off by default.
git-svn-id: http://skia.googlecode.com/svn/trunk@432 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-18 16:09:51 +00:00
reed@android.com
bb13586591
fix typos in cubic clipper
...
git-svn-id: http://skia.googlecode.com/svn/trunk@431 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-18 13:47:40 +00:00
reed@android.com
3a0cd7f0e8
add explicit clamping after chopping w/ t to ensure we're in the clip
...
git-svn-id: http://skia.googlecode.com/svn/trunk@430 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-17 19:39:51 +00:00