platform/upstream/libSkiaSharp.git
13 years agoAdd GrRenderTexture cons for gpu dev. Remove factory from gpu device.
bsalomon@google.com [Fri, 17 Jun 2011 15:10:21 +0000 (15:10 +0000)]
Add GrRenderTexture cons for gpu dev. Remove factory from gpu device.

Review URL: http://codereview.appspot.com/4631046/

git-svn-id: http://skia.googlecode.com/svn/trunk@1634 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdded dependencies for SkPipe in SampleApp
yangsu@google.com [Fri, 17 Jun 2011 15:04:40 +0000 (15:04 +0000)]
Added dependencies for SkPipe in SampleApp
Fixed SkGPipeWrite to reflect changes in SkDevice

git-svn-id: http://skia.googlecode.com/svn/trunk@1633 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoGyp files for Cocoa Debugger and Simple Cocoa App
yangsu@google.com [Fri, 17 Jun 2011 15:00:44 +0000 (15:00 +0000)]
Gyp files for Cocoa Debugger and Simple Cocoa App
http://codereview.appspot.com/4632045/

git-svn-id: http://skia.googlecode.com/svn/trunk@1632 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdd graphing for multiple runs of bench.
bungeman@google.com [Fri, 17 Jun 2011 13:58:14 +0000 (13:58 +0000)]
Add graphing for multiple runs of bench.
http://codereview.appspot.com/4539087/

git-svn-id: http://skia.googlecode.com/svn/trunk@1628 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoMinor fixes for SampleApp.
Scroggo [Fri, 17 Jun 2011 13:53:05 +0000 (13:53 +0000)]
Minor fixes for SampleApp.

- Add a comment for invalidating in onSizeChange.
- Call base constructor for SkOSWindow_Unix.
- Call onSizeChange in SampleWindow constructor so fZoomCenter gets set.

git-svn-id: http://skia.googlecode.com/svn/trunk@1627 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years ago-replay tests are only run if forward rendering succeeded.
tomhudson@google.com [Fri, 17 Jun 2011 13:11:45 +0000 (13:11 +0000)]
-replay tests are only run if forward rendering succeeded.
-serialize tests are only run if previous test (either -replay or forward
rendering) succeeded.
The results of -replay and -serialize are compared against the output of
forward rendering.

git-svn-id: http://skia.googlecode.com/svn/trunk@1626 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdd createNewCompatibleDevice. Allow devices to have a NULL factory and saveLayer...
bsalomon@google.com [Fri, 17 Jun 2011 13:10:25 +0000 (13:10 +0000)]
Add createNewCompatibleDevice. Allow devices to have a NULL factory and saveLayer will fall back on createNewCompatibleDevice.

Review URL: http://codereview.appspot.com/4633044/

git-svn-id: http://skia.googlecode.com/svn/trunk@1625 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoUse SkTouchGesture to handle pinch events in Android SampleApp.
Scroggo [Fri, 17 Jun 2011 12:46:17 +0000 (12:46 +0000)]
Use SkTouchGesture to handle pinch events in Android SampleApp.

http://codereview.appspot.com/4631043/

git-svn-id: http://skia.googlecode.com/svn/trunk@1624 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoModified Pipe Reader to read an atom at a time
yangsu@google.com [Thu, 16 Jun 2011 21:08:19 +0000 (21:08 +0000)]
Modified Pipe Reader to read an atom at a time
http://codereview.appspot.com/4636043/

git-svn-id: http://skia.googlecode.com/svn/trunk@1623 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdded CocoaDebugger to experimental
yangsu@google.com [Thu, 16 Jun 2011 20:49:55 +0000 (20:49 +0000)]
Added CocoaDebugger to experimental

git-svn-id: http://skia.googlecode.com/svn/trunk@1622 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agomake SkDevice constructors explicit between offscreen and on/direct
reed@google.com [Thu, 16 Jun 2011 19:10:39 +0000 (19:10 +0000)]
make SkDevice constructors explicit between offscreen and on/direct

http://codereview.appspot.com/4632044/

