aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
Commit message (Collapse)AuthorAge
...
* Fix Two Pt Radial when circles are concentric.Gravatar bsalomon@google.com2011-04-06
| | | | | | | | Review URL: http://codereview.appspot.com/4368047/ git-svn-id: http://skia.googlecode.com/svn/trunk@1069 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
* Fix crash when codec not found for SampleDecodeGravatar bsalomon@google.com2011-04-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1036 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 SkCreateTypefaceFromCTFont() to create a typeface directly from a CTFontRefGravatar reed@google.com2011-03-22
| | | | | | | | | Compute the actual style from the returned CTFontRef, rather than assuming the request will always be met. git-svn-id: http://skia.googlecode.com/svn/trunk@979 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
* add more styles to showGravatar mike@reedtribe.org2011-03-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@976 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 draw sampleGravatar mike@reedtribe.org2011-03-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@966 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix warnings (local storage too small, int->scalar)Gravatar reed@google.com2011-03-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@957 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
* Add a sample application that runs on unix.Gravatar scroggo2011-03-15
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@938 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
* Add complex clip gm sample and cleanup unused headers/code in SampleComplexClipGravatar bsalomon@google.com2011-03-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@919 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
* check-point for kLCD16_Format mask supportGravatar reed@google.com2011-03-10
| | | | | | | | disabled for now in SkPaint.cpp (for further testing) git-svn-id: http://skia.googlecode.com/svn/trunk@917 2bbb7eff-a529-9590-31e7-b0007b416f81
* add setXYWH to rectsGravatar reed@google.com2011-03-03
| | | | | | | | new tests for circles git-svn-id: http://skia.googlecode.com/svn/trunk@877 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix inverse scanconversion -- be sure to keep our calls to SkBlitter in scanlineGravatar reed@google.com2011-03-02
| | | | | | | | order (top to bottom), since the region blitter explicitly requires this. git-svn-id: http://skia.googlecode.com/svn/trunk@876 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sample that exercises complex clipping variations.Gravatar bsalomon@google.com2011-03-02
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@875 2bbb7eff-a529-9590-31e7-b0007b416f81
* #ifdef protect win specific code (e.g. LOGFONT)Gravatar reed@google.com2011-03-02
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@874 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove obsolete generateLineHeightGravatar reed@google.com2011-03-01
| | | | | | | | | | | use canonical lfHeight so we can compare different LOGFONTs and map equivalent fonts (except for height) to the same typeface. To do this I add fSize to scale the output from GDI to get from the canonical int textSize to the actual fractional size. git-svn-id: http://skia.googlecode.com/svn/trunk@871 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix bool bug so we can multisample nowGravatar reed@google.com2011-02-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@851 2bbb7eff-a529-9590-31e7-b0007b416f81
* use new high-quality blur in samplesGravatar reed@google.com2011-02-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@819 2bbb7eff-a529-9590-31e7-b0007b416f81
* add test for pointsGravatar reed@google.com2011-02-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@806 2bbb7eff-a529-9590-31e7-b0007b416f81
* add test for poly2polyGravatar reed@google.com2011-02-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@805 2bbb7eff-a529-9590-31e7-b0007b416f81
* add textGravatar reed@google.com2011-02-16
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@798 2bbb7eff-a529-9590-31e7-b0007b416f81
* safeUnref() -> SkSafeUnref()Gravatar bsalomon@google.com2011-02-13
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@785 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
* safeunref method to SkSafeUnref.Gravatar bsalomon@google.com2011-02-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@777 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove SkRefCnt safeRef() and safeUnref(), and replace the call-sites withGravatar reed@google.com2011-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SkSafeRef() and SkSafeUnref(). This is basically a bug waiting to happen. An optimizing compiler can remove checks for null on "this" if it chooses. However, SkRefCnt::safeRef() relies on precisely this check... void SkRefCnt::safeRef() { if (this) { this->ref(); } } Since a compiler might skip the if-clause, it breaks the intention of this method, hence its removal. static inline void SkSafeRef(SkRefCnt* obj) { if (obj) { obj->ref(); } } This form is not ignored by an optimizing compile, so we use it instead. git-svn-id: http://skia.googlecode.com/svn/trunk@762 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add shaded text sample and gm test.Gravatar bsalomon@google.com2011-01-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@725 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
* add dithering to 32bit linear gradientsGravatar reed@google.com2011-01-13
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@691 2bbb7eff-a529-9590-31e7-b0007b416f81
* git-svn-id: http://skia.googlecode.com/svn/trunk@685 ↵Gravatar reed@google.com2011-01-11
| | | | 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
* updatesGravatar reed@android.com2010-05-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@567 2bbb7eff-a529-9590-31e7-b0007b416f81
* updatesGravatar reed@android.com2010-04-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@558 2bbb7eff-a529-9590-31e7-b0007b416f81
* add unittests for map()Gravatar reed@android.com2010-02-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@512 2bbb7eff-a529-9590-31e7-b0007b416f81
* add localToGlobal and parentsGravatar reed@android.com2010-02-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@511 2bbb7eff-a529-9590-31e7-b0007b416f81
* add tests for translate, concat, scaleGravatar reed@android.com2010-02-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@510 2bbb7eff-a529-9590-31e7-b0007b416f81