wjmaclean@chromium.org
3f0260d0f7
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
2011-02-22 22:32:14 +00:00
bsalomon@google.com
fa63fd66b5
Add new files to VC2010 proj
...
git-svn-id: http://skia.googlecode.com/svn/trunk@834 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-22 21:00:55 +00:00
bsalomon@google.com
57788b5ada
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
2011-02-22 21:00:31 +00:00
bsalomon@google.com
27847dedd9
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
2011-02-22 20:59:41 +00:00
reed@google.com
46799cd9f0
change virtual setMatrixClip() to take a SkClipStack parameter.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@831 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-22 20:56:26 +00:00
reed@google.com
5d32fc4c1c
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
2011-02-22 20:50:57 +00:00
bsalomon@google.com
ffca400ef6
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
2011-02-22 20:34:01 +00:00
reed@google.com
bdee9fc778
add tests for SkClipStack
...
git-svn-id: http://skia.googlecode.com/svn/trunk@828 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-22 20:17:43 +00:00
reed@google.com
f9e7132075
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
2011-02-22 19:56:18 +00:00
bsalomon@google.com
ba9d628b1b
suppress uninit warning in rb-tree
...
git-svn-id: http://skia.googlecode.com/svn/trunk@826 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-22 19:45:21 +00:00
reed@google.com
5c3d1471e4
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
2011-02-22 19:12:23 +00:00
bsalomon@google.com
6034c506bd
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
2011-02-22 16:37:47 +00:00
reed@google.com
4c09d5cd4b
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
2011-02-22 13:16:38 +00:00
reed@google.com
aff86f3fe3
can't use this in STATIC_ASSERT on windows
...
git-svn-id: http://skia.googlecode.com/svn/trunk@820 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-18 21:07:35 +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
senorblanco@chromium.org
4868e6b221
[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
2011-02-18 19:03:01 +00:00
bsalomon@google.com
7a5af8b7dc
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
2011-02-18 18:40:42 +00:00
bsalomon@google.com
1d2169e46c
Make VS2010 project reflect new location of GrGLIRect.h
...
git-svn-id: http://skia.googlecode.com/svn/trunk@816 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-18 16:23:56 +00:00
bsalomon@google.com
5d18c3872b
Fix warning about non-local anonymous struct
...
git-svn-id: http://skia.googlecode.com/svn/trunk@815 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-18 16:21:58 +00:00
bsalomon@google.com
2c3b51f22b
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
2011-02-18 16:20:14 +00:00
bsalomon@google.com
8895a7a0e2
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
2011-02-18 16:09:55 +00:00
reed@google.com
ce2b1afb58
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
2011-02-18 13:00:40 +00:00
reed@google.com
40981ba42a
remove dead conditional code
...
git-svn-id: http://skia.googlecode.com/svn/trunk@811 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-18 12:57:26 +00:00
bsalomon@google.com
3723a484af
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
2011-02-17 21:47:25 +00:00
ctguil@chromium.org
57c2b1de23
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
2011-02-17 20:41:10 +00:00
bsalomon@google.com
c6cf72381b
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
2011-02-17 16:43:10 +00:00
reed@google.com
dbbdad7051
initial baseline for linux blurs, poly2poly, points
...
git-svn-id: http://skia.googlecode.com/svn/trunk@807 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-17 15:31:12 +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
e344564ae8
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
2011-02-16 23:20:39 +00:00
reed@google.com
c96e5c2720
add new test for blurs
...
git-svn-id: http://skia.googlecode.com/svn/trunk@803 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-16 21:50:04 +00:00
reed@google.com
0c219b68eb
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
2011-02-16 21:31:18 +00:00
reed@google.com
6930285b73
first steps for supporting maskfilters (disabled right now)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@801 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-16 18:08:07 +00:00
bsalomon@google.com
86afc2ae27
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
2011-02-16 16:12:19 +00:00
reed@google.com
f08a44980b
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
2011-02-16 13:59:33 +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
reed@google.com
369ca40621
fix compile error for linux
...
git-svn-id: http://skia.googlecode.com/svn/trunk@797 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-15 16:21:24 +00:00
reed@google.com
e686322eba
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
2011-02-15 14:22:19 +00:00
vandebo@chromium.org
564e46f19d
Fix file modes.
...
Review URL: http://codereview.appspot.com/4178051
git-svn-id: http://skia.googlecode.com/svn/trunk@790 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-14 23:44:18 +00:00
vandebo@chromium.org
6f72d1eacd
Provide windows font host implementation needed to support TrueType text in pdf backend.
...
- Move AdvanceMetric template functions into new file SkAdvancedTypefaceMetrics.cpp
Review URL: http://codereview.appspot.com/4174041
git-svn-id: http://skia.googlecode.com/svn/trunk@789 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-14 23:19:59 +00:00
bsalomon@google.com
97b624529c
Fix param order in setVertexSourceToBuffer calls due to r786 when GR_STATIC_RECT_VB is 1
...
Review URL: http://codereview.appspot.com/4179047/
git-svn-id: http://skia.googlecode.com/svn/trunk@788 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-14 18:27:55 +00:00
reed@google.com
09053444ad
fix compile-error, mismatch between fontID and id
...
http://code.google.com/p/skia/issues/detail?id=149
git-svn-id: http://skia.googlecode.com/svn/trunk@787 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-14 17:02:29 +00:00
bsalomon@google.com
1c13c9668a
Refactor how Gr handles vertex and index data. GrGpu and GrInOrderDrawBuffer both GrBufferAllocPool to manage reserved and set-to-array vertex and index data.
...
rietveld issue 4188049
git-svn-id: http://skia.googlecode.com/svn/trunk@786 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-14 16:51:21 +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
bsalomon@google.com
1b7c1b6fa8
Remove debugging printf that was accidentally left in 783.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@784 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-11 14:45:11 +00:00
bsalomon@google.com
7acdb8e1d2
git-svn-id: http://skia.googlecode.com/svn/trunk@783 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-11 14:07:02 +00:00
vandebo@chromium.org
9db446a5b6
Use real glyph IDs in the win fonthost to better support pdf.
...
Review URL: http://codereview.appspot.com/4142044
git-svn-id: http://skia.googlecode.com/svn/trunk@782 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-10 21:04:34 +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
reed@android.com
d413445531
update to work correctly for scalar == fixed or float
...
git-svn-id: http://skia.googlecode.com/svn/trunk@780 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-09 02:24:26 +00:00
vandebo@chromium.org
337490d4ae
Remove extra stub definition of GetAdvancedTypefaceMetrics.
...
BUG=140
TEST=NONE
Review URL: http://codereview.appspot.com/4150043
git-svn-id: http://skia.googlecode.com/svn/trunk@779 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-02-09 00:10:29 +00:00