aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SampleApp.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* skia: add ability to load command_buffer_gles2hendrikw2015-08-271-1/+26
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/1306823003
* Style Change: NULL->nullptrhalcanary2015-08-271-73/+73
| | | | | | DOCS_PREVIEW= https://skia.org/?cl=1316233002 Review URL: https://codereview.chromium.org/1316233002
* Style Change: SkNEW->new; SkDELETE->deletehalcanary2015-08-261-5/+4
| | | | | | DOCS_PREVIEW= https://skia.org/?cl=1316123003 Review URL: https://codereview.chromium.org/1316123003
* Use static_assert instead of SK_COMPILE_ASSERT.bungeman2015-08-201-5/+5
| | | | | | | Now that static_assert is allowed, there is no need to use a non- standard compile time assertion Review URL: https://codereview.chromium.org/1306443004
* private iterator to visit all resource cache entriesreed2015-08-191-0/+9
| | | | | | | BUG=skia: TBR= Review URL: https://codereview.chromium.org/1271033002
* remove SkDeferredCanvasreed2015-08-191-19/+1
| | | | | | | | Waiting a day or so to see if the blink-removal of SkDeferredCanvas sticks BUG=skia: Review URL: https://codereview.chromium.org/1269093002
* support both box and circle lcdreed2015-08-151-10/+11
| | | | | | | BUG=skia: TBR= Review URL: https://codereview.chromium.org/1292943003
* show LCD on max fat-zoomreed2015-08-151-89/+161
| | | | | | | BUG=skia: TBR= Review URL: https://codereview.chromium.org/1295483003
* Add high resolution WallTimer to SampleAppjvanverth2015-08-111-6/+6
| | | | | | Gives better than 1 ms results when timing framerate. Review URL: https://codereview.chromium.org/1288473002
* SkPDF: allow PDF module to be disabled in DM and SampleApphalcanary2015-08-111-0/+2
| | | | | | | | | | | To disable PDF: GYP_DEFINES='skia_pdf=0' bin/sync-and-gyp ninja -C out/Debug dm SampleApp When disabled, SkDocument::CreatePDF() always returns NULL. Review URL: https://codereview.chromium.org/1279123007
* - allow for stepping through a picture with 'n' and 'p'reed2015-08-041-16/+14
| | | | | | | | | - save current slide as .skp with 'K' BUG=skia: TBR= Review URL: https://codereview.chromium.org/1272063002
* Generate platform specific fontmgr gm.caryclark2015-07-201-0/+1
| | | | | | | | | | | | | | | The gm output on different font platforms is so different that comparing images in Gold has little value. Separate the images by appending platform information to the gm name to group somewhat similar images together. Note that this does not attempt to make sure that all images generated by Gold are nearly pixel identical; it only reduces the number of nonsensical comparisons. R=bungeman@google.com Review URL: https://codereview.chromium.org/1245643002
* Revert[2] of guard to remove DrawBitmapRectFlagsreed2015-07-171-1/+1
| | | | | | | | | This reverts commit 91110195a2eee170c11885da9d16f94b00a39f87. BUG=skia: TBR= Review URL: https://codereview.chromium.org/1240753003
* Revert of guard to remove DrawBitmapRectFlags (patchset #1 id:1 of ↵scroggo2015-07-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | https://codereview.chromium.org/1235393003/) Reason for revert: breaking android framework build Original issue's description: > guard to remove DrawBitmapRectFlags > > BUG=skia: > > Committed: https://skia.googlesource.com/skia/+/6fb0b6779e40ce05c20cf279f0ecff31fa3cd60d TBR=fmalita@chromium.org,djsollen@google.com,reed@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/1230823007
* guard to remove DrawBitmapRectFlagsreed2015-07-161-1/+1
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/1235393003
* Fix up -Winconsistent-missing-overridemtklein2015-07-131-9/+7
| | | | | | | | | | | | | | (and a couple presubmit fixes) This allows us to turn back on -Werror for LLVM coverage builds, and more generally supports building with Clang 3.7. No public API changes. TBR=reed@google.com BUG=skia: Review URL: https://codereview.chromium.org/1232463006
* Use SkPaintFilterCanvas for SampleApp paint filteringfmalita2015-06-151-21/+27
| | | | | | | | | (one less SkDrawFilter user) BUG=skia:3587 R=robertphillips@google.com,reed@google.com Review URL: https://codereview.chromium.org/1177323002
* Implement support for mixed sampled render targetsvbuzinov2015-06-121-2/+2
| | | | | | | | | | | | | | | | | | Adds a new FBO type kStencil_MSFBOType that is selected whenever NV_framebuffer_mixed_samples extension is available. In this new FBO type a non-msaa color buffer is created with a multisampled stencil buffer attachment. Replaces numSamples() with separate numColorSamples and numStencilSamples methods in RenderTarget. In mixed samples mode non-MSAA codepaths are used to draw simple shapes, while NVPR-rendered paths and text are rendered with a multisampled stencil. BUG=skia:3177 Review URL: https://codereview.chromium.org/1001503002
* Revert of Revert of stop calling SkScalarDiv (patchset #1 id:1 of ↵reed2015-05-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://codereview.chromium.org/1138263002/) Reason for revert: android patched, blink has rolled Original issue's description: > Revert of stop calling SkScalarDiv (patchset #4 id:60001 of https://codereview.chromium.org/1135053002/) > > Reason for revert: > need to wait for Blink roll (and patch android) > > Original issue's description: > > stop calling SkScalarDiv > > > > BUG=skia: > > TBR= > > > > Committed: https://skia.googlesource.com/skia/+/67d71c898249a7af3523b16c6a69895a63bfae0a > > TBR= > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=skia: > > Committed: https://skia.googlesource.com/skia/+/2629697933b5cc975e45d2a45c48f803fc6cbcec TBR= NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/1135693003
* Revert of stop calling SkScalarDiv (patchset #4 id:60001 of ↵reed2015-05-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | https://codereview.chromium.org/1135053002/) Reason for revert: need to wait for Blink roll (and patch android) Original issue's description: > stop calling SkScalarDiv > > BUG=skia: > TBR= > > Committed: https://skia.googlesource.com/skia/+/67d71c898249a7af3523b16c6a69895a63bfae0a TBR= NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/1138263002
* stop calling SkScalarDivreed2015-05-121-3/+3
| | | | | | | BUG=skia: TBR= Review URL: https://codereview.chromium.org/1135053002
* add DeferredCanvas mode to SampleAppreed2015-05-051-10/+24
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/1129603002
* C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla}mtklein2015-03-251-4/+4
| | | | | | | | | NOPRESUBMIT=true BUG=skia: DOCS_PREVIEW= https://skia.org/?cl=1037793002 Review URL: https://codereview.chromium.org/1037793002
* SkPaint::FilterLevel -> SkFilterQualityreed2015-03-161-26/+26
| | | | | | | | | clone (+rebase) of https://codereview.chromium.org/1009183002/ BUG=skia: TBR=scroggo@google.com Review URL: https://codereview.chromium.org/1014533004
* fuzzer fixescaryclark2015-02-251-0/+4
| | | | | | | | | | | | | | | | | | | Fix path bugs exposed by the path fuzzer. Changes to existing gm and samplecode files defer their calls to construct SkPath objects until the first draw instead of at test initialization. Add an experimental call to SkPath to validate the internal SkPathRef. Fix SkPath::addPoly to set the last moveto after adding a close verb. Fix stroke to handle failures when computing the unit normal. Add a unit test for the unit normal failure. R=reed@google.com Review URL: https://codereview.chromium.org/953383002
* remove dead code from sampleapp, trim bad assertsreed2015-02-211-116/+30
| | | | | | | BUG=skia: TBR= Review URL: https://codereview.chromium.org/948693002
* Pass Rendertarget into context.joshualitt2015-02-181-1/+0
| | | | | | | | Adding Jim for text context stuff, and Steven for image blur stuff. BUG=skia: Review URL: https://codereview.chromium.org/939623005
* remove unneeded prerollreed2015-02-151-4/+0
| | | | | | | BUG=skia: TBR=robertphilips Review URL: https://codereview.chromium.org/927443006
* Support multiple null GL contexts on a thread.bsalomon2015-02-111-18/+1
| | | | | | | | This has the side effect of requiring SkNullGLContext to use the null GL interface. It exposes SkNullGLContext and also removes null context support from SampleApp. Review URL: https://codereview.chromium.org/916733002
* add SkAnimTimer, SPACE = pause/resume, ESP = stopreed2015-02-021-73/+18
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/894083003
* allow GMs to animatereed2015-02-011-0/+24
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/888283002
* First cut at cleaning up Sergio's example code and moving some common code ↵caryclark2015-01-301-13/+1
| | | | | | | | | | to SkWindow. Eventually, this will be moved to be a peer of SampleApp so it is compiled by the bots to avoid future bit rot. Also ignore XCode auto-generated flag in CommandLineFlags, and remove the unused multiple-example part. Review URL: https://codereview.chromium.org/890873003
* initial preroll apireed2015-01-251-0/+4
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/855473002
* Fix SampleApp picture-mode transform.fmalita2015-01-231-0/+1
| | | | | | | | The multi-picture-draw path should not ignore the inherited transform. R=reed@google.com,robertphillips@google.com Review URL: https://codereview.chromium.org/867303002
* delete the dreaded TransitionViewreed2015-01-131-11/+4
| | | | | | | BUG=skia: TBR= Review URL: https://codereview.chromium.org/850843002
* Fix up all the easy virtual ... SK_OVERRIDE cases.mtklein2015-01-091-3/+3
| | | | | | | | | | | | This fixes every case where virtual and SK_OVERRIDE were on the same line, which should be the bulk of cases. We'll have to manually clean up the rest over time unless I level up in regexes. for f in (find . -type f); perl -p -i -e 's/virtual (.*)SK_OVERRIDE/\1SK_OVERRIDE/g' $f; end BUG=skia: Review URL: https://codereview.chromium.org/806653007
* Add sRGB texture support.jvanverth2014-12-221-1/+2
| | | | Review URL: https://codereview.chromium.org/791823003
* tell our grcontext to abandon its backendreed2014-10-301-2/+6
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/692803003
* MultiPictureDraw is taskgroup aware.reed2014-10-291-2/+37
| | | | | | | | SampleApp is multipicturedraw aware. BUG=skia: Review URL: https://codereview.chromium.org/684923002
* fix some bit-rot in the ios port of sampleappreed2014-10-221-0/+1
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/637263004
* use SkDocument to capture pdfs from SampleApp 'e'reed2014-10-081-45/+22
| | | | | | | | BUG=skia: TBR= NOTRY=True Review URL: https://codereview.chromium.org/634293004
* GrContext::copyTexture->GrContext::copySurface.bsalomon2014-10-071-4/+2
| | | | | | | | | | | | Add a flush writes pixel ops flag. Add an explicit flush writes for GrSurface. BUG=skia:2977 Committed: https://skia.googlesource.com/skia/+/cf99b00980b6c9c557e71abf1a7c9f9b21217262 Review URL: https://codereview.chromium.org/622663002
* extra call to flush until brian can figure it outreed2014-10-071-0/+3
| | | | | | | BUG=skia: TBR=bsalomon@google.com Review URL: https://codereview.chromium.org/633643004
* add surfaceprops to SkWindow, and 'D' to toggle distancefieldfontsreed2014-10-061-1/+17
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/631943002
* Revert of GrContext::copyTexture->GrContext::copySurface. Add a flush writes ↵bsalomon2014-10-021-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | pixel ops flag. (patchset #3 id:40001 of https://codereview.chromium.org/622663002/) Reason for revert: Breaking GMs on some bots Original issue's description: > GrContext::copyTexture->GrContext::copySurface. > > Add a flush writes pixel ops flag. > > Add an explicit flush writes for GrSurface. > > BUG=skia:2977 > > Committed: https://skia.googlesource.com/skia/+/cf99b00980b6c9c557e71abf1a7c9f9b21217262 TBR=robertphillips@google.com NOTREECHECKS=true NOTRY=true BUG=skia:2977 Review URL: https://codereview.chromium.org/621073002
* GrContext::copyTexture->GrContext::copySurface.bsalomon2014-10-021-1/+2
| | | | | | | | | | Add a flush writes pixel ops flag. Add an explicit flush writes for GrSurface. BUG=skia:2977 Review URL: https://codereview.chromium.org/622663002
* enable conservative clips for gpudevicereed2014-09-191-0/+6
| | | | | | | | TBR=bsalomon Author: reed@google.com Review URL: https://codereview.chromium.org/587793003
* use surface in SkView/SampleAppreed2014-09-181-8/+5
| | | | | | | | | BUG=skia: R=bsalomon@google.com, robertphillips@google.com Author: reed@google.com Review URL: https://codereview.chromium.org/580073003
* "NULL !=" = NULLbsalomon2014-09-051-2/+2
| | | | | | | | R=reed@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/544233002
* Change SkPicture::draw to playbackrobertphillips2014-09-041-1/+1
| | | | | | | | R=reed@google.com Author: robertphillips@google.com Review URL: https://codereview.chromium.org/540963002