git-svn-id: http://skia.googlecode.com/svn/trunk@1620 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoroll back runhooks to fix production buildbot
epoger@google.com [Thu, 16 Jun 2011 18:24:11 +0000 (18:24 +0000)]
roll back runhooks to fix production buildbot

git-svn-id: http://skia.googlecode.com/svn/trunk@1618 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdd "runhooks" to run gyp step upon gclient sync, for buildbot
epoger@google.com [Thu, 16 Jun 2011 18:19:46 +0000 (18:19 +0000)]
Add "runhooks" to run gyp step upon gclient sync, for buildbot

git-svn-id: http://skia.googlecode.com/svn/trunk@1617 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoFirst pass at improving temporary tex/rt reuse
bsalomon@google.com [Thu, 16 Jun 2011 18:05:35 +0000 (18:05 +0000)]
First pass at improving temporary tex/rt reuse
Review URL: http://codereview.appspot.com/4625043/

git-svn-id: http://skia.googlecode.com/svn/trunk@1616 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoBetter fix for changing the viewport in sample app.
Scroggo [Thu, 16 Jun 2011 15:31:26 +0000 (15:31 +0000)]
Better fix for changing the viewport in sample app.

Create a platform description and base the size on the SkWindow
in order to create a RenderTarget, which results in changing the
viewport.  This allows us to use only GR calls.

In the Android sample app, fix the problem where nothing is drawn
in the first frame, and default to drawing in GL.

Reviewed at http://codereview.appspot.com/4642043/

git-svn-id: http://skia.googlecode.com/svn/trunk@1615 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdded SimpleCocoaApp to the experimental directory
yangsu@google.com [Thu, 16 Jun 2011 14:46:26 +0000 (14:46 +0000)]
Added SimpleCocoaApp to the experimental directory
http://codereview.appspot.com/4576059/

git-svn-id: http://skia.googlecode.com/svn/trunk@1614 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoRename GrGLBug to GrGLCapability.
tomhudson@google.com [Thu, 16 Jun 2011 14:08:04 +0000 (14:08 +0000)]
Rename GrGLBug to GrGLCapability.
Default all architectures to kProbe_GrGLCapability.
Use new facilities better from GrGpuGL.cpp

git-svn-id: http://skia.googlecode.com/svn/trunk@1613 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoFix the mac build of the SampleApp.
Scroggo [Thu, 16 Jun 2011 14:00:15 +0000 (14:00 +0000)]
Fix the mac build of the SampleApp.

My call to glViewport breaks the mac build, but benefits the Android
and linux builds.  Fix the mac build until I come up with a better
solution.

Reviewed at http://codereview.appspot.com/4628042/

git-svn-id: http://skia.googlecode.com/svn/trunk@1612 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAlways call notifyTextureDelete in onRelease.
Scroggo [Thu, 16 Jun 2011 13:14:21 +0000 (13:14 +0000)]
Always call notifyTextureDelete in onRelease.

Reviewed at http://codereview.appspot.com/4620050/

git-svn-id: http://skia.googlecode.com/svn/trunk@1611 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd gradient_create bench, just to measure the time to create a new gradient
reed@google.com [Thu, 16 Jun 2011 13:14:19 +0000 (13:14 +0000)]
add gradient_create bench, just to measure the time to create a new gradient

git-svn-id: http://skia.googlecode.com/svn/trunk@1610 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoremove libpng and zlib from third_party
epoger@google.com [Thu, 16 Jun 2011 12:27:14 +0000 (12:27 +0000)]
remove libpng and zlib from third_party
http://codereview.appspot.com/4571077

git-svn-id: http://skia.googlecode.com/svn/trunk@1609 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoPut Matirx and Scalar benches into gyp.
bungeman@google.com [Wed, 15 Jun 2011 22:00:58 +0000 (22:00 +0000)]
Put Matirx and Scalar benches into gyp.

The Matrix and Scalar benches were in the old Makefile, but did not make it into gyp.

git-svn-id: http://skia.googlecode.com/svn/trunk@1608 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd tilemode options
reed@google.com [Wed, 15 Jun 2011 21:17:37 +0000 (21:17 +0000)]
add tilemode options

