reed@google.com [Tue, 8 Mar 2011 15:36:57 +0000 (15:36 +0000)]
add LF at end of file (dumb warning)
git-svn-id: http://skia.googlecode.com/svn/trunk@902
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 8 Mar 2011 15:34:06 +0000 (15:34 +0000)]
add LF at end of file (ancient warning appeased)
git-svn-id: http://skia.googlecode.com/svn/trunk@901
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 8 Mar 2011 14:51:44 +0000 (14:51 +0000)]
add const to SkColorShader's asABitmap
git-svn-id: http://skia.googlecode.com/svn/trunk@900
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 7 Mar 2011 21:29:21 +0000 (21:29 +0000)]
fix warnings in VS 2010
drawPaint() doesn't need +1 to fill its bounds
git-svn-id: http://skia.googlecode.com/svn/trunk@899
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 7 Mar 2011 19:29:00 +0000 (19:29 +0000)]
make asABitmap() const
change private cache fields in gradient to be mutable
git-svn-id: http://skia.googlecode.com/svn/trunk@898
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 7 Mar 2011 14:07:01 +0000 (14:07 +0000)]
Fix warning about uninit var subpathClosed
git-svn-id: http://skia.googlecode.com/svn/trunk@897
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Sat, 5 Mar 2011 00:24:50 +0000 (00:24 +0000)]
[PDF] Re add line accidentally removed in r892.
git-svn-id: http://skia.googlecode.com/svn/trunk@896
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 4 Mar 2011 22:48:25 +0000 (22:48 +0000)]
Fix Sample App on Win32 GL window resize, fix sk->gr convexity hint, fix grpath uninit warnings
Review URL http://codereview.appspot.com/
4247055/
git-svn-id: http://skia.googlecode.com/svn/trunk@895
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 4 Mar 2011 22:27:10 +0000 (22:27 +0000)]
add origin to device
used for interpreting the clipstack when a device is a layer
git-svn-id: http://skia.googlecode.com/svn/trunk@894
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Fri, 4 Mar 2011 21:47:04 +0000 (21:47 +0000)]
Add SkPDFUtils.cpp to build.
git-svn-id: http://skia.googlecode.com/svn/trunk@893
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Fri, 4 Mar 2011 21:43:27 +0000 (21:43 +0000)]
PDF Type3 Support.
git-svn-id: http://skia.googlecode.com/svn/trunk@892
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 4 Mar 2011 20:29:08 +0000 (20:29 +0000)]
Fixups for clipstack, convexity test for paths.
Review URL http://codereview.appspot.com/
4250056/
git-svn-id: http://skia.googlecode.com/svn/trunk@891
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Fri, 4 Mar 2011 19:39:56 +0000 (19:39 +0000)]
Update windows port of of SkFontHost::GetAdvancedTypefaceMetrics to use calculateGlyphCount.
Review URL: http://codereview.appspot.com/
4245060
git-svn-id: http://skia.googlecode.com/svn/trunk@890
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 4 Mar 2011 19:33:13 +0000 (19:33 +0000)]
fix () warning
git-svn-id: http://skia.googlecode.com/svn/trunk@889
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Fri, 4 Mar 2011 19:04:57 +0000 (19:04 +0000)]
Implement SkScalerContext_Windows::generateGlyphCount() and provide access via SkGlyphCache interface.
* This will be used by PDF font code.
Review URL: http://codereview.appspot.com/
4261042
git-svn-id: http://skia.googlecode.com/svn/trunk@888
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Fri, 4 Mar 2011 19:03:26 +0000 (19:03 +0000)]
Add include\ports to include path for SampleApp project on windows.
Review URL: http://codereview.appspot.com/
4241049
git-svn-id: http://skia.googlecode.com/svn/trunk@887
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 4 Mar 2011 15:56:12 +0000 (15:56 +0000)]
export SkCreateTypefaceFromLOGFONT
git-svn-id: http://skia.googlecode.com/svn/trunk@886
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 4 Mar 2011 14:05:03 +0000 (14:05 +0000)]
delete unused file
git-svn-id: http://skia.googlecode.com/svn/trunk@885
2bbb7eff-a529-9590-31e7-
b0007b416f81
thakis@chromium.org [Fri, 4 Mar 2011 07:47:04 +0000 (07:47 +0000)]
Delete another unused file.
git-svn-id: http://skia.googlecode.com/svn/trunk@884
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Fri, 4 Mar 2011 03:15:13 +0000 (03:15 +0000)]
[PDF] Restrict scalars to the range that PDF understands.
* Add a config flag to ignore the restrictions
* Apply restriction to both SkPDFScalar and scalars used in content streams.
* +/- 32,767 for the integer part.
* +/1 1/65536 for the fraction part.
Review URL: http://codereview.appspot.com/
4240050
git-svn-id: http://skia.googlecode.com/svn/trunk@882
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 3 Mar 2011 18:43:14 +0000 (18:43 +0000)]
bump SkStrAppendScalar_MaxSize to 15 to handle 3-digit exponents on some
platforms (like windows)
git-svn-id: http://skia.googlecode.com/svn/trunk@881
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Thu, 3 Mar 2011 18:20:12 +0000 (18:20 +0000)]
Expose explicit functions to stringify float's and fixed's.
See http://codereview.appspot.com/
4240050/
Review URL: http://codereview.appspot.com/
4240068
git-svn-id: http://skia.googlecode.com/svn/trunk@880
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 3 Mar 2011 14:32:51 +0000 (14:32 +0000)]
Our region blitter (invoked by region::setPath()) must have its scanlines
fed to it in scanline order (Y sorted, then X sorted).
If, however, we call rgn->setPath(path, otherRgn) with path in inverse mode,
then our scan converter code looks like this:
if (inverse)
blit_top
scan_convert_path
if (inverse)
blit_bottom
This is fine, unless otherRgn is complex. If it is, then blit_top will want to
efficiently "blit" otherRgn (the part above the path), and that means calling
blitRect in an iterator. That can result in chunks being passed to our blitter
(which is really accumulating scanlines) out of scanline order.
The change is to detect that otherRgn is complex, and if it is, just perform
the op in two steps:
1. setPath on a tmp region, limited by the bounds of otherRgn (simple)
2. intersect this tmp region with the currRgn.
This is effectively what we do for non-intersect ops. Intersect was different
only because we could (sometimes) avoid the step of create a tmp region.
git-svn-id: http://skia.googlecode.com/svn/trunk@879
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 3 Mar 2011 13:54:13 +0000 (13:54 +0000)]
Add support for clipstack to Gr. GrClip is now a list of rects and paths with set operations to combine them. The stencil buffer is used to perform the set operations to put the clip into the stencil buffer. Building Gr's clip from Skia's clipStack is currently disabled due to the fact that Skia's clipStack is relative to the root layer not the current layer. This will be fixed in a subsequent CL.
git-svn-id: http://skia.googlecode.com/svn/trunk@878
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 3 Mar 2011 13:23:35 +0000 (13:23 +0000)]
add setXYWH to rects
new tests for circles
git-svn-id: http://skia.googlecode.com/svn/trunk@877
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 2 Mar 2011 15:58:18 +0000 (15:58 +0000)]
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
bsalomon@google.com [Wed, 2 Mar 2011 15:35:28 +0000 (15:35 +0000)]
Sample that exercises complex clipping variations.
git-svn-id: http://skia.googlecode.com/svn/trunk@875
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 2 Mar 2011 14:34:11 +0000 (14:34 +0000)]
#ifdef protect win specific code (e.g. LOGFONT)
git-svn-id: http://skia.googlecode.com/svn/trunk@874
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 1 Mar 2011 21:33:48 +0000 (21:33 +0000)]
check that alloc() succeeded before calling the scaler's getImage()
git-svn-id: http://skia.googlecode.com/svn/trunk@873
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 1 Mar 2011 15:44:08 +0000 (15:44 +0000)]
bump SkStrAppendScalar_MaxSize to 14 to accomodate the largest string now that
scalar->string uses %.8g. Floats have at most 8 significant digits, plus we add
more space for sign, decimal point and exponent.
add tests to check these limits.
git-svn-id: http://skia.googlecode.com/svn/trunk@872
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 1 Mar 2011 15:18:14 +0000 (15:18 +0000)]
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
reed@google.com [Tue, 1 Mar 2011 15:15:13 +0000 (15:15 +0000)]
fix float->int warning
git-svn-id: http://skia.googlecode.com/svn/trunk@870
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 1 Mar 2011 15:14:44 +0000 (15:14 +0000)]
fix warnings from windows
git-svn-id: http://skia.googlecode.com/svn/trunk@869
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Tue, 1 Mar 2011 02:41:03 +0000 (02:41 +0000)]
Add uniscribe library to windows release configuration.
Review URL: http://codereview.appspot.com/
4253045
git-svn-id: http://skia.googlecode.com/svn/trunk@866
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 28 Feb 2011 21:29:58 +0000 (21:29 +0000)]
use sprintf to generate float->string for SkString routines, removing the
worry of first converting the scalar to a fixed.
git-svn-id: http://skia.googlecode.com/svn/trunk@865
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 28 Feb 2011 21:08:23 +0000 (21:08 +0000)]
export SkCreateTypefaceFromLOGFONT
git-svn-id: http://skia.googlecode.com/svn/trunk@864
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Mon, 28 Feb 2011 19:52:18 +0000 (19:52 +0000)]
[PDF] Fix broken encoding conversion code for non-multibyte fonts.
Review URL: http://codereview.appspot.com/
4245044
git-svn-id: http://skia.googlecode.com/svn/trunk@863
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Fri, 25 Feb 2011 22:21:15 +0000 (22:21 +0000)]
Remove SkRefCnt.cpp from windows build.
Review URL: http://codereview.appspot.com/
4239043
git-svn-id: http://skia.googlecode.com/svn/trunk@862
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 25 Feb 2011 22:08:55 +0000 (22:08 +0000)]
remove SkRefCnt.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@861
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 25 Feb 2011 21:50:42 +0000 (21:50 +0000)]
Fix double delete of vb pool and missing delete of ib pool
git-svn-id: http://skia.googlecode.com/svn/trunk@860
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 25 Feb 2011 19:50:19 +0000 (19:50 +0000)]
add simple test for SkBitmap::getColor()
git-svn-id: http://skia.googlecode.com/svn/trunk@859
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 25 Feb 2011 18:10:29 +0000 (18:10 +0000)]
http://codereview.appspot.com/
4233041/
Add templated version of SkAutoTUnref.
Add unittests for it.
Remove unused helper apis on SkAutoUnref.
git-svn-id: http://skia.googlecode.com/svn/trunk@858
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 25 Feb 2011 15:07:30 +0000 (15:07 +0000)]
Stop using deprecated APIs. Fix by twiz.
http://codereview.appspot.com/
4249041/
BUG=http://code.google.com/p/skia/issues/detail?id=151
git-svn-id: http://skia.googlecode.com/svn/trunk@857
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Thu, 24 Feb 2011 23:22:30 +0000 (23:22 +0000)]
[PDF] Remove one copy of each content stream.
Review URL: http://codereview.appspot.com/
4231044
git-svn-id: http://skia.googlecode.com/svn/trunk@856
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Thu, 24 Feb 2011 23:14:04 +0000 (23:14 +0000)]
[PDF] Change the way flip origin is done.
The PDF shader matrix is dependent on flip origin or not, so we need to set it at device creation time.
Review URL: http://codereview.appspot.com/
4216046
git-svn-id: http://skia.googlecode.com/svn/trunk@855
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Thu, 24 Feb 2011 22:50:55 +0000 (22:50 +0000)]
Add SkBitmap::getColor(int x, int y) - return the color of a pixel in a bitmap.
Review URL: http://codereview.appspot.com/
4230041
git-svn-id: http://skia.googlecode.com/svn/trunk@854
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Thu, 24 Feb 2011 21:51:13 +0000 (21:51 +0000)]
[PDF] Bug fix - missing last odd column in 4444 bitmaps.
Review URL: http://codereview.appspot.com/
4212044
git-svn-id: http://skia.googlecode.com/svn/trunk@853
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Thu, 24 Feb 2011 21:50:04 +0000 (21:50 +0000)]
[PDF] Clean up SkPDFStream and make it inherit from SkPDFDict.
A stream is a dictionary (with a couple particular entries) plus the data.
The common parent is useful for the shader implementation.
Review URL: http://codereview.appspot.com/
4221045
git-svn-id: http://skia.googlecode.com/svn/trunk@852
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 24 Feb 2011 21:42:29 +0000 (21:42 +0000)]
fix bool bug so we can multisample now
git-svn-id: http://skia.googlecode.com/svn/trunk@851
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 24 Feb 2011 18:09:46 +0000 (18:09 +0000)]
Guard globalRef() virtual with #ifdef ANDROID, as these are not implemented
nor called by Skia proper.
git-svn-id: http://skia.googlecode.com/svn/trunk@850
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 24 Feb 2011 18:03:12 +0000 (18:03 +0000)]
add isFixedWidth() to expose the newly added attribute
git-svn-id: http://skia.googlecode.com/svn/trunk@849
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Thu, 24 Feb 2011 16:28:51 +0000 (16:28 +0000)]
Upstreaming code from android repository.
* fix for png decoder
* clean up for SkFontHost
reviewed by reed@google.com
git-svn-id: http://skia.googlecode.com/svn/trunk@847
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 24 Feb 2011 13:04:42 +0000 (13:04 +0000)]
disable assert on validateClip in default build for now
git-svn-id: http://skia.googlecode.com/svn/trunk@846
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Thu, 24 Feb 2011 00:21:06 +0000 (00:21 +0000)]
Add asAGradient shader extraction API.
Store initial gradient parameters.
Add compile asserts in GPU code for BitmapType ordering.
Review URL: http://codereview.appspot.com/
4178063
git-svn-id: http://skia.googlecode.com/svn/trunk@845
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 23 Feb 2011 22:39:18 +0000 (22:39 +0000)]
add fClipStack optional field to SkDraw (it is always set by canvas)
git-svn-id: http://skia.googlecode.com/svn/trunk@844
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 23 Feb 2011 21:47:37 +0000 (21:47 +0000)]
set the rgn to empty if the clipstack says empty (in our validate routine)
git-svn-id: http://skia.googlecode.com/svn/trunk@843
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 23 Feb 2011 20:53:12 +0000 (20:53 +0000)]
add/update images for linux
git-svn-id: http://skia.googlecode.com/svn/trunk@842
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Wed, 23 Feb 2011 20:46:31 +0000 (20:46 +0000)]
merge from android tree:
- optional parameters added to descriptorProc and allocPixels
- clip options to image decoders
- check for xfermode in blitter_a8
- UNROLL loops in blitrow
reviewed by reed@google.com
git-svn-id: http://skia.googlecode.com/svn/trunk@841
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 23 Feb 2011 18:56:55 +0000 (18:56 +0000)]
refactor to use a shared function (clipPathHelper) between
SkCanvas::clipPath() and SkCanvas::validateClip().
git-svn-id: http://skia.googlecode.com/svn/trunk@840
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Wed, 23 Feb 2011 18:44:57 +0000 (18:44 +0000)]
Support unicode to glyph id conversion in windows for non-BMP characters.
BUG=144
Review URL: http://codereview.appspot.com/
4172054
git-svn-id: http://skia.googlecode.com/svn/trunk@839
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 23 Feb 2011 14:49:33 +0000 (14:49 +0000)]
update to add isFixedWidth attribute to typefaces
git-svn-id: http://skia.googlecode.com/svn/trunk@838
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 23 Feb 2011 14:41:42 +0000 (14:41 +0000)]
add fixed-width attribute to typeface
(patch from russellbrenner)
git-svn-id: http://skia.googlecode.com/svn/trunk@837
2bbb7eff-a529-9590-31e7-
b0007b416f81
wjmaclean@chromium.org [Tue, 22 Feb 2011 22:32:14 +0000 (22:32 +0000)]
Cleanup issues related to SkBitmap getSize()/extractSubset().
Some minor revisions to do cleanup regarding getSize() and extractSubset(). All
are related to avoid read/write past end of the pixel buffer when getSize() is
used on a bitmap that is the result of a call to extractSubset().
git-svn-id: http://skia.googlecode.com/svn/trunk@835
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 22 Feb 2011 21:00:55 +0000 (21:00 +0000)]
Add new files to VC2010 proj
git-svn-id: http://skia.googlecode.com/svn/trunk@834
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 22 Feb 2011 21:00:31 +0000 (21:00 +0000)]
Fix warnings about struct being forward declared as a class
git-svn-id: http://skia.googlecode.com/svn/trunk@833
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 22 Feb 2011 20:59:41 +0000 (20:59 +0000)]
Fix line endings in Gr files and set svn eol style to LF
git-svn-id: http://skia.googlecode.com/svn/trunk@832
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 22 Feb 2011 20:56:26 +0000 (20:56 +0000)]
change virtual setMatrixClip() to take a SkClipStack parameter.
git-svn-id: http://skia.googlecode.com/svn/trunk@831
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 22 Feb 2011 20:50:57 +0000 (20:50 +0000)]
move old (unmaintained) gl backend out of src. src/gpu superceeds this now.
Will delete the files in obsolete/ at some point...
git-svn-id: http://skia.googlecode.com/svn/trunk@830
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 22 Feb 2011 20:34:01 +0000 (20:34 +0000)]
Make a separate path renderer object. Move enum types to GrTypes.h
Review URL http://codereview.appspot.com/
4167067/
git-svn-id: http://skia.googlecode.com/svn/trunk@829
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 22 Feb 2011 20:17:43 +0000 (20:17 +0000)]
add tests for SkClipStack
git-svn-id: http://skia.googlecode.com/svn/trunk@828
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 22 Feb 2011 19:56:18 +0000 (19:56 +0000)]
add tests for pushing on back as well as front
git-svn-id: http://skia.googlecode.com/svn/trunk@827
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 22 Feb 2011 19:45:21 +0000 (19:45 +0000)]
suppress uninit warning in rb-tree
git-svn-id: http://skia.googlecode.com/svn/trunk@826
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 22 Feb 2011 19:12:23 +0000 (19:12 +0000)]
add clipstack to canvas. not used yet, but will be for devices (e.g. gpu) that
want to see how the clip was built
git-svn-id: http://skia.googlecode.com/svn/trunk@824
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 22 Feb 2011 16:37:47 +0000 (16:37 +0000)]
Add red black tree
Review URL: http://codereview.appspot.com/
4184063
git-svn-id: http://skia.googlecode.com/svn/trunk@823
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 22 Feb 2011 13:16:38 +0000 (13:16 +0000)]
rename SkDeque::Iter to SkDeque::F2BIter, since it runs front-to-back (in preparation
for another iter that runs back-to-front (B2FIter).
add unittest for Deque
git-svn-id: http://skia.googlecode.com/svn/trunk@821
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 18 Feb 2011 21:07:35 +0000 (21:07 +0000)]
can't use this in STATIC_ASSERT on windows
git-svn-id: http://skia.googlecode.com/svn/trunk@820
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 18 Feb 2011 20:20:51 +0000 (20:20 +0000)]
use new high-quality blur in samples
git-svn-id: http://skia.googlecode.com/svn/trunk@819
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Fri, 18 Feb 2011 19:03:01 +0000 (19:03 +0000)]
[Committed on behalf of junov@chromium.org]
Fixed rendering of shadows under bitmaps.
Added an option to SkBlurMask to produce higher quality blurs.
The HQ blur option is propagated through SkBlurDrawLooper so that it can be invoked by WebKit for drawing shadows.
Added a shadow rendering test to gm.
Bugs fixed: 146, 150
Related Chromium bugs: 11153, 42654
Code review: http://codereview.appspot.com/
4174049
git-svn-id: http://skia.googlecode.com/svn/trunk@818
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 18 Feb 2011 18:40:42 +0000 (18:40 +0000)]
Avoid putting adding vertex buffers to the pool when setting the complex clip.
Review URL: http://codereview.appspot.com/
4180058/
git-svn-id: http://skia.googlecode.com/svn/trunk@817
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 18 Feb 2011 16:23:56 +0000 (16:23 +0000)]
Make VS2010 project reflect new location of GrGLIRect.h
git-svn-id: http://skia.googlecode.com/svn/trunk@816
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 18 Feb 2011 16:21:58 +0000 (16:21 +0000)]
Fix warning about non-local anonymous struct
git-svn-id: http://skia.googlecode.com/svn/trunk@815
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 18 Feb 2011 16:20:14 +0000 (16:20 +0000)]
Moving GrGLIRect to include directory to fix build break using make files. (At some point we need to move many of the non-public headers to src)
git-svn-id: http://skia.googlecode.com/svn/trunk@814
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 18 Feb 2011 16:09:55 +0000 (16:09 +0000)]
Reduce glGets for stencil bits.
Clean up GL vs Gr rect conventions for viewport and scissor.
Review URL: http://codereview.appspot.com/
4185056/
git-svn-id: http://skia.googlecode.com/svn/trunk@813
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 18 Feb 2011 13:00:40 +0000 (13:00 +0000)]
call glyph::init() on tmpGlyph, so we have a properly initialized fMaskFormat
git-svn-id: http://skia.googlecode.com/svn/trunk@812
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 18 Feb 2011 12:57:26 +0000 (12:57 +0000)]
remove dead conditional code
git-svn-id: http://skia.googlecode.com/svn/trunk@811
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 17 Feb 2011 21:47:25 +0000 (21:47 +0000)]
Clean up geterror / log macros and globals for debugging. disable geterror in chrome by default.
Review URL: http://codereview.appspot.com/
4170058/
git-svn-id: http://skia.googlecode.com/svn/trunk@810
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Thu, 17 Feb 2011 20:41:10 +0000 (20:41 +0000)]
Set fLastGlyphID in SkFontHost::GetAdvancedTypefaceMetrics for windows.
Review URL: http://codereview.appspot.com/
4178060
git-svn-id: http://skia.googlecode.com/svn/trunk@809
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 17 Feb 2011 16:43:10 +0000 (16:43 +0000)]
Hide alloc size vs content size below API
Remove old gl shaders class
Move texture matrix to sampler class
git-svn-id: http://skia.googlecode.com/svn/trunk@808
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 17 Feb 2011 15:31:12 +0000 (15:31 +0000)]
initial baseline for linux blurs, poly2poly, points
git-svn-id: http://skia.googlecode.com/svn/trunk@807
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 17 Feb 2011 15:06:52 +0000 (15:06 +0000)]
add test for points
git-svn-id: http://skia.googlecode.com/svn/trunk@806
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 17 Feb 2011 14:21:01 +0000 (14:21 +0000)]
add test for poly2poly
git-svn-id: http://skia.googlecode.com/svn/trunk@805
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 16 Feb 2011 23:20:39 +0000 (23:20 +0000)]
need to apply the prepathmatrix (or perhaps push it on our mv stack)
git-svn-id: http://skia.googlecode.com/svn/trunk@804
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 16 Feb 2011 21:50:04 +0000 (21:50 +0000)]
add new test for blurs
git-svn-id: http://skia.googlecode.com/svn/trunk@803
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 16 Feb 2011 21:31:18 +0000 (21:31 +0000)]
upload generated mask for maskfilter to gpu (does not work with complex-paints yet)
git-svn-id: http://skia.googlecode.com/svn/trunk@802
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 16 Feb 2011 18:08:07 +0000 (18:08 +0000)]
first steps for supporting maskfilters (disabled right now)
git-svn-id: http://skia.googlecode.com/svn/trunk@801
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 16 Feb 2011 16:12:19 +0000 (16:12 +0000)]
Batch consecutive draw rects.
Review URL: http://codereview.appspot.com/
4178057/
git-svn-id: http://skia.googlecode.com/svn/trunk@800
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 16 Feb 2011 13:59:33 +0000 (13:59 +0000)]
add initial linux baseline images for gm (still need gpu backend)
git-svn-id: http://skia.googlecode.com/svn/trunk@799
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 16 Feb 2011 13:06:15 +0000 (13:06 +0000)]
add text
git-svn-id: http://skia.googlecode.com/svn/trunk@798
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 15 Feb 2011 16:21:24 +0000 (16:21 +0000)]
fix compile error for linux
git-svn-id: http://skia.googlecode.com/svn/trunk@797
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 15 Feb 2011 14:22:19 +0000 (14:22 +0000)]
add no-check version of SkPackARGB32, for callers that want to deliberately
build a SkPMColor that may not be valid premultiplied (e.g. compatibility
with webgl)
see https://bugs.webkit.org/show_bug.cgi?id=54023
git-svn-id: http://skia.googlecode.com/svn/trunk@796
2bbb7eff-a529-9590-31e7-
b0007b416f81