reed@google.com
fa57ae7d1e
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
2011-05-31 19:18:02 +00:00
reed@google.com
9405e55c37
remove dump printf
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1455 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-31 19:14:21 +00:00
epoger@google.com
51c078b12a
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
2011-05-31 19:02:37 +00:00
vandebo@chromium.org
d897bfb76f
[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
2011-05-31 18:18:21 +00:00
Scroggo
f33d153732
Port the SampleApp (raster) to Android.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1452 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-31 17:10:21 +00:00
Scroggo
bbb203c075
Remove unnecessary call to unlock.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1451 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-31 17:04:56 +00:00
reed@google.com
1d5aaa8ef6
fix memory leaks
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1448 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-31 15:35:54 +00:00
reed@google.com
5a1e79595f
remove dead code
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1447 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-31 14:36:21 +00:00
epoger@google.com
ae85aea58e
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
2011-05-31 13:50:51 +00:00
vandebo@chromium.org
3509f05081
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
2011-05-30 20:52:33 +00:00
vandebo@chromium.org
f0ec2666d9
[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
2011-05-29 05:55:42 +00:00
bsalomon@google.com
d7beab4252
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
2011-05-27 16:42:30 +00:00
reed@google.com
b8b0983c9e
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
2011-05-26 15:57:56 +00:00
reed@google.com
e3605d0e74
retool without shapes, which are broken/experimental
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1436 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-26 15:12:35 +00:00
twiz@google.com
c0c4d22bac
Removal of obsolete interface, SkMatrixClipObserver.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1435 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-26 14:57:48 +00:00
reed@google.com
4c9a8155a8
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
2011-05-26 14:42:48 +00:00
reed@google.com
64f340ceea
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
2011-05-26 14:35:41 +00:00
reed@google.com
de324a1d8e
we don't checkin baselines for pdf yet
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1432 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-26 14:04:23 +00:00
reed@google.com
e3dc4a68b8
add gpu baselines for linux
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1431 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-26 14:01:36 +00:00
reed@google.com
67db6644ab
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
2011-05-26 11:46:35 +00:00
reed@google.com
e70e400bac
checkpoint for better 8bit->5bit reduction (disable for now)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1429 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-26 11:41:27 +00:00
reed@google.com
eebb4a2681
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
2011-05-26 11:39:41 +00:00
Scroggo
3272ba8abc
Show fatbits mode in openGL. http://codereview.appspot.com/4515141/
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1426 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-25 20:50:42 +00:00
junov@google.com
5d6e108624
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
2011-05-25 20:26:11 +00:00
reed@google.com
d9097e0256
add
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1422 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-25 20:13:50 +00:00
reed@google.com
03c2ef5473
inherit from SampleView
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1421 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-25 20:13:06 +00:00
senorblanco@chromium.org
1fa803d6b4
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
2011-05-25 14:46:17 +00:00
vandebo@chromium.org
8887ede824
[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
2011-05-25 01:27:52 +00:00
vandebo@chromium.org
19e3c1ed1b
[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
2011-05-25 00:41:30 +00:00
vandebo@chromium.org
13d14a9dbd
[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
2011-05-24 23:12:41 +00:00
vandebo@chromium.org
61d267879b
[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
2011-05-24 23:02:07 +00:00
senorblanco@chromium.org
50108cdbfe
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
2011-05-24 20:25:32 +00:00
ctguil@chromium.org
f4ff39ca48
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
2011-05-24 19:55:05 +00:00
tomhudson@google.com
5b32529ab8
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
2011-05-24 19:41:13 +00:00
vandebo@chromium.org
ee7a9569f2
[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
2011-05-24 17:38:01 +00:00
vandebo@chromium.org
b069c8cfcd
[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
2011-05-24 17:19:38 +00:00
epoger@google.com
8f096724a2
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
2011-05-24 17:07:01 +00:00
vandebo@chromium.org
481aef6833
[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
2011-05-24 16:39:05 +00:00
junov@google.com
2f83940c4d
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
2011-05-24 15:13:01 +00:00
epoger@google.com
b28b5e4e26
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
2011-05-24 14:51:57 +00:00
reed@google.com
ac45f00d5a
return the bytes read, not the total provided
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1404 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-24 13:50:21 +00:00
reed@google.com
69d0555133
add copyright notices
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1403 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-24 12:14:28 +00:00
thakis@chromium.org
598b859211
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
2011-05-24 05:42:55 +00:00
reed@google.com
eb5a8151a5
call notify after we write the kDone verb
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1401 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-23 21:09:13 +00:00
reed@google.com
80b09de87f
add optoinal bytesRead argument (output) to playback()
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1400 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-23 13:54:24 +00:00
reed@google.com
21b1c5c7b1
fix warnings
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1399 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-23 12:44:44 +00:00
reed@google.com
103c036218
pass correct size to read(buffer, ...) tests
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1398 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-23 12:28:48 +00:00
reed@google.com
dde0956375
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
2011-05-23 12:21:05 +00:00
ctguil@chromium.org
c7d9f9d8ae
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
2011-05-20 22:16:08 +00:00
senorblanco@chromium.org
1a39493b32
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
2011-05-20 19:19:09 +00:00