git-svn-id: http://skia.googlecode.com/svn/trunk@1607 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAvoid checking to see if a bool is less than zero.
tomhudson@google.com [Wed, 15 Jun 2011 19:41:46 +0000 (19:41 +0000)]
Avoid checking to see if a bool is less than zero.
Create a symbolic name for -1 when it means "don't know, probe at runtime".

git-svn-id: http://skia.googlecode.com/svn/trunk@1606 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoremove trunk/gyp/gyp_skia (it was replaced a while back by trunk/gyp_skia)
epoger@google.com [Wed, 15 Jun 2011 19:35:50 +0000 (19:35 +0000)]
remove trunk/gyp/gyp_skia (it was replaced a while back by trunk/gyp_skia)

git-svn-id: http://skia.googlecode.com/svn/trunk@1605 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoMove PointTest.cpp out of tests/core into tests/ ; the other arrangement was
epoger@google.com [Wed, 15 Jun 2011 18:49:21 +0000 (18:49 +0000)]
Move PointTest.cpp out of tests/core into tests/ ; the other arrangement was
"clever" but was causing build problems.

git-svn-id: http://skia.googlecode.com/svn/trunk@1604 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agofix all_dependent_settings gyp bug (affected Mac only)
epoger@google.com [Wed, 15 Jun 2011 18:20:41 +0000 (18:20 +0000)]
fix all_dependent_settings gyp bug (affected Mac only)

git-svn-id: http://skia.googlecode.com/svn/trunk@1603 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoImplement SkPoint::Normalize() for SK_SCALAR_IS_FIXED and add performance warning...
epoger@google.com [Wed, 15 Jun 2011 18:04:58 +0000 (18:04 +0000)]
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

13 years agoImplement edge AA for concave polys in the tesselated path renderer.
senorblanco@chromium.org [Wed, 15 Jun 2011 17:52:09 +0000 (17:52 +0000)]
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

13 years agochange GC imagedecoder to use the same colorspace between image and context,
reed@google.com [Wed, 15 Jun 2011 17:33:29 +0000 (17:33 +0000)]
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

13 years agoAdd information to bench output.
bungeman@google.com [Wed, 15 Jun 2011 17:25:46 +0000 (17:25 +0000)]
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

13 years agoIncrease compatibility with clang, mostly around SK_RESTRICT.
tomhudson@google.com [Wed, 15 Jun 2011 16:50:27 +0000 (16:50 +0000)]
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

13 years agoImprovements to the SampleApp (primarily Android).
Scroggo [Wed, 15 Jun 2011 16:49:08 +0000 (16:49 +0000)]
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

13 years agofix gm on Mac, and Linux buildbot build, by adding zlib source to third_party
epoger@google.com [Wed, 15 Jun 2011 16:05:37 +0000 (16:05 +0000)]
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

13 years agoSet texture dirty flag only when texture has really changed
bsalomon@google.com [Wed, 15 Jun 2011 14:00:23 +0000 (14:00 +0000)]
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

13 years agoadd libpng source to repo and make Unix build use it
epoger@google.com [Wed, 15 Jun 2011 13:45:10 +0000 (13:45 +0000)]
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

13 years agostyle and warnings
reed@google.com [Tue, 14 Jun 2011 19:31:24 +0000 (19:31 +0000)]
style and warnings

git-svn-id: http://skia.googlecode.com/svn/trunk@1590 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd
reed@google.com [Tue, 14 Jun 2011 19:22:21 +0000 (19:22 +0000)]
add

git-svn-id: http://skia.googlecode.com/svn/trunk@1589 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd SkDataRef (for future use)
reed@google.com [Tue, 14 Jun 2011 19:18:26 +0000 (19:18 +0000)]
add SkDataRef (for future use)

git-svn-id: http://skia.googlecode.com/svn/trunk@1588 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoUpdate mac gpu baseline for SSAA on inverse paths
bsalomon@google.com [Tue, 14 Jun 2011 18:49:29 +0000 (18:49 +0000)]
Update mac gpu baseline for SSAA on inverse paths

