Commit Graph

1564 Commits

Author SHA1 Message Date
mike@reedtribe.org
643b007596 add strokes.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@1647 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-18 01:56:44 +00:00
mike@reedtribe.org
90bb49747b inherit from SampleView
git-svn-id: http://skia.googlecode.com/svn/trunk@1646 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-18 01:35:18 +00:00
mike@reedtribe.org
f2c21cdaf1 add
git-svn-id: http://skia.googlecode.com/svn/trunk@1645 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-18 00:15:04 +00:00
epoger@google.com
0c96b0a95e another whitespace commit
git-svn-id: http://skia.googlecode.com/svn/trunk@1644 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 21:00:36 +00:00
epoger@google.com
9bb0c89221 whitespace commit
git-svn-id: http://skia.googlecode.com/svn/trunk@1643 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 20:46:33 +00:00
bsalomon@google.com
61f3bde1ba Fix handling of nan when clamping number of pts in quads/cubics
Review URL: http://codereview.appspot.com/4646044/



git-svn-id: http://skia.googlecode.com/svn/trunk@1642 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 20:06:49 +00:00
yangsu@google.com
026427654f Added FileReaderApp to experimental and it's corresponding gyp file
git-svn-id: http://skia.googlecode.com/svn/trunk@1641 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 18:31:01 +00:00
bsalomon@google.com
fe6765293f Remember last successful stencil format
Review URL: http://codereview.appspot.com/4625048/



git-svn-id: http://skia.googlecode.com/svn/trunk@1640 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 18:12:21 +00:00
bungeman@google.com
6d0c02cc25 Fix Gradient2Bench colors so that Debug bench will run.
git-svn-id: http://skia.googlecode.com/svn/trunk@1639 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 17:56:23 +00:00
bsalomon@google.com
90405934c5 Fix self-assignment
Review URL: http://codereview.appspot.com/4631047/



git-svn-id: http://skia.googlecode.com/svn/trunk@1637 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 15:56:55 +00:00
Scroggo
b092140c18 Remove redundant GrTouchGesture. Switch its only user to SkTouchGesture.
Review at http://codereview.appspot.com/4636045/


git-svn-id: http://skia.googlecode.com/svn/trunk@1636 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 15:17:07 +00:00
bsalomon@google.com
f9046fef90 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
2011-06-17 15:10:21 +00:00
yangsu@google.com
06b4da16fd 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
2011-06-17 15:04:40 +00:00
yangsu@google.com
5f802c18f2 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
2011-06-17 15:00:44 +00:00
bungeman@google.com
85669f9d77 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
2011-06-17 13:58:14 +00:00
Scroggo
b4490c7435 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
2011-06-17 13:53:05 +00:00
tomhudson@google.com
cae6b3f1e8 -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
2011-06-17 13:11:45 +00:00
bsalomon@google.com
e97f0856a8 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
2011-06-17 13:10:25 +00:00
Scroggo
a54e2f61f8 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
2011-06-17 12:46:17 +00:00
yangsu@google.com
1bce0a5857 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
2011-06-16 21:08:19 +00:00
yangsu@google.com
a8a42e20f0 Added CocoaDebugger to experimental
git-svn-id: http://skia.googlecode.com/svn/trunk@1622 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-16 20:49:55 +00:00
reed@google.com
af951c9bc4 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
2011-06-16 19:10:39 +00:00
epoger@google.com
3cbd375350 roll back runhooks to fix production buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@1618 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-16 18:24:11 +00:00
epoger@google.com
0045eddac6 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
2011-06-16 18:19:46 +00:00
bsalomon@google.com
b5b3168a64 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
2011-06-16 18:05:35 +00:00
Scroggo
3e7ff9f31d 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
2011-06-16 15:31:26 +00:00
yangsu@google.com
6c4cd265e3 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
2011-06-16 14:46:26 +00:00
tomhudson@google.com
e67bd3fbc9 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
2011-06-16 14:08:04 +00:00
Scroggo
716a0387ca 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
2011-06-16 14:00:15 +00:00
Scroggo
c29d7cdf3e 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
2011-06-16 13:14:21 +00:00
reed@google.com
8ac7a0fcef 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
2011-06-16 13:14:19 +00:00
epoger@google.com
b1b721a7b6 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
2011-06-16 12:27:14 +00:00
bungeman@google.com
48d5d8e862 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
2011-06-15 22:00:58 +00:00
reed@google.com
72415161dd add tilemode options
git-svn-id: http://skia.googlecode.com/svn/trunk@1607 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-15 21:17:37 +00:00
tomhudson@google.com
30e4bb6667 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
2011-06-15 19:41:46 +00:00
epoger@google.com
7495ac16c9 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
2011-06-15 19:35:50 +00:00
epoger@google.com
d33f75c7be 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
2011-06-15 18:49:21 +00:00
epoger@google.com
8a12c0430a fix all_dependent_settings gyp bug (affected Mac only)
git-svn-id: http://skia.googlecode.com/svn/trunk@1603 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-15 18:20:41 +00:00
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