skia2/samplecode
Brian Osman 176c3b2e88 Move expensive initialization to onOnceBeforeDraw
This was being triggered at viewer startup, while initalizing the slide
list (and then again when switching to the slide). Removing it
declutters startup, particularly if you're trying to debug raster
drawing code.

Bug: skia:
Change-Id: If21cdd10b0dbda74f4a845031ae3e33f7305a1d7
Reviewed-on: https://skia-review.googlesource.com/22742
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2017-07-12 20:30:50 +00:00
..
ClockFaceView.cpp delete some dead code in SampleApp 2017-05-31 20:59:39 +00:00
DecodeFile.h remove unneeded code for index8 imagse 2017-07-03 19:07:25 +00:00
GMSampleView.cpp move files out of private, and fix up callers to IWYU 2017-05-16 21:29:03 +00:00
GMSampleView.h Mark overridden destructors with 'override' and remove 'virtual' 2017-03-22 16:06:18 +00:00
OverView.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
OverView.h
PerlinPatch.cpp move perlinenoise2 into effects 2017-05-30 20:15:37 +00:00
Sample2PtRadial.cpp
SampleAAClip.cpp
SampleAAGeometry.cpp SkCanvas: Helpers for draw{Point,Line,Circle} 2017-05-16 12:59:11 +00:00
SampleAARectModes.cpp Use SkBlendMode_Name rather than one-off tables 2017-03-15 16:52:49 +00:00
SampleAARects.cpp
SampleAll.cpp delete some dead code in SampleApp 2017-05-31 20:59:39 +00:00
SampleAndroidShadows.cpp Add tonal color support for shadows. 2017-06-09 17:18:58 +00:00
SampleAnimatedText.cpp Revert "Revert "Reland: Remove SkLights include from SkCanvas.h"" 2017-05-03 19:17:11 +00:00
SampleAnimator.cpp SkFontData to use smart pointers. 2016-09-16 06:24:20 -07:00
SampleAnimBlur.cpp
SampleApp.cpp add srgb gamma colorfilters 2017-07-05 20:16:27 +00:00
SampleApp.h Add TiledDrawScheduler so we can concurrently draw and enque 2017-06-05 19:29:57 +00:00
SampleArc.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleAtlas.cpp remove xfermode from public api 2016-10-28 20:06:17 +00:00
SampleBigBlur.cpp
SampleBigGradient.cpp impl clipping for GDI raster-handle 2017-01-12 20:21:39 +00:00
SampleBitmapRect.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleBlur.cpp remove unneeded code for index8 imagse 2017-07-03 19:07:25 +00:00
SampleCamera.cpp
SampleChart.cpp hide trivial helpers on canvas 2017-02-22 19:41:04 +00:00
SampleCircle.cpp
SampleClamp.cpp
SampleClip.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleClipDrawMatch.cpp hide trivial helpers on canvas 2017-02-22 19:41:04 +00:00
SampleClock.cpp Add samples to Viewer. 2016-06-16 09:52:35 -07:00
SampleCode.cpp Misc batch->op cleanup Part 1 of 2 2016-12-21 16:45:40 +00:00
SampleCode.h
SampleColorFilter.cpp remove xfermode from public api 2016-10-28 20:06:17 +00:00
SampleComplexClip.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleConcavePaths.cpp Revert "Revert "make it illegal to include SkXfermode.h"" 2016-11-23 22:17:17 +00:00
SampleDash.cpp
SampleDegenerateTwoPtRadials.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleDither.cpp Revert "Revert "Delete copyTo(Allocator), hide copyTo() behind flag"" 2017-04-28 15:49:04 +00:00
SampleEffects.cpp hide emboss from everyone (except android for now) 2016-12-07 19:13:32 +00:00
SampleEmboss.cpp Revert "Revert "make it illegal to include SkXfermode.h"" 2016-11-23 22:17:17 +00:00
SampleFatBits.cpp SkCanvas: Helpers for draw{Point,Line,Circle} 2017-05-16 12:59:11 +00:00
SampleFillType.cpp
SampleFilter2.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleFilterFuzz.cpp remove unused mode parameter from SkMergeImageFilter 2017-06-19 14:01:56 +00:00
SampleFilterQuality.cpp Move expensive initialization to onOnceBeforeDraw 2017-07-12 20:30:50 +00:00
SampleFontCache.cpp
SampleFontScalerTest.cpp
SampleFuzz.cpp Revert "Revert "make it illegal to include SkXfermode.h"" 2016-11-23 22:17:17 +00:00
SampleGradients.cpp
SampleHairCurves.cpp
SampleHairline.cpp SkCanvas: Helpers for draw{Point,Line,Circle} 2017-05-16 12:59:11 +00:00
SampleHairModes.cpp Use SkBlendMode_Name rather than one-off tables 2017-03-15 16:52:49 +00:00
SampleHT.cpp
SampleIdentityScale.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleLayerMask.cpp Revert "Revert "Reland: Remove SkLights include from SkCanvas.h"" 2017-05-03 19:17:11 +00:00
SampleLayers.cpp Initial clip-mask-layer support 2017-05-01 14:07:10 +00:00
SampleLCD.cpp
SampleLighting.cpp chmod -x *.cpp *.h 2016-10-27 16:41:14 +00:00
SampleLines.cpp Revert "Revert "make it illegal to include SkXfermode.h"" 2016-11-23 22:17:17 +00:00
SampleLitAtlas.cpp bench, samples, etc: s/SkAutoTUnref/sk_sp/ 2016-11-07 15:17:32 +00:00
SampleLua.cpp
SampleManyRects.cpp hide trivial helpers on canvas 2017-02-22 19:41:04 +00:00
SampleMeasure.cpp
SampleMegaStroke.cpp
SamplePatch.cpp move vertex-mode enum into SkVertices 2017-04-03 15:50:16 +00:00
SamplePath.cpp add fatstroke sample 2016-12-15 16:28:57 +00:00
SamplePathClip.cpp SkCanvas: Helpers for draw{Point,Line,Circle} 2017-05-16 12:59:11 +00:00
SamplePathEffects.cpp begin to hide details of SkPathEffect 2017-02-26 18:36:11 +00:00
SamplePathFill.cpp stop using SkScalarMul 2017-02-14 19:45:24 +00:00
SamplePathFinder.cpp Add a simple tool for isolating a path from an SKP 2017-03-27 19:19:19 +00:00
SamplePathFuzz.cpp Revert[2] "Change SkCanvas to *not* inherit from SkRefCnt" 2016-11-13 18:31:13 +00:00
SamplePathOverstroke.cpp
SamplePathText.cpp Fix WavyPathText sample 2017-06-21 05:32:30 +00:00
SamplePdfFileViewer.cpp Revert "Revert "make it illegal to include SkXfermode.h"" 2016-11-23 22:17:17 +00:00
SamplePictFile.cpp Restore SampleApp picture drawing 2017-05-30 15:59:19 +00:00
SamplePoints.cpp Revert "Revert "make it illegal to include SkXfermode.h"" 2016-11-23 22:17:17 +00:00
SamplePolyToPoly.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleQuadStroker.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleRectanizer.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleRegion.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleRepeatTile.cpp
SampleShaders.cpp hide trivial helpers on canvas 2017-02-22 19:41:04 +00:00
SampleShaderText.cpp
SampleShadowColor.cpp Add tonal color support for shadows. 2017-06-09 17:18:58 +00:00
SampleShadowReference.cpp Add Material Design shadow reference sample 2017-05-23 18:12:15 +00:00
SampleShadowUtils.cpp Revert "Revert "Delete SkGaussianEdgeShader"" 2017-05-31 14:52:12 +00:00
SampleShip.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleSlides.cpp move vertex-mode enum into SkVertices 2017-04-03 15:50:16 +00:00
SampleStringArt.cpp
SampleStrokePath.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleStrokeRect.cpp
SampleSubpixelTranslate.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleSVGFile.cpp Mark overridden destructors with 'override' and remove 'virtual' 2017-03-22 16:06:18 +00:00
SampleSVGPong.cpp [SVGDom] Expose intrinsic size info 2016-09-14 12:04:30 -07:00
SampleText.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleTextAlpha.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleTextBox.cpp Revert "Revert "make it illegal to include SkXfermode.h"" 2016-11-23 22:17:17 +00:00
SampleTextOnPath.cpp
SampleTextureDomain.cpp hide lockpixels api behind flag 2017-04-17 15:33:36 +00:00
SampleTiling.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleUnpremul.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleVertices.cpp hide lockpixels api behind flag 2017-04-17 15:33:36 +00:00
SampleWritePixels.cpp
SampleXfer.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
SampleXfermodesBlur.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
vertexdump.cpp