epoger@google.com
1fd56dc6e1
Implement SkPoint::Normalize() for SK_SCALAR_IS_FIXED and add performance warning to its declaration
...
http://codereview.appspot.com/4582043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1602 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-15 18:04:58 +00:00
senorblanco@chromium.org
129b8e3237
Implement edge AA for concave polys in the tesselated path renderer.
...
Review URL: http://codereview.appspot.com/4571072/
git-svn-id: http://skia.googlecode.com/svn/trunk@1600 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-15 17:52:09 +00:00
reed@google.com
af9d9c2fc7
change GC imagedecoder to use the same colorspace between image and context,
...
so we get reproducible, unchanged, values.
use GC imagedecoder in gyp for mac
git-svn-id: http://skia.googlecode.com/svn/trunk@1599 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-15 17:33:29 +00:00
bungeman@google.com
a5d4841424
Add information to bench output.
...
http://codereview.appspot.com/4602057/
git-svn-id: http://skia.googlecode.com/svn/trunk@1598 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-15 17:25:46 +00:00
tomhudson@google.com
a87cd2af4c
Increase compatibility with clang, mostly around SK_RESTRICT.
...
Attempting to fix up our use of __restrict__ so Chrome can enable it.
git-svn-id: http://skia.googlecode.com/svn/trunk@1597 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-15 16:50:27 +00:00
Scroggo
2c8208f3a4
Improvements to the SampleApp (primarily Android).
...
Reviewed at http://codereview.appspot.com/4587042/
Android
- Added buttons for interaction without a keyboard.
- Added the ability to zoom in to a specific point (roughly).
- Added event handling (for showing a slideshow, for example).
- Allow changing screen orientation
- Updated README file, explaining how to build
Multiplatform changes
- Added SampleApp header file
- Remove FPS when turning off measure FPS mode
git-svn-id: http://skia.googlecode.com/svn/trunk@1596 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-15 16:49:08 +00:00
epoger@google.com
25e92838a9
fix gm on Mac, and Linux buildbot build, by adding zlib source to third_party
...
http://codereview.appspot.com/4620047/
I will try to find a better way to keep all this working (remove zlib and
libpng from third_party)
git-svn-id: http://skia.googlecode.com/svn/trunk@1595 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-15 16:05:37 +00:00
bsalomon@google.com
cd19a5f194
Set texture dirty flag only when texture has really changed
...
Review URL: http://codereview.appspot.com/4571073/
git-svn-id: http://skia.googlecode.com/svn/trunk@1592 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-15 14:00:23 +00:00
epoger@google.com
38a9134dbc
add libpng source to repo and make Unix build use it
...
http://codereview.appspot.com/4572067
git-svn-id: http://skia.googlecode.com/svn/trunk@1591 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-15 13:45:10 +00:00
reed@google.com
ca1f5e2a5d
style and warnings
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1590 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-14 19:31:24 +00:00
reed@google.com
1622c99150
add
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1589 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-14 19:22:21 +00:00
reed@google.com
35ae8ea9be
add SkDataRef (for future use)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1588 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-14 19:18:26 +00:00
bsalomon@google.com
1b52457702
Update mac gpu baseline for SSAA on inverse paths
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1585 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-14 18:49:29 +00:00
bsalomon@google.com
7ac249bdc7
Enable SSAA on inverse filled paths
...
Review URL: http://codereview.appspot.com/4613044/
git-svn-id: http://skia.googlecode.com/svn/trunk@1584 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-14 18:46:24 +00:00
epoger@google.com
baa677b248
delete all old (non-Gyp) buildfiles
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1583 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-14 18:35:08 +00:00
tomhudson@google.com
747bf293d4
FBO probing at Context startup is very expensive. This patch removes the
...
test of whether FBOs work at all, and adds parameters to the GrGLInterface
so that values can be passed into the Context creation routines instead
of executing the probes.
The GrGLInterface now defaults to run FBO tests on Android (since hardware
varies), but assumes success on desktop and software platforms.
git-svn-id: http://skia.googlecode.com/svn/trunk@1582 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-14 18:16:52 +00:00
epoger@google.com
353c252a2f
delete manually-imported Gyp source
...
see http://codereview.appspot.com/4610045
git-svn-id: http://skia.googlecode.com/svn/trunk@1580 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-14 17:57:16 +00:00
bsalomon@google.com
8bf2d20f07
Updated mac baselines from gl ctx size change and new version of shadertext with txt-on-path.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1578 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-14 17:20:23 +00:00
bsalomon@google.com
137c428290
Update baselines for linux-fixed. Make shader text sample/GM work with scalar=fixed.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1577 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-14 17:13:22 +00:00
epoger@google.com
0ae27e0911
Use automatically imported third_party/externals/gyp instead of
...
manually imported third_party/gyp
git-svn-id: http://skia.googlecode.com/svn/trunk@1576 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-14 16:01:04 +00:00
bsalomon@google.com
3914958a49
Fix text-as-path with skshader on gpu
...
Review URL: http://codereview.appspot.com/4576057/
git-svn-id: http://skia.googlecode.com/svn/trunk@1575 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-13 21:55:32 +00:00
bsalomon@google.com
79d2dbed5a
uint32_t -> int for texture extents
...
Review URL: http://codereview.appspot.com/4584053/
git-svn-id: http://skia.googlecode.com/svn/trunk@1574 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-13 19:28:02 +00:00
Scroggo
5a23424b40
Implement timers for linux SampleApp. http://codereview.appspot.com/4592054/
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1573 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-13 19:17:58 +00:00
reed@google.com
b9255d523f
drop extraneous GrPrintfs
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1572 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-13 18:54:59 +00:00
epoger@google.com
8cdb78c4fd
set externals/gyp dependency to same version as manually imported gyp code
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1571 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-13 18:45:15 +00:00
epoger@google.com
cc9cf9ac6e
Modify DEPS so that it works properly for the buildbot
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1570 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-13 18:08:41 +00:00
bsalomon@google.com
c4a30bf828
AA updates for mac gm baseline WRT r1568
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1569 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-13 18:01:57 +00:00
bsalomon@google.com
919583674b
Consider hw render target limit for offscreen supersample and tile
...
Review URL: http://codereview.appspot.com/4575041/
git-svn-id: http://skia.googlecode.com/svn/trunk@1568 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-13 17:58:13 +00:00
djsollen@google.com
e32b5837c3
Updates to the Android SampleApp
...
http://codereview.appspot.com/4602049/
git-svn-id: http://skia.googlecode.com/svn/trunk@1567 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-13 16:58:40 +00:00
epoger@google.com
fc0685652e
Add DEPS file in an attempt to make both gclient and svn update bring in
...
third_party/externals.
git-svn-id: http://skia.googlecode.com/svn/trunk@1566 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-13 16:04:25 +00:00
reed@google.com
c8cc60cd3a
move SkMatrix44
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1565 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-13 14:58:44 +00:00
reed@google.com
da9fac0aa1
add row/col major getters, plus unit-tests
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1564 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-13 14:46:52 +00:00
reed@google.com
8260a89586
move into utils
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1563 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-13 14:02:52 +00:00
reed@google.com
7d26c590f6
add 2nd parameter to SkFontHost::NextLogicalFont()
...
needed by android to map different styles of fallback fonts
git-svn-id: http://skia.googlecode.com/svn/trunk@1562 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-13 13:01:10 +00:00
epoger@google.com
80afbf08eb
#include <math.h> if SK_SCALAR_IS_FIXED but SK_CAN_USE_FLOAT
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1561 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-09 22:16:28 +00:00
tomhudson@google.com
ea325437bd
When user specifies an output path with -w, only output files from main
...
render (don't output -replay and -serialize files into separate
directories).
If main render fails, don't test -replay or -serialize.
Also fix misnamed variable, line-wrap.
git-svn-id: http://skia.googlecode.com/svn/trunk@1560 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-09 20:30:03 +00:00
reed@google.com
125002a94c
update SkMatrix44
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1559 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-09 19:13:41 +00:00
tomhudson@google.com
88a0e05265
Fix signed/unsigned mismatch in rev 1553.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1558 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-09 18:54:01 +00:00
epoger@google.com
73f8399835
Define SK_CAN_USE_FLOAT in gyp build, just like Makefile build
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1557 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-09 18:51:41 +00:00
epoger@google.com
e02b68c47e
Remove SkTableMaskFilter.cpp from gyp build, because it was breaking for skia_scalar=fixed (and it was not being exercised by the old Makefile anyway)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1555 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-09 17:37:59 +00:00
reed@google.com
2f3567c000
check-point for unifying results between runs and mask backends for aa
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1554 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-09 15:54:38 +00:00
tomhudson@google.com
9dc527bebf
skdiff usability improvements: summary to stdout, -diff in output filenames,
...
better statistics on HTML page when using -white, output directory name is
optional.
codereview.appspot.com/4590048/
git-svn-id: http://skia.googlecode.com/svn/trunk@1553 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-09 15:47:10 +00:00
junov@google.com
53a5584bb0
Adding functionality for purgin graphics resource handles
...
This will allow a fix to WebKit for preventing a crash when the graphics
context is destroyed before the GrContext
BUG=http://code.google.com/p/chromium/issues/detail?id=85309
git-svn-id: http://skia.googlecode.com/svn/trunk@1551 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-08 22:55:10 +00:00
epoger@google.com
5189a4e65e
add skia_scalar switch to gyp script
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1550 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-08 20:55:53 +00:00
bungeman@google.com
2080900985
Fix scale metric bench.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1549 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-08 19:38:53 +00:00
epoger@google.com
bf083a9a20
fix windows compile errors in "tests"
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1547 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-08 18:26:08 +00:00
epoger@google.com
e7ccdb3bef
revert to manually imported gyp source (from SVN externals)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1541 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-08 15:34:21 +00:00
tomhudson@google.com
ddab2276cb
Duplicates code from GrPathUtils to verify that an approximation for the number
...
of points in a quadratic curve is within +/- 2x the value determined by the
previous expensive method.
Running a similar approximation method on the Guimark2 HTML5 Charting demo drops
the share of time spent in SkPoint::distanceToLineSegmentBetweenSqd() from 4.57%
to under 0.6%, although SkPath::Iter::next(), SkPath::lineTo(), and
GrPathUtils::quadraticPointCount() all increase a bit.
Using a similar approximation method for SampleSlides.cpp produces visually
reasonable results. Without a relevant gm (it looks like gm/pathfill.cpp doesn't
have explicit quadratics?) I'm not sure how to get a better output quality
test.
We could avoid code duplication by:
- have two implementations in GrPathUtils (computedQuadraticPointCount() &
estimatedQuadraticPointCount() are my working titles)
- use a #define to select between them at compile time
- expose both of them in the header file for this test to access
git-svn-id: http://skia.googlecode.com/svn/trunk@1540 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-08 14:46:28 +00:00
Scroggo
aed68d999b
Make linux sample app work on my laptop. Reviewed at http://codereview.appspot.com/4568050/
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1539 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-08 14:26:00 +00:00
thakis@chromium.org
7e12f82aa4
GCC 4.6 fix: intptr_t <-> NULL triggers an warning.
...
BUG=chromium:87001
TEST=none
Patch by Ryan Sleevi <rsleevi@chromium.org>
Review URL: http://codereview.appspot.com/4571048/
git-svn-id: http://skia.googlecode.com/svn/trunk@1538 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-07 22:18:07 +00:00