aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
Commit message (Collapse)AuthorAge
* SampleApp fixes.Gravatar Scroggo2011-06-21
| | | | | | | | | | | | | | On Android, delete gWindow before calling application_term, avoiding a crash each time the app closes. Also make sure the screen is redrawn when resuming. On Linux, delete gWindow to avoid memory leak. In general, allow moving from sample 0 to the last sample. Reviewed at http://codereview.appspot.com/4639060 git-svn-id: http://skia.googlecode.com/svn/trunk@1661 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add a way to save to PDF in SampleApp on Android and elsewhere.Gravatar Scroggo2011-06-21
| | | | | | | | | In Android, add the PDF file to downloads, so it can be opened. Reviewed at http://codereview.appspot.com/4638052/ git-svn-id: http://skia.googlecode.com/svn/trunk@1659 2bbb7eff-a529-9590-31e7-b0007b416f81
* inherit from SampleViewGravatar mike@reedtribe.org2011-06-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1646 2bbb7eff-a529-9590-31e7-b0007b416f81
* Minor fixes for SampleApp.Gravatar Scroggo2011-06-17
| | | | | | | | | - 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
* Add createNewCompatibleDevice. Allow devices to have a NULL factory and ↵Gravatar bsalomon@google.com2011-06-17
| | | | | | | | | | 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
* Use SkTouchGesture to handle pinch events in Android SampleApp.Gravatar Scroggo2011-06-17
| | | | | | | http://codereview.appspot.com/4631043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1624 2bbb7eff-a529-9590-31e7-b0007b416f81
* make SkDevice constructors explicit between offscreen and on/directGravatar reed@google.com2011-06-16
| | | | | | | | http://codereview.appspot.com/4632044/ git-svn-id: http://skia.googlecode.com/svn/trunk@1620 2bbb7eff-a529-9590-31e7-b0007b416f81
* Better fix for changing the viewport in sample app.Gravatar Scroggo2011-06-16
| | | | | | | | | | | | | | 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
* Fix the mac build of the SampleApp.Gravatar Scroggo2011-06-16
| | | | | | | | | | | 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
* Implement edge AA for concave polys in the tesselated path renderer.Gravatar senorblanco@chromium.org2011-06-15
| | | | | | | | Review URL: http://codereview.appspot.com/4571072/ git-svn-id: http://skia.googlecode.com/svn/trunk@1600 2bbb7eff-a529-9590-31e7-b0007b416f81
* Improvements to the SampleApp (primarily Android).Gravatar Scroggo2011-06-15
| | | | | | | | | | | | | | | | | | 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
* Update baselines for linux-fixed. Make shader text sample/GM work with ↵Gravatar bsalomon@google.com2011-06-14
| | | | | | scalar=fixed. git-svn-id: http://skia.googlecode.com/svn/trunk@1577 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix text-as-path with skshader on gpuGravatar bsalomon@google.com2011-06-13
| | | | | | | | Review URL: http://codereview.appspot.com/4576057/ git-svn-id: http://skia.googlecode.com/svn/trunk@1575 2bbb7eff-a529-9590-31e7-b0007b416f81
* Updates to the Android SampleAppGravatar djsollen@google.com2011-06-13
| | | | | | | http://codereview.appspot.com/4602049/ git-svn-id: http://skia.googlecode.com/svn/trunk@1567 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make linux sample app work on my laptop. Reviewed at ↵Gravatar Scroggo2011-06-08
| | | | | | http://codereview.appspot.com/4568050/ git-svn-id: http://skia.googlecode.com/svn/trunk@1539 2bbb7eff-a529-9590-31e7-b0007b416f81
* Correction of texture domain calculation. ↵Gravatar twiz@google.com2011-06-02
| | | | | | Review=http://codereview.appspot.com/4517126 git-svn-id: http://skia.googlecode.com/svn/trunk@1483 2bbb7eff-a529-9590-31e7-b0007b416f81
* Added code to enable the pipe module to record to a fileGravatar yangsu@google.com2011-06-01
| | | | | | | http://codereview.appspot.com/4564052/ git-svn-id: http://skia.googlecode.com/svn/trunk@1469 2bbb7eff-a529-9590-31e7-b0007b416f81
* Added 3 new sample tests. http://codereview.appspot.com/4527092/Gravatar yangsu@google.com2011-06-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1464 2bbb7eff-a529-9590-31e7-b0007b416f81
* update to SampleViewGravatar reed@google.com2011-06-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1460 2bbb7eff-a529-9590-31e7-b0007b416f81
* inherit from SampleViewGravatar reed@google.com2011-06-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1459 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove unnecessary call to unlock.Gravatar Scroggo2011-05-31
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1451 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix memory leaksGravatar reed@google.com2011-05-31
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1448 2bbb7eff-a529-9590-31e7-b0007b416f81
* Show fatbits mode in openGL. http://codereview.appspot.com/4515141/Gravatar Scroggo2011-05-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1426 2bbb7eff-a529-9590-31e7-b0007b416f81
* addGravatar reed@google.com2011-05-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1422 2bbb7eff-a529-9590-31e7-b0007b416f81
* inherit from SampleViewGravatar reed@google.com2011-05-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1421 2bbb7eff-a529-9590-31e7-b0007b416f81
* Grab-bag of memory fixes. SkFlatMatrix::Flatten had the same issue asGravatar senorblanco@chromium.org2011-05-24
| | | | | | | | | | | 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
* add cross-process option to gpipeGravatar reed@google.com2011-05-23
| | | | | | | | add unittests for reader32 and writer32 git-svn-id: http://skia.googlecode.com/svn/trunk@1397 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add dual source blending support for proper blending with coverage.Gravatar bsalomon@google.com2011-05-20
| | | | | | | | Review URL: http://codereview.appspot.com/4535088/ git-svn-id: http://skia.googlecode.com/svn/trunk@1390 2bbb7eff-a529-9590-31e7-b0007b416f81
* The plain Makefile was using -Wall, but the gyp build wasn't. This CL turns onGravatar senorblanco@chromium.org2011-05-19
| | | | | | | | | | | | | | | | | | | -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
* Plug a leak in SampleShaderTest.Gravatar senorblanco@chromium.org2011-05-19
| | | | | | | | Review URL: http://codereview.appspot.com/4517086/ git-svn-id: http://skia.googlecode.com/svn/trunk@1384 2bbb7eff-a529-9590-31e7-b0007b416f81
* show consistent timings between debug and releaseGravatar reed@google.com2011-05-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1370 2bbb7eff-a529-9590-31e7-b0007b416f81
* lockPixels before looking at them in ZoomerGravatar reed@google.com2011-05-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1363 2bbb7eff-a529-9590-31e7-b0007b416f81
* checkpoint for 8->5 bit reductionGravatar reed@google.com2011-05-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1362 2bbb7eff-a529-9590-31e7-b0007b416f81
* code style, inherit from SampleViewGravatar reed@google.com2011-05-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1361 2bbb7eff-a529-9590-31e7-b0007b416f81
* add 'h' to tri-toggle font hintingGravatar reed@google.com2011-05-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1360 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adding a test to sampleapp for texture domainGravatar junov@google.com2011-05-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1347 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix uninitialized varGravatar reed@google.com2011-05-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1345 2bbb7eff-a529-9590-31e7-b0007b416f81
* add 'n' to tri-toggle bitmap-filter (LERP) on/off/neutralGravatar reed@google.com2011-05-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1344 2bbb7eff-a529-9590-31e7-b0007b416f81
* add Convexity enum to SkPathGravatar reed@google.com2011-05-15
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1324 2bbb7eff-a529-9590-31e7-b0007b416f81
* add 'p' to toggle on/off testing the pipeGravatar reed@google.com2011-05-12
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1317 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add color filters to gpu path.Gravatar Scroggo2011-05-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1297 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove some dead code in pipesGravatar reed@google.com2011-05-11
| | | | | | | | | inherit from SampleView for more samples add L key to toggle using SkGPipe git-svn-id: http://skia.googlecode.com/svn/trunk@1296 2bbb7eff-a529-9590-31e7-b0007b416f81
* addGravatar reed@google.com2011-05-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1260 2bbb7eff-a529-9590-31e7-b0007b416f81
* inherit from SampleViewGravatar reed@google.com2011-05-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1255 2bbb7eff-a529-9590-31e7-b0007b416f81
* disable experimental TEST_GPIPEGravatar reed@google.com2011-05-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1253 2bbb7eff-a529-9590-31e7-b0007b416f81
* update to SampleViewGravatar reed@google.com2011-05-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1252 2bbb7eff-a529-9590-31e7-b0007b416f81
* switch to inheriting from SampleViewGravatar mike@reedtribe.org2011-05-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1249 2bbb7eff-a529-9590-31e7-b0007b416f81
* new samplesGravatar reed@google.com2011-05-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1239 2bbb7eff-a529-9590-31e7-b0007b416f81
* update pipe testGravatar reed@google.com2011-05-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1238 2bbb7eff-a529-9590-31e7-b0007b416f81
* add debugging test for building SkDescriptorGravatar reed@google.com2011-05-04
| | | | | | | | update some samples git-svn-id: http://skia.googlecode.com/svn/trunk@1237 2bbb7eff-a529-9590-31e7-b0007b416f81