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
reed@google.com [Wed, 18 May 2011 15:08:10 +0000 (15:08 +0000)]
support BW glyphs, instead of always forcing them to AA
git-svn-id: http://skia.googlecode.com/svn/trunk@1364
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 18 May 2011 15:07:20 +0000 (15:07 +0000)]
lockPixels before looking at them in Zoomer
git-svn-id: http://skia.googlecode.com/svn/trunk@1363
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 18 May 2011 13:07:22 +0000 (13:07 +0000)]
checkpoint for 8->5 bit reduction
git-svn-id: http://skia.googlecode.com/svn/trunk@1362
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 18 May 2011 12:17:53 +0000 (12:17 +0000)]
code style, inherit from SampleView
git-svn-id: http://skia.googlecode.com/svn/trunk@1361
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 18 May 2011 12:04:31 +0000 (12:04 +0000)]
add 'h' to tri-toggle font hinting
git-svn-id: http://skia.googlecode.com/svn/trunk@1360
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 18 May 2011 11:58:10 +0000 (11:58 +0000)]
improve gray approximation for LCD LERP
git-svn-id: http://skia.googlecode.com/svn/trunk@1359
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 17 May 2011 20:52:46 +0000 (20:52 +0000)]
add optional decolorization value for lcd text
git-svn-id: http://skia.googlecode.com/svn/trunk@1358
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 17 May 2011 20:44:54 +0000 (20:44 +0000)]
add more keys
git-svn-id: http://skia.googlecode.com/svn/trunk@1357
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 17 May 2011 20:15:30 +0000 (20:15 +0000)]
Use coverage stages for supersample AA resolve, edgeAA, and glyph masks. Expose a mask stage through GrPaint
Review URL: http://codereview.appspot.com/
4548048/
git-svn-id: http://skia.googlecode.com/svn/trunk@1356
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Tue, 17 May 2011 19:11:04 +0000 (19:11 +0000)]
Set fEdgesUni to kUseUniform when we need to upload it. Fix for bug introduced
in r1339 where the tesselated path renderer would render nothing.
Review URL: http://codereview.appspot.com/
4550050/
git-svn-id: http://skia.googlecode.com/svn/trunk@1355
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 17 May 2011 18:58:44 +0000 (18:58 +0000)]
[PDF] Improve path effect and drawPath(prePathMatrix) support.
Add path effect handling for drawPoints (via drawPath).
Move path effect handling from drawRect to drawPath.
Add prePathMatrix support to drawPath.
BUG=crbug.com/82849
Review URL: http://codereview.appspot.com/
4531047
git-svn-id: http://skia.googlecode.com/svn/trunk@1354
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Tue, 17 May 2011 18:29:26 +0000 (18:29 +0000)]
Pass forceClose "true" to SkPath::Iter constructor in
GrPathUtils::worstCasePointCount(). worstCasePointCount() is sometimes
returning a lower value than the number of points subsequently generated by
the path renderers. This is because it constructs the SkPath::Iter with
forceClose set to "false", while the path renderers use one with forceClose
set to "true". They should both be the same, and since we're filling paths, I
think it should be set "true".
Review URL: http://codereview.appspot.com/
4552047/
git-svn-id: http://skia.googlecode.com/svn/trunk@1353
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 17 May 2011 18:02:35 +0000 (18:02 +0000)]
Fix enums in code path that uses uncached GrRenderTargets behind SkGpuDevices
Review URL: http://codereview.appspot.com/
4535081/
git-svn-id: http://skia.googlecode.com/svn/trunk@1352
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 17 May 2011 17:36:59 +0000 (17:36 +0000)]
get tests closer to passing for SKIA_SCALAR=fixed
http://codereview.appspot.com/
4532064/
git-svn-id: http://skia.googlecode.com/svn/trunk@1351
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Tue, 17 May 2011 17:01:17 +0000 (17:01 +0000)]
Removing remnants of GrGLEffect.
Bug: http://code.google.com/p/skia/issues/detail?id=264
Code review: http://codereview.appspot.com/
4517073/
git-svn-id: http://skia.googlecode.com/svn/trunk@1350
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Tue, 17 May 2011 16:00:46 +0000 (16:00 +0000)]
Fixed typo in skia.gyp
-This line, and those below, will be ignored--
M gyp/skia.gyp
git-svn-id: http://skia.googlecode.com/svn/trunk@1349
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 17 May 2011 15:54:05 +0000 (15:54 +0000)]
remove reference to fContext
git-svn-id: http://skia.googlecode.com/svn/trunk@1348
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Tue, 17 May 2011 15:47:10 +0000 (15:47 +0000)]
Adding a test to sampleapp for texture domain
git-svn-id: http://skia.googlecode.com/svn/trunk@1347
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 17 May 2011 15:47:04 +0000 (15:47 +0000)]
silence printf
git-svn-id: http://skia.googlecode.com/svn/trunk@1346
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 17 May 2011 15:33:45 +0000 (15:33 +0000)]
fix uninitialized var
git-svn-id: http://skia.googlecode.com/svn/trunk@1345
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 17 May 2011 15:32:04 +0000 (15:32 +0000)]
add 'n' to tri-toggle bitmap-filter (LERP) on/off/neutral
git-svn-id: http://skia.googlecode.com/svn/trunk@1344
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Tue, 17 May 2011 14:24:46 +0000 (14:24 +0000)]
Add GL context creation for X so that gm can run GPU on Linux.
http://codereview.appspot.com/
4548047/
git-svn-id: http://skia.googlecode.com/svn/trunk@1343
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 17 May 2011 14:04:41 +0000 (14:04 +0000)]
use hires metrics when rotated (or subpixel is requested)
git-svn-id: http://skia.googlecode.com/svn/trunk@1342
2bbb7eff-a529-9590-31e7-
b0007b416f81