git-svn-id: http://skia.googlecode.com/svn/trunk@1585 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoEnable SSAA on inverse filled paths
bsalomon@google.com [Tue, 14 Jun 2011 18:46:24 +0000 (18:46 +0000)]
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

13 years agodelete all old (non-Gyp) buildfiles
epoger@google.com [Tue, 14 Jun 2011 18:35:08 +0000 (18:35 +0000)]
delete all old (non-Gyp) buildfiles

git-svn-id: http://skia.googlecode.com/svn/trunk@1583 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoFBO probing at Context startup is very expensive. This patch removes the
tomhudson@google.com [Tue, 14 Jun 2011 18:16:52 +0000 (18:16 +0000)]
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

13 years agodelete manually-imported Gyp source
epoger@google.com [Tue, 14 Jun 2011 17:57:16 +0000 (17:57 +0000)]
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

13 years agoUpdated mac baselines from gl ctx size change and new version of shadertext with...
bsalomon@google.com [Tue, 14 Jun 2011 17:20:23 +0000 (17:20 +0000)]
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

13 years agoUpdate baselines for linux-fixed. Make shader text sample/GM work with scalar=fixed.
bsalomon@google.com [Tue, 14 Jun 2011 17:13:22 +0000 (17:13 +0000)]
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

13 years agoUse automatically imported third_party/externals/gyp instead of
epoger@google.com [Tue, 14 Jun 2011 16:01:04 +0000 (16:01 +0000)]
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

13 years agoFix text-as-path with skshader on gpu
bsalomon@google.com [Mon, 13 Jun 2011 21:55:32 +0000 (21:55 +0000)]
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

13 years agouint32_t -> int for texture extents
bsalomon@google.com [Mon, 13 Jun 2011 19:28:02 +0000 (19:28 +0000)]
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

13 years agoImplement timers for linux SampleApp. http://codereview.appspot.com/4592054/
Scroggo [Mon, 13 Jun 2011 19:17:58 +0000 (19:17 +0000)]
Implement timers for linux SampleApp. codereview.appspot.com/4592054/

git-svn-id: http://skia.googlecode.com/svn/trunk@1573 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agodrop extraneous GrPrintfs
reed@google.com [Mon, 13 Jun 2011 18:54:59 +0000 (18:54 +0000)]
drop extraneous GrPrintfs

git-svn-id: http://skia.googlecode.com/svn/trunk@1572 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoset externals/gyp dependency to same version as manually imported gyp code
epoger@google.com [Mon, 13 Jun 2011 18:45:15 +0000 (18:45 +0000)]
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

13 years agoModify DEPS so that it works properly for the buildbot
epoger@google.com [Mon, 13 Jun 2011 18:08:41 +0000 (18:08 +0000)]
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

13 years agoAA updates for mac gm baseline WRT r1568
bsalomon@google.com [Mon, 13 Jun 2011 18:01:57 +0000 (18:01 +0000)]
AA updates for mac gm baseline WRT r1568

git-svn-id: http://skia.googlecode.com/svn/trunk@1569 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoConsider hw render target limit for offscreen supersample and tile
bsalomon@google.com [Mon, 13 Jun 2011 17:58:13 +0000 (17:58 +0000)]
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

13 years agoUpdates to the Android SampleApp
djsollen@google.com [Mon, 13 Jun 2011 16:58:40 +0000 (16:58 +0000)]
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

13 years agoAdd DEPS file in an attempt to make both gclient and svn update bring in
epoger@google.com [Mon, 13 Jun 2011 16:04:25 +0000 (16:04 +0000)]
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

13 years agomove SkMatrix44
reed@google.com [Mon, 13 Jun 2011 14:58:44 +0000 (14:58 +0000)]
move SkMatrix44

git-svn-id: http://skia.googlecode.com/svn/trunk@1565 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd row/col major getters, plus unit-tests
reed@google.com [Mon, 13 Jun 2011 14:46:52 +0000 (14:46 +0000)]
add row/col major getters, plus unit-tests

git-svn-id: http://skia.googlecode.com/svn/trunk@1564 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agomove into utils
reed@google.com [Mon, 13 Jun 2011 14:02:52 +0000 (14:02 +0000)]
move into utils

