aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleApp.cpp
Commit message (Collapse)AuthorAge
...
* Remove GrContext.h dependence on GrGpu.hGravatar bsalomon@google.com2011-05-02
| | | | | | | | Review URL: http://codereview.appspot.com/4433096/ git-svn-id: http://skia.googlecode.com/svn/trunk@1227 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix compileGravatar reed@google.com2011-05-02
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1222 2bbb7eff-a529-9590-31e7-b0007b416f81
* add typefacecacheGravatar reed@google.com2011-05-02
| | | | | | | | | speedup lcd blits clean up some samples git-svn-id: http://skia.googlecode.com/svn/trunk@1220 2bbb7eff-a529-9590-31e7-b0007b416f81
* move end-timer for FPS to afterChildren, so we will have flushed openglGravatar reed@google.com2011-04-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1170 2bbb7eff-a529-9590-31e7-b0007b416f81
* migrate some samples over to SampleView, for FPS measurementsGravatar reed@google.com2011-04-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1166 2bbb7eff-a529-9590-31e7-b0007b416f81
* add 'f' toggle to trigger timer for sample. Must subclass SampleView insteadGravatar mike@reedtribe.org2011-04-22
| | | | | | | | of SkView to opt-in. Then override onDrawContent() and optionally onDrawBackground. git-svn-id: http://skia.googlecode.com/svn/trunk@1165 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix warningsGravatar reed@google.com2011-04-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1129 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix drawfilter to match new apiGravatar mike@reedtribe.org2011-04-08
| | | | | | | | enlarge default 'z' fatbits view git-svn-id: http://skia.googlecode.com/svn/trunk@1080 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix dangling ptr when GrRenderTarget outlives its GrTexture representationGravatar bsalomon@google.com2011-04-05
| | | | | | | | | | | | | | Move management of fRenderTarget ptr from GL texture class to base class Minor: Remove redundant GrContext-per-frame debug code in SampleApp.cpp Add GrTexture.cpp to legacy VS2010 vcxproj Review URL: http://codereview.appspot.com/4352051/ git-svn-id: http://skia.googlecode.com/svn/trunk@1061 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adds read pixels to GrTexture and GrRenderTargetGravatar bsalomon@google.com2011-04-05
| | | | | | | | | Adds SkGrRenderTargetPixelRef for SkBitmaps that are backed by RTs that aren't textures. Adds onReadPixels implementations for SkGr pixel ref types git-svn-id: http://skia.googlecode.com/svn/trunk@1056 2bbb7eff-a529-9590-31e7-b0007b416f81
* add toggle keys:Gravatar reed@google.com2011-04-05
| | | | | | | | | | 'x' -- flip around X axis 'y' -- flip around Y axis 'b' -- toggle between normal, forced-on and forced-off antialiasing git-svn-id: http://skia.googlecode.com/svn/trunk@1054 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GrResource base class for ibs, texs, vbs, etc.Gravatar bsalomon@google.com2011-03-30
| | | | | | | | | | Add lostContext() to GrContext. Review URL: http://codereview.appspot.com/4328044/ git-svn-id: http://skia.googlecode.com/svn/trunk@1026 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix ref leak on GrGpu.Gravatar bsalomon@google.com2011-03-29
| | | | | | | | Review URL: http://codereview.appspot.com/4323043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1015 2bbb7eff-a529-9590-31e7-b0007b416f81
* Move zoomer into SampleAppGravatar Scroggo2011-03-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1002 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add a 'fatbits' mode to unix sample app.Gravatar scroggo2011-03-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@978 2bbb7eff-a529-9590-31e7-b0007b416f81
* allow window-subclass to handle dispatching click events (for resize)Gravatar mike@reedtribe.org2011-03-21
| | | | | | | | add drag tracking to Draw git-svn-id: http://skia.googlecode.com/svn/trunk@967 2bbb7eff-a529-9590-31e7-b0007b416f81
* add flingGravatar reed@google.com2011-03-16
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@946 2bbb7eff-a529-9590-31e7-b0007b416f81
* Correction of Windows SampleApp build break introduced by r925. Gravatar twiz@google.com2011-03-14
| | | | | | | | | | (http://code.google.com/p/skia/source/detail?r=925) Issue: http://codereview.appspot.com/4286053/ git-svn-id: http://skia.googlecode.com/svn/trunk@933 2bbb7eff-a529-9590-31e7-b0007b416f81
* add tristate toggle 'l' for lcd text drawingGravatar reed@google.com2011-03-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@925 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix warnings of SkScalar -> int conversions, by using SkScalarRound()Gravatar reed@google.com2011-03-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@921 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove offscreen GL support from SampleApp and SkOSWindow. This never worked ↵Gravatar bsalomon@google.com2011-03-10
| | | | | | anywhere but Mac and it doesn't work there anymore. git-svn-id: http://skia.googlecode.com/svn/trunk@918 2bbb7eff-a529-9590-31e7-b0007b416f81
* add 'c' command, which toggles a semi-complex clip (the pink is what has beenGravatar reed@google.com2011-02-10
| | | | | | | | clipped out). git-svn-id: http://skia.googlecode.com/svn/trunk@781 2bbb7eff-a529-9590-31e7-b0007b416f81
* Rev the GrContext interface. Context has draw* functions that take a new ↵Gravatar bsalomon@google.com2011-01-21
| | | | | | | | | | | GrPaint object. Removed many of the lower-level GrGpu function call-throughs on context. Remove unused/unsupported point size (we don't draw non-hairline points using GL points). Change current* getter functions to get* for consistency. Fix bounds when drawing inverse-filled paths. git-svn-id: http://skia.googlecode.com/svn/trunk@718 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove notion of default rendertarget. This doesn't map well to usage ↵Gravatar bsalomon@google.com2011-01-18
| | | | | | patterns outside sample app. Make binding between SkGpuDevice and a GrRenderTarget more explicit. Create method on GrContext to wrap the current target in the 3D API with a GrRenderTarget. git-svn-id: http://skia.googlecode.com/svn/trunk@706 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make SampleApp build on Win32 (still requires glew, this needs to be fixed)Gravatar bsalomon@google.com2011-01-05
| | | | | | | | In fbo test funciton set min filter to nearest (for systems that don't support rendering to level of a texture that isn't mip map complete.) Add a lot more sample slides to the win32 build Fix texture red/blue color swap on windows. git-svn-id: http://skia.googlecode.com/svn/trunk@677 2bbb7eff-a529-9590-31e7-b0007b416f81
* add gpu backend (not hooked up yet)Gravatar reed@google.com2010-12-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@649 2bbb7eff-a529-9590-31e7-b0007b416f81
* merge with changes for GPU backendGravatar reed@android.com2010-12-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@637 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix matrix use in coretext fonthostGravatar reed@android.com2010-07-22
| | | | | | | | update gm images to new baseline git-svn-id: http://skia.googlecode.com/svn/trunk@590 2bbb7eff-a529-9590-31e7-b0007b416f81
* update windows portGravatar reed@android.com2009-12-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@461 2bbb7eff-a529-9590-31e7-b0007b416f81
* outset the bounds if we're in hairline before quick-reject in SkDraw.cppGravatar reed@android.com2009-11-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@445 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SampleCode::GetAnimTime() so slides go through a central location forGravatar reed@android.com2009-11-23
| | | | | | | | | animation timing. This allows us to "freeze" time in order to do things like draw multiple times to test clipping. git-svn-id: http://skia.googlecode.com/svn/trunk@444 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix winding bug in lineclipperGravatar reed@android.com2009-11-23
| | | | | | | | | expose path.dump() all the time UP arrow now toggles a grid of clip rects in sample app git-svn-id: http://skia.googlecode.com/svn/trunk@443 2bbb7eff-a529-9590-31e7-b0007b416f81
* default to not showing the (slow) overview slide: hit DELETE to invokeGravatar reed@android.com2009-11-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@417 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SkEvalCubicIntervalGravatar reed@android.com2009-11-03
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@416 2bbb7eff-a529-9590-31e7-b0007b416f81
* add OVerView slide to samplecodeGravatar reed@android.com2009-11-03
| | | | | | | | change inline functions in SkColorPriv.h to static inline git-svn-id: http://skia.googlecode.com/svn/trunk@415 2bbb7eff-a529-9590-31e7-b0007b416f81
* add 'r' (rotate) 's' (scale) options to SampleApp to test those matrix ops onGravatar reed@android.com2009-08-14
| | | | | | | | | | | | all slides add beforeChild/afterChild methods for parents to wack the canvas before/after it draws. These are called after the std child-view translate and clip, unlike beforeChildren/afterChildren git-svn-id: http://skia.googlecode.com/svn/trunk@324 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add SkChunkAlloc::unalloc() to undo the last allocation, useful if the ↵Gravatar reed@android.com2009-03-30
| | | | | | | | | | | caller wants to treat the allocats like temp memory (see PictureRecord) Call unalloc if a paint (or other cached object) is already in our list for picture recording Use correct CompareType macro in SkCanvas::quickReject git-svn-id: http://skia.googlecode.com/svn/trunk@138 2bbb7eff-a529-9590-31e7-b0007b416f81
* migrate more legacy unittests into tests/Gravatar reed@android.com2009-03-07
| | | | | | | | SkParse yet to be cleaned up git-svn-id: http://skia.googlecode.com/svn/trunk@113 2bbb7eff-a529-9590-31e7-b0007b416f81
* separate image encode and decodeGravatar reed@android.com2009-01-06
| | | | | | | | remove obsolete build-flag for encode git-svn-id: http://skia.googlecode.com/svn/trunk@56 2bbb7eff-a529-9590-31e7-b0007b416f81
* add mac image-encodingGravatar reed@android.com2008-12-23
| | | | | | | | add 'f' to sampleapp, which writes a png file for the currnet screen git-svn-id: http://skia.googlecode.com/svn/trunk@47 2bbb7eff-a529-9590-31e7-b0007b416f81
* first cut at event-based test appGravatar reed@android.com2008-12-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@37 2bbb7eff-a529-9590-31e7-b0007b416f81
* grab from latest androidGravatar reed@android.com2008-12-17
git-svn-id: http://skia.googlecode.com/svn/trunk@27 2bbb7eff-a529-9590-31e7-b0007b416f81