senorblanco@chromium.org [Wed, 1 Jun 2011 20:55:45 +0000 (20:55 +0000)]
Add a missing include path for the linux build of utils.gyp. Remove the Linux
utils files from the build of views.a, since they're already being compiled into
utils.a, since it was causing unnecessary rebuilds (the same could probably be
done for linux and mac). Remove the commented-out SkImageDecoder_libpvjpeg.cpp,
which has been removed from SVN.
http://codereview.appspot.com/
4532105/
git-svn-id: http://skia.googlecode.com/svn/trunk@1476
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Wed, 1 Jun 2011 20:43:05 +0000 (20:43 +0000)]
Fix to bug, partial fix to unit tests following on from
http://codereview.appspot.com/
4536100/
git-svn-id: http://skia.googlecode.com/svn/trunk@1475
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 1 Jun 2011 20:27:53 +0000 (20:27 +0000)]
include SkTypes.h
git-svn-id: http://skia.googlecode.com/svn/trunk@1474
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Wed, 1 Jun 2011 20:15:20 +0000 (20:15 +0000)]
committing http://codereview.appspot.com/
4515175/
git-svn-id: http://skia.googlecode.com/svn/trunk@1473
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Wed, 1 Jun 2011 19:27:31 +0000 (19:27 +0000)]
Speed up GrBinHashKey computation by replacing Adler32 with One-at-a-Time hash
function, do 32b at a time instead of 8b at a time.
git-svn-id: http://skia.googlecode.com/svn/trunk@1472
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 1 Jun 2011 18:38:51 +0000 (18:38 +0000)]
remove dead/abandoned file
git-svn-id: http://skia.googlecode.com/svn/trunk@1471
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Wed, 1 Jun 2011 18:28:22 +0000 (18:28 +0000)]
Clean up the gyp files to reflect some files that were removed and/or renamed.
Review URL: http://codereview.appspot.com/
4536098/
git-svn-id: http://skia.googlecode.com/svn/trunk@1470
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Wed, 1 Jun 2011 18:03:34 +0000 (18:03 +0000)]
Added code to enable the pipe module to record to a file
http://codereview.appspot.com/
4564052/
git-svn-id: http://skia.googlecode.com/svn/trunk@1469
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 1 Jun 2011 17:32:11 +0000 (17:32 +0000)]
initialize fCurrY
git-svn-id: http://skia.googlecode.com/svn/trunk@1468
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Wed, 1 Jun 2011 17:07:22 +0000 (17:07 +0000)]
Added a sample pipe reader app that uses File I/O for playback
http://codereview.appspot.com/
4551083/
git-svn-id: http://skia.googlecode.com/svn/trunk@1467
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Wed, 1 Jun 2011 16:15:43 +0000 (16:15 +0000)]
Fixup utils.gyp.
git-svn-id: http://skia.googlecode.com/svn/trunk@1466
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Wed, 1 Jun 2011 16:14:01 +0000 (16:14 +0000)]
Make gyp VC project debug configuration /DEBUG.
git-svn-id: http://skia.googlecode.com/svn/trunk@1465
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Wed, 1 Jun 2011 16:11:58 +0000 (16:11 +0000)]
Added 3 new sample tests. codereview.appspot.com/
4527092/
git-svn-id: http://skia.googlecode.com/svn/trunk@1464
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 1 Jun 2011 15:11:42 +0000 (15:11 +0000)]
add MatrixBench.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@1463
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 1 Jun 2011 15:11:22 +0000 (15:11 +0000)]
speed-up SkMatrix::preScale by 3x, by special-casing it instead of just calling
concat. Inspired by the profile of the fishtank site
git-svn-id: http://skia.googlecode.com/svn/trunk@1462
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Wed, 1 Jun 2011 13:23:29 +0000 (13:23 +0000)]
Add gyp for bench and make run on Windows. (2)
http://codereview.appspot.com/
4528112/
git-svn-id: http://skia.googlecode.com/svn/trunk@1461
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 1 Jun 2011 12:42:36 +0000 (12:42 +0000)]
update to SampleView
git-svn-id: http://skia.googlecode.com/svn/trunk@1460
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 1 Jun 2011 11:59:08 +0000 (11:59 +0000)]
inherit from SampleView
git-svn-id: http://skia.googlecode.com/svn/trunk@1459
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Tue, 31 May 2011 21:21:54 +0000 (21:21 +0000)]
Add gyp for bench and make run on Windows.
http://codereview.appspot.com/
4528112/
git-svn-id: http://skia.googlecode.com/svn/trunk@1458
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Tue, 31 May 2011 21:15:10 +0000 (21:15 +0000)]
Rename some global symbols defined by glu's libtess which conflict with the
WebKit implementation. #define them with a prefix, as we did with the main
entry points.
Review URL: http://codereview.appspot.com/
4551079/
git-svn-id: http://skia.googlecode.com/svn/trunk@1457
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 31 May 2011 19:18:02 +0000 (19:18 +0000)]
remember previous x-offset when we re-enter the runs array. speeds up paths
with lots of x-transitions in a single scanline
git-svn-id: http://skia.googlecode.com/svn/trunk@1456
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 31 May 2011 19:14:21 +0000 (19:14 +0000)]
remove dump printf
git-svn-id: http://skia.googlecode.com/svn/trunk@1455
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 31 May 2011 19:02:37 +0000 (19:02 +0000)]
make this work again: ./gyp_skia && make SampleApp
see http://codereview.appspot.com/
4517123/
git-svn-id: http://skia.googlecode.com/svn/trunk@1454
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 31 May 2011 18:18:21 +0000 (18:18 +0000)]
[PDF] Add pages accessor to SkPDFDocument.
Also add SK_API to SkPDFPage::getFontResources.
Review URL: http://codereview.appspot.com/
4561050
git-svn-id: http://skia.googlecode.com/svn/trunk@1453
2bbb7eff-a529-9590-31e7-
b0007b416f81
Scroggo [Tue, 31 May 2011 17:10:21 +0000 (17:10 +0000)]
Port the SampleApp (raster) to Android.
git-svn-id: http://skia.googlecode.com/svn/trunk@1452
2bbb7eff-a529-9590-31e7-
b0007b416f81
Scroggo [Tue, 31 May 2011 17:04:56 +0000 (17:04 +0000)]
Remove unnecessary call to unlock.
git-svn-id: http://skia.googlecode.com/svn/trunk@1451
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 31 May 2011 15:35:54 +0000 (15:35 +0000)]
fix memory leaks
git-svn-id: http://skia.googlecode.com/svn/trunk@1448
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 31 May 2011 14:36:21 +0000 (14:36 +0000)]
remove dead code
git-svn-id: http://skia.googlecode.com/svn/trunk@1447
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 31 May 2011 13:50:51 +0000 (13:50 +0000)]
split skia.gyp into separate gypfile for each source dir
see http://codereview.appspot.com/
4527084/
Now, to build out/Debug/SampleApp on Linux, do the following:
cd trunk/gyp
rm -rf Makefile *mk *.Makefile out
./gyp_skia -fmake --ignore-environment "--toplevel-dir=$PWD" \
-Icommon.gypi "--depth=$PWD" SampleApp.gyp
make
git-svn-id: http://skia.googlecode.com/svn/trunk@1446
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Mon, 30 May 2011 20:52:33 +0000 (20:52 +0000)]
Add more SK_API declarations to fix Chrome.
TBR=ctguil@chromium.org
Review URL: http://codereview.appspot.com/
4526088
git-svn-id: http://skia.googlecode.com/svn/trunk@1445
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Sun, 29 May 2011 05:55:42 +0000 (05:55 +0000)]
[PDF] Add plumbing and accessors so that Chrome can record the font types used in a PDF.
- Add a font type accessor to SkPDFFont.
- Plumb font resource retrivial up to SkPDFPage.
Review URL: http://codereview.appspot.com/
4547069
git-svn-id: http://skia.googlecode.com/svn/trunk@1444
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 27 May 2011 16:42:30 +0000 (16:42 +0000)]
Fix copy/paste bug that checks same stencil field twice in isDisabled().
git-svn-id: http://skia.googlecode.com/svn/trunk@1442
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 26 May 2011 15:57:56 +0000 (15:57 +0000)]
make --replay be the default. Now --noreplay will disable testing through a picture
git-svn-id: http://skia.googlecode.com/svn/trunk@1437
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 26 May 2011 15:12:35 +0000 (15:12 +0000)]
retool without shapes, which are broken/experimental
git-svn-id: http://skia.googlecode.com/svn/trunk@1436
2bbb7eff-a529-9590-31e7-
b0007b416f81
twiz@google.com [Thu, 26 May 2011 14:57:48 +0000 (14:57 +0000)]
Removal of obsolete interface, SkMatrixClipObserver.
git-svn-id: http://skia.googlecode.com/svn/trunk@1435
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 26 May 2011 14:42:48 +0000 (14:42 +0000)]
remove self-modifying matrix code, which can't work with pictures, and will be removed from shapes api soon
git-svn-id: http://skia.googlecode.com/svn/trunk@1434
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 26 May 2011 14:35:41 +0000 (14:35 +0000)]
dynamically allocate the pixels, so they can be referened when drawn into a picture
git-svn-id: http://skia.googlecode.com/svn/trunk@1433
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 26 May 2011 14:04:23 +0000 (14:04 +0000)]
we don't checkin baselines for pdf yet
git-svn-id: http://skia.googlecode.com/svn/trunk@1432
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 26 May 2011 14:01:36 +0000 (14:01 +0000)]
add gpu baselines for linux
git-svn-id: http://skia.googlecode.com/svn/trunk@1431
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 26 May 2011 11:46:35 +0000 (11:46 +0000)]
draw rotated rects as paths if we're antialiasing, until we extend our rect-aa
code to handle that case.
git-svn-id: http://skia.googlecode.com/svn/trunk@1430
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 26 May 2011 11:41:27 +0000 (11:41 +0000)]
checkpoint for better 8bit->5bit reduction (disable for now)
git-svn-id: http://skia.googlecode.com/svn/trunk@1429
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 26 May 2011 11:39:41 +0000 (11:39 +0000)]
balance the call to matrix::flatten from r1414. Formerly both of these were
just memcpy. This fixes a regression when using matrices in pictures.
git-svn-id: http://skia.googlecode.com/svn/trunk@1428
2bbb7eff-a529-9590-31e7-
b0007b416f81
Scroggo [Wed, 25 May 2011 20:50:42 +0000 (20:50 +0000)]
Show fatbits mode in openGL. codereview.appspot.com/
4515141/
git-svn-id: http://skia.googlecode.com/svn/trunk@1426
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Wed, 25 May 2011 20:26:11 +0000 (20:26 +0000)]
This change eliminates a potential memory leak and it
fixes a mem check bug that was blocking the skia roll
into Chromium.
BUG=http://code.google.com/p/skia/issues/detail?id=278
git-svn-id: http://skia.googlecode.com/svn/trunk@1424
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 25 May 2011 20:13:50 +0000 (20:13 +0000)]
add
git-svn-id: http://skia.googlecode.com/svn/trunk@1422
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 25 May 2011 20:13:06 +0000 (20:13 +0000)]
inherit from SampleView
git-svn-id: http://skia.googlecode.com/svn/trunk@1421
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Wed, 25 May 2011 14:46:17 +0000 (14:46 +0000)]
Rename glu libtess symbols. When enabled in WebKit, the internal_glu libtess
symbols in skia will collide with the same internal_ implementation in WebKit.
Rename the glu entry points with an Sk_ prefix instead. Also, unfork the
changes to the libtess source as much as possible (the same as was done in
http://trac.webkit.org/changeset/87178).
Review URL: http://codereview.appspot.com/
4536080/
git-svn-id: http://skia.googlecode.com/svn/trunk@1419
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 25 May 2011 01:27:52 +0000 (01:27 +0000)]
[PDF] Improve the SkClipStack skipping prefix code.
Because of intersecting done in SkClipStack, we may have to do more work in the last entry of the prefix.
Review URL: http://codereview.appspot.com/
4530066
git-svn-id: http://skia.googlecode.com/svn/trunk@1418
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 25 May 2011 00:41:30 +0000 (00:41 +0000)]
[PDF] Reuse the invert function object for xform object masks.
Review URL: http://codereview.appspot.com/
4557046
git-svn-id: http://skia.googlecode.com/svn/trunk@1417
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 24 May 2011 23:12:41 +0000 (23:12 +0000)]
[PDF] Rename ContentEntryAccessor to ScopedContentEntry.
Review URL: http://codereview.appspot.com/
4515134
git-svn-id: http://skia.googlecode.com/svn/trunk@1416
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 24 May 2011 23:02:07 +0000 (23:02 +0000)]
[PDF] Fix regression - correct for fInitialTrnasform in form xobjects.
Chrome bug http://crbug.com/83658
Review URL: http://codereview.appspot.com/
4550072
git-svn-id: http://skia.googlecode.com/svn/trunk@1415
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Tue, 24 May 2011 20:25:32 +0000 (20:25 +0000)]
Grab-bag of memory fixes. SkFlatMatrix::Flatten had the same issue as
Sk2DPathEffect: it was encoding a partially-unintialized matrix type mask.
The others are simply uninitialized vars in the sample code.
Review URL: http://codereview.appspot.com/
4539072/
git-svn-id: http://skia.googlecode.com/svn/trunk@1414
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Tue, 24 May 2011 19:55:05 +0000 (19:55 +0000)]
Cleanup: Use member function isContentEmpty().
Review URL: http://codereview.appspot.com/
4556058
git-svn-id: http://skia.googlecode.com/svn/trunk@1412
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Tue, 24 May 2011 19:41:13 +0000 (19:41 +0000)]
Stores index.html in the output (diff) directory rather than in the current
working directory.
Skips PDFs since we have no way to compare them.
Includes prototype of --weighted option to scale percent different metric by
intensity of difference at each pixel.
(qv http://codereview.appspot.com/
4557042/)
git-svn-id: http://skia.googlecode.com/svn/trunk@1411
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 24 May 2011 17:38:01 +0000 (17:38 +0000)]
[PDF] Don't draw empty layers.
Review URL: http://codereview.appspot.com/
4527072
git-svn-id: http://skia.googlecode.com/svn/trunk@1410
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 24 May 2011 17:19:38 +0000 (17:19 +0000)]
[PDF] Add helper class to manage ContentEntry set up and completion.
This stack object helper class calls finishContentEntry when it goes out of scope, maintains the current content entry, and manages the dst form xobject when it is needed. This can be made cleaner by moving the guts of SkPDFDevice into a core object, which can expose setUp/finishContentEntry as public, but that is left as a todo.
Review URL: http://codereview.appspot.com/
4515126
git-svn-id: http://skia.googlecode.com/svn/trunk@1409
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 24 May 2011 17:07:01 +0000 (17:07 +0000)]
Rebase GM tool for SKIA_SCALAR=fixed
http://codereview.appspot.com/
4559041
git-svn-id: http://skia.googlecode.com/svn/trunk@1408
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 24 May 2011 16:39:05 +0000 (16:39 +0000)]
[PDF] Add clip support and some optimizations for "complex" xfer modes.
For Clear, Src, Dst/Src-In/Out, we have to consider the current clip, and
potentially draw Dst, clipped to the inverse of the current clip before
doing the operation of interest.
For clear or src, if we haven't drawn anything, or the clip is empty, there's
nothing to be done.
For Src/Dst-In/Out, if either is empty, the result is empty.
Review URL: http://codereview.appspot.com/
4538082
git-svn-id: http://skia.googlecode.com/svn/trunk@1407
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Tue, 24 May 2011 15:13:01 +0000 (15:13 +0000)]
Fixes performance for texture domain uniform upload
Code review: http://codereview.appspot.com/
4536073/
bug: http://code.google.com/p/skia/issues/detail?id=275
git-svn-id: http://skia.googlecode.com/svn/trunk@1406
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 24 May 2011 14:51:57 +0000 (14:51 +0000)]
Warn when an SkScalar is passed into SkIntToScalar() (converted twice)
http://codereview.appspot.com/
4548051/
git-svn-id: http://skia.googlecode.com/svn/trunk@1405
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 24 May 2011 13:50:21 +0000 (13:50 +0000)]
return the bytes read, not the total provided
git-svn-id: http://skia.googlecode.com/svn/trunk@1404
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 24 May 2011 12:14:28 +0000 (12:14 +0000)]
add copyright notices
git-svn-id: http://skia.googlecode.com/svn/trunk@1403
2bbb7eff-a529-9590-31e7-
b0007b416f81
thakis@chromium.org [Tue, 24 May 2011 05:42:55 +0000 (05:42 +0000)]
Fix a new clang warning:
third_party/skia/src/ports/SkFontHost_FreeType.cpp:957:7:error: switch case is
in protected scope
default:
^
third_party/skia/src/ports/SkFontHost_FreeType.cpp:918:17: note: jump bypasses
variable initialization
FT_BBox bbox;
^
third_party/skia/src/ports/SkFontHost_FreeType.cpp:946:7:error: switch case is
in protected scope
case FT_GLYPH_FORMAT_BITMAP:
^
third_party/skia/src/ports/SkFontHost_FreeType.cpp:918:17: note: jump bypasses
variable initialization
FT_BBox bbox;
^
2 errors generated.
This is arguably a false positive, but since |bbox| can only safely be used in
the first case branch, it's a good idea to scope it to there anyway. This is
the only instance this warning occurs in all of chrome.
Review URL: http://codereview.appspot.com/
4532081/
git-svn-id: http://skia.googlecode.com/svn/trunk@1402
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 23 May 2011 21:09:13 +0000 (21:09 +0000)]
call notify after we write the kDone verb
git-svn-id: http://skia.googlecode.com/svn/trunk@1401
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 23 May 2011 13:54:24 +0000 (13:54 +0000)]
add optoinal bytesRead argument (output) to playback()
git-svn-id: http://skia.googlecode.com/svn/trunk@1400
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 23 May 2011 12:44:44 +0000 (12:44 +0000)]
fix warnings
git-svn-id: http://skia.googlecode.com/svn/trunk@1399
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 23 May 2011 12:28:48 +0000 (12:28 +0000)]
pass correct size to read(buffer, ...) tests
git-svn-id: http://skia.googlecode.com/svn/trunk@1398
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 23 May 2011 12:21:05 +0000 (12:21 +0000)]
add cross-process option to gpipe
add unittests for reader32 and writer32
git-svn-id: http://skia.googlecode.com/svn/trunk@1397
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Fri, 20 May 2011 22:16:08 +0000 (22:16 +0000)]
Expose SkComposeShader as SK_API.
This is used by the ChromeOS build of Chrome.
Review URL: http://codereview.appspot.com/
4548054
git-svn-id: http://skia.googlecode.com/svn/trunk@1396
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Fri, 20 May 2011 19:19:09 +0000 (19:19 +0000)]
Fix unnitialized memory in Sk2DPathEffect. The SkDescriptor checksum
calculation for Sk2DPathEffect currently evaluates all the bytes in the
embedded SkMatrix. This includes the type mask, which contains some
uninitialized padding. Changing it to use SkMatrix::flatten() and
SkMatrix::unflatten() (as SkGroupShape was doing) avoids the uninitialized
data errors.
Review URL: http://codereview.appspot.com/
4529074/
git-svn-id: http://skia.googlecode.com/svn/trunk@1395
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Fri, 20 May 2011 19:11:50 +0000 (19:11 +0000)]
Fixed point no longer crashes when GL enabled in gm tests.
http://codereview.appspot.com/
4532073/
git-svn-id: http://skia.googlecode.com/svn/trunk@1394
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Fri, 20 May 2011 19:06:10 +0000 (19:06 +0000)]
Clean up some valgrind errors in SkTransparentShader. Valgrind complains
about overlapping memcpy(). In fact, it seems that src and dest are the same,
so we should be able to skip the copy in this case.
Review URL: http://codereview.appspot.com/
4535085/
git-svn-id: http://skia.googlecode.com/svn/trunk@1393
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 20 May 2011 18:50:54 +0000 (18:50 +0000)]
Tag GrPrintf with GR_API so that it is exposed to users of a Skia DLL
Review URL: http://codereview.appspot.com/
4530059/
git-svn-id: http://skia.googlecode.com/svn/trunk@1392
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 20 May 2011 17:35:46 +0000 (17:35 +0000)]
tiny document-only change
git-svn-id: http://skia.googlecode.com/svn/trunk@1391
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 20 May 2011 14:13:56 +0000 (14:13 +0000)]
Add dual source blending support for proper blending with coverage.
Review URL: http://codereview.appspot.com/
4535088/
git-svn-id: http://skia.googlecode.com/svn/trunk@1390
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Fri, 20 May 2011 14:05:03 +0000 (14:05 +0000)]
Fix gm tests for fixed point.
git-svn-id: http://skia.googlecode.com/svn/trunk@1389
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 19 May 2011 21:29:25 +0000 (21:29 +0000)]
Fix clipping in StrokeRectGM test for fixed point.
git-svn-id: http://skia.googlecode.com/svn/trunk@1388
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 19 May 2011 21:22:39 +0000 (21:22 +0000)]
Remove createPlatformRenderTarget, undeprecate createRenderTargetFrom3DAPIState
Review URL: http://codereview.appspot.com/
4552053/
git-svn-id: http://skia.googlecode.com/svn/trunk@1387
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Thu, 19 May 2011 19:58:58 +0000 (19:58 +0000)]
The plain Makefile was using -Wall, but the gyp build wasn't. This CL turns on
-Wall -Wextra and -Wno-unused in common.gypi. This revealed a lot of warnings
(and some actual bugs), all of which I fixed here. This is pretty mindless
stuff for the most part (order of intialization, missing initializers, && within
||, etc), but will allow us to build cleanly with -Wall and -Wextra (and
-Werror, if we so choose).
I put defaults into switches that were missing cases. I could put in the actual
missing enums instead if that's desired. I could also assert on missing enums
instead of break, if that's desired. I wasn't sure how to test the stuff in
"animator", so that should be looked at a bit more closely.
Review URL: http://codereview.appspot.com/
4547055/
git-svn-id: http://skia.googlecode.com/svn/trunk@1386
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 19 May 2011 19:02:20 +0000 (19:02 +0000)]
Add build for unix to gyp.
git-svn-id: http://skia.googlecode.com/svn/trunk@1385
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Thu, 19 May 2011 18:33:33 +0000 (18:33 +0000)]
Plug a leak in SampleShaderTest.
Review URL: http://codereview.appspot.com/
4517086/
git-svn-id: http://skia.googlecode.com/svn/trunk@1384
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 19 May 2011 18:04:48 +0000 (18:04 +0000)]
Add unix and mesa GL files to gyp.
http://codereview.appspot.com/
4545055/
git-svn-id: http://skia.googlecode.com/svn/trunk@1383
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 19 May 2011 17:47:02 +0000 (17:47 +0000)]
Add Mesa as a GL backend.
http://codereview.appspot.com/
4545055/
git-svn-id: http://skia.googlecode.com/svn/trunk@1382
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 19 May 2011 17:36:21 +0000 (17:36 +0000)]
fix assertion failure in Skia_Linux_Fixed_Debug build
http://codereview.appspot.com/
4556043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1381
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Thu, 19 May 2011 17:11:07 +0000 (17:11 +0000)]
Batch up draws into triangle fans as large as possible when drawing convex
edge AA polys, so we minimize state changes and GL calls. This requires
querying GL for the maximum number of fragment uniforms. It also makes the
shader generator produce custom shaders for the number of relevant edges.
This gives a ~5X speedup on the "Shapes" SampleApp.
Review URL: http://codereview.appspot.com/
4536070/
git-svn-id: http://skia.googlecode.com/svn/trunk@1380
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 19 May 2011 15:57:44 +0000 (15:57 +0000)]
Fix windows color order
Review URL: http://codereview.appspot.com/
4553048/
git-svn-id: http://skia.googlecode.com/svn/trunk@1379
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 19 May 2011 14:45:11 +0000 (14:45 +0000)]
Add snapshot of gyp-generated vs proj for any third party devs who were using the old project. README.TXT explains how to generate an up to date one.
git-svn-id: http://skia.googlecode.com/svn/trunk@1378
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 19 May 2011 14:39:57 +0000 (14:39 +0000)]
Fix windows build (missing SkFontHost.cpp)
git-svn-id: http://skia.googlecode.com/svn/trunk@1377
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 19 May 2011 14:24:59 +0000 (14:24 +0000)]
Remove old visual studio project
Review URL: http://codereview.appspot.com/
4524054/
git-svn-id: http://skia.googlecode.com/svn/trunk@1376
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 18 May 2011 23:06:29 +0000 (23:06 +0000)]
[PDF] Implement clear xfermode with a mask instead of pushing the clip down.
This approach is much less likely to use an SkRegion and ends up working better for Webkit.
Review URL: http://codereview.appspot.com/
4550057
git-svn-id: http://skia.googlecode.com/svn/trunk@1375
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 18 May 2011 22:10:09 +0000 (22:10 +0000)]
[PDF] Fix windows compile warning.
Review URL: http://codereview.appspot.com/
4545056
git-svn-id: http://skia.googlecode.com/svn/trunk@1374
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 18 May 2011 21:24:16 +0000 (21:24 +0000)]
move SHIFT default definitions from SkColorPriv.h to SkPostConfig.h, so that
clients don't accidentally see them defined on some platforms when they only
include SkTypes.h, and not others.
git-svn-id: http://skia.googlecode.com/svn/trunk@1373
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 18 May 2011 21:14:39 +0000 (21:14 +0000)]
setHinting modifies fFlags in places, so call it last (after initializing fFlags)
git-svn-id: http://skia.googlecode.com/svn/trunk@1372
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 18 May 2011 20:23:30 +0000 (20:23 +0000)]
fix PathTest for SKIA_SCALAR=fixed
http://codereview.appspot.com/
4528083/
git-svn-id: http://skia.googlecode.com/svn/trunk@1371
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 18 May 2011 20:10:31 +0000 (20:10 +0000)]
show consistent timings between debug and release
git-svn-id: http://skia.googlecode.com/svn/trunk@1370
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 18 May 2011 19:02:42 +0000 (19:02 +0000)]
Fix uninit of mask var
git-svn-id: http://skia.googlecode.com/svn/trunk@1369
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 18 May 2011 19:00:53 +0000 (19:00 +0000)]
encode current LCD orientation and order into font-cache-key
git-svn-id: http://skia.googlecode.com/svn/trunk@1368
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Wed, 18 May 2011 18:54:23 +0000 (18:54 +0000)]
Fix tests with incorrect swizzle.
http://codereview.appspot.com/
4552046/
git-svn-id: http://skia.googlecode.com/svn/trunk@1367
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Wed, 18 May 2011 18:37:07 +0000 (18:37 +0000)]
glFinish to complete bench before stopping stopwatch.
git-svn-id: http://skia.googlecode.com/svn/trunk@1366
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 18 May 2011 17:08:05 +0000 (17:08 +0000)]
[PDF] Fix PDF primitives test for fixed scalars.
110999 is out of range for SkFixed (+/- 32767)
BUG=269
Review URL: http://codereview.appspot.com/
4530051
git-svn-id: http://skia.googlecode.com/svn/trunk@1365
2bbb7eff-a529-9590-31e7-
b0007b416f81