git-svn-id: http://skia.googlecode.com/svn/trunk@1563 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd 2nd parameter to SkFontHost::NextLogicalFont()
reed@google.com [Mon, 13 Jun 2011 13:01:10 +0000 (13:01 +0000)]
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

13 years ago#include <math.h> if SK_SCALAR_IS_FIXED but SK_CAN_USE_FLOAT
epoger@google.com [Thu, 9 Jun 2011 22:16:28 +0000 (22:16 +0000)]
#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

13 years agoWhen user specifies an output path with -w, only output files from main
tomhudson@google.com [Thu, 9 Jun 2011 20:30:03 +0000 (20:30 +0000)]
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

13 years agoupdate SkMatrix44
reed@google.com [Thu, 9 Jun 2011 19:13:41 +0000 (19:13 +0000)]
update SkMatrix44

git-svn-id: http://skia.googlecode.com/svn/trunk@1559 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoFix signed/unsigned mismatch in rev 1553.
tomhudson@google.com [Thu, 9 Jun 2011 18:54:01 +0000 (18:54 +0000)]
Fix signed/unsigned mismatch in rev 1553.

git-svn-id: http://skia.googlecode.com/svn/trunk@1558 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoDefine SK_CAN_USE_FLOAT in gyp build, just like Makefile build
epoger@google.com [Thu, 9 Jun 2011 18:51:41 +0000 (18:51 +0000)]
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

13 years agoRemove SkTableMaskFilter.cpp from gyp build, because it was breaking for skia_scalar...
epoger@google.com [Thu, 9 Jun 2011 17:37:59 +0000 (17:37 +0000)]
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

13 years agocheck-point for unifying results between runs and mask backends for aa
reed@google.com [Thu, 9 Jun 2011 15:54:38 +0000 (15:54 +0000)]
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

13 years agoskdiff usability improvements: summary to stdout, -diff in output filenames,
tomhudson@google.com [Thu, 9 Jun 2011 15:47:10 +0000 (15:47 +0000)]
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

13 years agoAdding functionality for purgin graphics resource handles
junov@google.com [Wed, 8 Jun 2011 22:55:10 +0000 (22:55 +0000)]
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

13 years agoadd skia_scalar switch to gyp script
epoger@google.com [Wed, 8 Jun 2011 20:55:53 +0000 (20:55 +0000)]
add skia_scalar switch to gyp script

git-svn-id: http://skia.googlecode.com/svn/trunk@1550 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoFix scale metric bench.
bungeman@google.com [Wed, 8 Jun 2011 19:38:53 +0000 (19:38 +0000)]
Fix scale metric bench.

git-svn-id: http://skia.googlecode.com/svn/trunk@1549 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agofix windows compile errors in "tests"
epoger@google.com [Wed, 8 Jun 2011 18:26:08 +0000 (18:26 +0000)]
fix windows compile errors in "tests"

git-svn-id: http://skia.googlecode.com/svn/trunk@1547 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agorevert to manually imported gyp source (from SVN externals)
epoger@google.com [Wed, 8 Jun 2011 15:34:21 +0000 (15:34 +0000)]
revert to manually imported gyp source (from SVN externals)

git-svn-id: http://skia.googlecode.com/svn/trunk@1541 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoDuplicates code from GrPathUtils to verify that an approximation for the number
tomhudson@google.com [Wed, 8 Jun 2011 14:46:28 +0000 (14:46 +0000)]
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

13 years agoMake linux sample app work on my laptop. Reviewed at http://codereview.appspot.com...
Scroggo [Wed, 8 Jun 2011 14:26:00 +0000 (14:26 +0000)]
Make linux sample app work on my laptop. Reviewed at codereview.appspot.com/4568050/

git-svn-id: http://skia.googlecode.com/svn/trunk@1539 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoGCC 4.6 fix: intptr_t <-> NULL triggers an warning.
thakis@chromium.org [Tue, 7 Jun 2011 22:18:07 +0000 (22:18 +0000)]
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

13 years agoHigher resolution timers for bench.
bungeman@google.com [Tue, 7 Jun 2011 19:16:02 +0000 (19:16 +0000)]
Higher resolution timers for bench.
http://codereview.appspot.com/4548090/

git-svn-id: http://skia.googlecode.com/svn/trunk@1534 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agorebaselin from 1528
reed@google.com [Tue, 7 Jun 2011 18:48:32 +0000 (18:48 +0000)]
rebaselin from 1528

git-svn-id: http://skia.googlecode.com/svn/trunk@1533 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoApply translate param to path bounds when computing ssaa bounds
bsalomon@google.com [Tue, 7 Jun 2011 18:46:50 +0000 (18:46 +0000)]
Apply translate param to path bounds when computing ssaa bounds

Review URL: http://codereview.appspot.com/4591044/

git-svn-id: http://skia.googlecode.com/svn/trunk@1532 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agorebaseline from 1528
reed@google.com [Tue, 7 Jun 2011 18:43:05 +0000 (18:43 +0000)]
rebaseline from 1528

git-svn-id: http://skia.googlecode.com/svn/trunk@1531 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoround Y baseline for text, as we do in the raster case
reed@google.com [Tue, 7 Jun 2011 17:56:25 +0000 (17:56 +0000)]
round Y baseline for text, as we do in the raster case

http://code.google.com/p/chromium/issues/detail?id=83934

git-svn-id: http://skia.googlecode.com/svn/trunk@1528 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoTemporarily fall back to the old makefile; the new one was killing buildbot.
epoger@google.com [Tue, 7 Jun 2011 15:46:40 +0000 (15:46 +0000)]
Temporarily fall back to the old makefile; the new one was killing buildbot.

git-svn-id: http://skia.googlecode.com/svn/trunk@1527 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoSome final cleanups leading up to The Official Switch to Gyp
epoger@google.com [Tue, 7 Jun 2011 14:48:41 +0000 (14:48 +0000)]
Some final cleanups leading up to The Official Switch to Gyp
see http://codereview.appspot.com/4580043

1. Create a single public skia.gyp file that all outside projects (Chrome,
Android, etc.) should depend on from now on.  I haven't yet created targets
suitable for those projects to use, but this is where we should add them.
2. Make gyp generate its Makefiles within out/ directory, rather than polluting
directories under source control.
3. Modify trunk/Makefile to automatically run gyp_skia and then call the
generated Makefile, to ease developer transition.

git-svn-id: http://skia.googlecode.com/svn/trunk@1526 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoNew benchmarks to determine performance of matrix-point multiplication for floating...
tomhudson@google.com [Tue, 7 Jun 2011 14:31:38 +0000 (14:31 +0000)]
New benchmarks to determine performance of matrix-point multiplication for floating point vs. double matrices.

Over-the-shoulder review by reed@.

git-svn-id: http://skia.googlecode.com/svn/trunk@1525 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd SkFixedFloorToFixed
reed@google.com [Tue, 7 Jun 2011 13:38:39 +0000 (13:38 +0000)]
add SkFixedFloorToFixed

git-svn-id: http://skia.googlecode.com/svn/trunk@1524 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoCorrect argument order for drawSimpleRect()
thakis@chromium.org [Tue, 7 Jun 2011 04:03:17 +0000 (04:03 +0000)]
Correct argument order for drawSimpleRect()

Patch by Ryan Sleevi <rsleevi@chromium.org>
Review URL: http://codereview.appspot.com/4568055/

git-svn-id: http://skia.googlecode.com/svn/trunk@1523 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoCommitting on behalf of gman@chromium.org:
kbr@chromium.org [Tue, 7 Jun 2011 01:27:01 +0000 (01:27 +0000)]
Committing on behalf of gman@chromium.org:

Fix for putImageData

TEST=manually ran tests that were failing
BUG=84165
TBR=reed@google.com

Code review URL: http://codereview.appspot.com/4570042

git-svn-id: http://skia.googlecode.com/svn/trunk@1518 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoIncrease use of SkMatrix::hasPerspective(), merge in has_perspective().
tomhudson@google.com [Mon, 6 Jun 2011 19:11:19 +0000 (19:11 +0000)]
Increase use of SkMatrix::hasPerspective(), merge in has_perspective().
Unifies SkMatrix::hasPerspective(), has_perspective(), and manual tests of SkMatrix::getType & kPerspective_Mask.

git-svn-id: http://skia.googlecode.com/svn/trunk@1517 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoMake scalar benchmarks compile and run under SKIA_SCALAR=fixed as well as float.
tomhudson@google.com [Mon, 6 Jun 2011 17:55:11 +0000 (17:55 +0000)]
Make scalar benchmarks compile and run under SKIA_SCALAR=fixed as well as float.

git-svn-id: http://skia.googlecode.com/svn/trunk@1516 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAttempt to correct issue with fixed point from SkMatrix changes in r1512.
tomhudson@google.com [Mon, 6 Jun 2011 17:21:44 +0000 (17:21 +0000)]
Attempt to correct issue with fixed point from SkMatrix changes in r1512.

git-svn-id: http://skia.googlecode.com/svn/trunk@1515 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoremove legacy LCDTEXT define
reed@google.com [Mon, 6 Jun 2011 17:15:46 +0000 (17:15 +0000)]
remove legacy LCDTEXT define

git-svn-id: http://skia.googlecode.com/svn/trunk@1514 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agomove code inside #ifdef to fix warning
reed@google.com [Mon, 6 Jun 2011 17:14:52 +0000 (17:14 +0000)]
move code inside #ifdef to fix warning

git-svn-id: http://skia.googlecode.com/svn/trunk@1513 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoBenchmarking suggests that replacing some of the conversions from float to int
tomhudson@google.com [Mon, 6 Jun 2011 15:18:28 +0000 (15:18 +0000)]
Benchmarking suggests that replacing some of the conversions from float to int
with direct floating-point comparisons in computeTypeMask() is a significant win
(up to 40%?).
In practice, we see a 10-15% speedup in this function (the current most
expensive Skia function) in Chrome on the FishIETank demo.

The remainder of the function looks like it ought to be amenable to similar
speedups, but we haven't found a rewrite that behaves well in benchmarking yet.

http://codereview.appspot.com/4551097/

git-svn-id: http://skia.googlecode.com/svn/trunk@1512 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoNew scalar benchmark suite, comparing SkScalarAs2sCompliment vs native float operations
tomhudson@google.com [Mon, 6 Jun 2011 15:16:31 +0000 (15:16 +0000)]
New scalar benchmark suite, comparing SkScalarAs2sCompliment vs native float operations
http://http://codereview.appspot.com/4532116/

git-svn-id: http://skia.googlecode.com/svn/trunk@1511 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd internal multiplier for loopcount, to reduce variance for simple/fast tests
reed@google.com [Mon, 6 Jun 2011 13:31:30 +0000 (13:31 +0000)]
add internal multiplier for loopcount, to reduce variance for simple/fast tests

git-svn-id: http://skia.googlecode.com/svn/trunk@1510 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agomake concat_float distinguishable using -match
reed@google.com [Mon, 6 Jun 2011 13:20:29 +0000 (13:20 +0000)]
make concat_float distinguishable using -match
init our float/double arrays, so we get reliable timings (NaNs are slow)

git-svn-id: http://skia.googlecode.com/svn/trunk@1509 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoMake gyp_skia script use third_party/externals/gyp instead of the deprecated
epoger@google.com [Fri, 3 Jun 2011 21:33:03 +0000 (21:33 +0000)]
Make gyp_skia script use third_party/externals/gyp instead of the deprecated
third_party/gyp

git-svn-id: http://skia.googlecode.com/svn/trunk@1506 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdd third_party/externals dir that brings in gyp
epoger@google.com [Fri, 3 Jun 2011 21:19:27 +0000 (21:19 +0000)]
Add third_party/externals dir that brings in gyp

git-svn-id: http://skia.googlecode.com/svn/trunk@1505 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoPut back our old gyp dir
epoger@google.com [Fri, 3 Jun 2011 21:00:42 +0000 (21:00 +0000)]
Put back our old gyp dir

git-svn-id: http://skia.googlecode.com/svn/trunk@1504 2bbb7eff-a529-9590-31e7-b0007b416f81