aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
Commit message (Collapse)AuthorAge
* if SK_USE_COLOR_LUMINANCE is defined, then we store 2 bits of each componentGravatar reed@google.com2012-02-13
| | | | | | | | | to create a per-component-luminance value for the fonthost to use. Only supported on Mac at the moment (but still disabled by default) git-svn-id: http://skia.googlecode.com/svn/trunk@3180 2bbb7eff-a529-9590-31e7-b0007b416f81
* Prevent the memset16 ARM opt from failing when count is 0.Gravatar djsollen@google.com2012-02-13
| | | | | | Review URL: http://codereview.appspot.com/5639051 git-svn-id: http://skia.googlecode.com/svn/trunk@3173 2bbb7eff-a529-9590-31e7-b0007b416f81
* path effect on a very thin line should not be discardedGravatar bsalomon@google.com2012-02-13
| | | | | | | Review URL: http://codereview.appspot.com/5649069/ git-svn-id: http://skia.googlecode.com/svn/trunk@3171 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use GrGLContextInfo in shader generatorGravatar bsalomon@google.com2012-02-13
| | | | | | | | Review URL: http://codereview.appspot.com/5645083/ git-svn-id: http://skia.googlecode.com/svn/trunk@3170 2bbb7eff-a529-9590-31e7-b0007b416f81
* enable color-luminance in font cache (disabled by default)Gravatar reed@google.com2012-02-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3168 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add copyright and #ifndef / #defineGravatar bsalomon@google.com2012-02-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3167 2bbb7eff-a529-9590-31e7-b0007b416f81
* Move GL-specific source code to make room for D3D back end.Gravatar tomhudson@google.com2012-02-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3165 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix CFBundleIdentifier of SampleAppGravatar epoger@google.com2012-02-10
| | | | | | | | | This allows SampleApp to pick up the following setting to force on LCD font smoothing: defaults write com.googlecode.skia.SampleApp AppleFontSmoothing -int 2 See http://code.google.com/p/skia/issues/detail?id=382 ('make gm results consistent regardless of system LCDtext settings') git-svn-id: http://skia.googlecode.com/svn/trunk@3164 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GrGLContextInfoGravatar bsalomon@google.com2012-02-10
| | | | | | | | Review URL: http://codereview.appspot.com/5653060/ git-svn-id: http://skia.googlecode.com/svn/trunk@3162 2bbb7eff-a529-9590-31e7-b0007b416f81
* Pull GLSL helpers out of GrGLProgram.cppGravatar bsalomon@google.com2012-02-10
| | | | | | | | | Review URL: http://codereview.appspot.com/5652047/ git-svn-id: http://skia.googlecode.com/svn/trunk@3161 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make SkGLContext's FBO creation more robust (allows test apps to run on ↵Gravatar bsalomon@google.com2012-02-09
| | | | | | | | | | Intel GPUs) Review URL: http://codereview.appspot.com/5647059/ git-svn-id: http://skia.googlecode.com/svn/trunk@3157 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add more TT table definitions and create fake enum typedef.Gravatar bungeman@google.com2012-02-07
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3150 2bbb7eff-a529-9590-31e7-b0007b416f81
* Move SkBase64 to utils, allow user defined encoding.Gravatar bungeman@google.com2012-02-07
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3148 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixing backing store access in SkDeferredCanvas.Gravatar junov@chromium.org2012-02-07
| | | | | | | | | | | | Chromium CL required for rolling skia DEPS past this change is posted here: https://chromiumcodereview.appspot.com/9341003/ BUG=http://code.google.com/p/skia/issues/detail?id=475 REVIEW=http://codereview.appspot.com/5626047/ TEST=DeferredCanvas unit test git-svn-id: http://skia.googlecode.com/svn/trunk@3147 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reland 3144 with assertion fix.Gravatar bsalomon@google.com2012-02-07
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3146 2bbb7eff-a529-9590-31e7-b0007b416f81
* revert 3144 Gravatar bsalomon@google.com2012-02-07
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3145 2bbb7eff-a529-9590-31e7-b0007b416f81
* Allow chrome to limit the number of FBO status checksGravatar bsalomon@google.com2012-02-07
| | | | | | Review URL: https://codereview.appspot.com/5635052 git-svn-id: http://skia.googlecode.com/svn/trunk@3144 2bbb7eff-a529-9590-31e7-b0007b416f81
* use macro SkFixedRoundToInt where necessaryGravatar reed@google.com2012-02-06
| | | | | | | | http://codereview.appspot.com/5617047/ git-svn-id: http://skia.googlecode.com/svn/trunk@3142 2bbb7eff-a529-9590-31e7-b0007b416f81
* Removing some dead code in SkDeferredCanvasGravatar junov@chromium.org2012-02-03
| | | | | | | | REVIEW=http://codereview.appspot.com/5620062/ git-svn-id: http://skia.googlecode.com/svn/trunk@3140 2bbb7eff-a529-9590-31e7-b0007b416f81
* Disable optimization of certain bit-shift operations on Visual Studio 2010 onlyGravatar epoger@google.com2012-02-02
| | | | | | | to address http://code.google.com/p/skia/issues/detail?id=472 Review URL: https://codereview.appspot.com/5607058 git-svn-id: http://skia.googlecode.com/svn/trunk@3137 2bbb7eff-a529-9590-31e7-b0007b416f81
* rearrange functions to group clamp, repeat, mirror helpers together.Gravatar reed@google.com2012-02-02
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3135 2bbb7eff-a529-9590-31e7-b0007b416f81
* Open type table definitions.Gravatar bungeman@google.com2012-02-02
| | | | | | | | http://codereview.appspot.com/5577064/ git-svn-id: http://skia.googlecode.com/svn/trunk@3131 2bbb7eff-a529-9590-31e7-b0007b416f81
* Don't change convexity status of a path after a moveToGravatar bsalomon@google.com2012-02-02
| | | | | | | Review URL: http://codereview.appspot.com/5581048/ git-svn-id: http://skia.googlecode.com/svn/trunk@3127 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add dithering to 32b radial gradients. Behind the same #ifdef as ditheredGravatar tomhudson@google.com2012-02-02
| | | | | | | | | | | 32b linear gradients so that we don't impact clients unexpectedly. This commit *will* break GM. http://codereview.appspot.com/5599050/ git-svn-id: http://skia.googlecode.com/svn/trunk@3126 2bbb7eff-a529-9590-31e7-b0007b416f81
* [GPU]: Handle degenerate quads when computing UV matrix from control pointsGravatar bsalomon@google.com2012-01-31
| | | | | | | | Review URL: http://codereview.appspot.com/5602045/ git-svn-id: http://skia.googlecode.com/svn/trunk@3125 2bbb7eff-a529-9590-31e7-b0007b416f81
* When adding a convex shape to a path, mark path as convex if path is ↵Gravatar bsalomon@google.com2012-01-31
| | | | | | | | | | initially degenerate. Review URL: http://codereview.appspot.com/5504073/ git-svn-id: http://skia.googlecode.com/svn/trunk@3124 2bbb7eff-a529-9590-31e7-b0007b416f81
* Roll out r3117 to alleviate ↵Gravatar epoger@google.com2012-01-31
| | | | | | http://code.google.com/p/skia/issues/detail?id=471 ('filltypespersp gm test fails with KERN_PROTECTION_FAILURE on Lion') git-svn-id: http://skia.googlecode.com/svn/trunk@3122 2bbb7eff-a529-9590-31e7-b0007b416f81
* fall through to cross-product if the y-max-baseline returns a degenerate lineGravatar reed@google.com2012-01-31
| | | | | | | | (i.e. maxIndex == minIndex) git-svn-id: http://skia.googlecode.com/svn/trunk@3119 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix degenerate test in convex path renderer Gravatar bsalomon@google.com2012-01-31
| | | | | | | | Review URL: http://codereview.appspot.com/5581058/ git-svn-id: http://skia.googlecode.com/svn/trunk@3118 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove one static initializer in src/gpu/GrGpu.cppGravatar digit@google.com2012-01-31
| | | | | | Review URL: https://codereview.appspot.com/5504073 git-svn-id: http://skia.googlecode.com/svn/trunk@3117 2bbb7eff-a529-9590-31e7-b0007b416f81
* handle multiple points all at the y-max when computing directionGravatar reed@google.com2012-01-31
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3116 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make SkImageEncoder_CG report more failures to its caller.Gravatar epoger@google.com2012-01-31
| | | | | | Review URL: https://codereview.appspot.com/5580052 git-svn-id: http://skia.googlecode.com/svn/trunk@3115 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix Android buildGravatar digit@google.com2012-01-31
| | | | | | Review URL: https://codereview.appspot.com/5492054 git-svn-id: http://skia.googlecode.com/svn/trunk@3113 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add code path for Gr client to resolve an Gr-created MSAA render target.Gravatar bsalomon@google.com2012-01-31
| | | | | | | Review URL: http://codereview.appspot.com/5580049/ git-svn-id: http://skia.googlecode.com/svn/trunk@3112 2bbb7eff-a529-9590-31e7-b0007b416f81
* use contour with global ymax to determine directionGravatar reed@google.com2012-01-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3110 2bbb7eff-a529-9590-31e7-b0007b416f81
* Enable convex path renderer.Gravatar bsalomon@google.com2012-01-30
| | | | | | | | | | | NOTE: THIS WILL CAUSE BOTS TO FAIL GM ON THE GPU. These tests will be rebaslined. Review URL: http://codereview.appspot.com/5601052/ git-svn-id: http://skia.googlecode.com/svn/trunk@3109 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove GrAALevel enum, use explicit sample countGravatar bsalomon@google.com2012-01-30
| | | | | | | | Review URL: http://codereview.appspot.com/5600045/ git-svn-id: http://skia.googlecode.com/svn/trunk@3106 2bbb7eff-a529-9590-31e7-b0007b416f81
* add bandage to pin out-of-range values when converting our integral clip ↵Gravatar reed@google.com2012-01-30
| | | | | | | | | | | bounds to a SkRect (when SkScalar==fixed). Eliminates a (valid) assert, but does not really return the "correct" value (which can't be represented in SkRect). git-svn-id: http://skia.googlecode.com/svn/trunk@3105 2bbb7eff-a529-9590-31e7-b0007b416f81
* inject a 32767 bounded cliprect before using SuperSampler blitter, to avoidGravatar reed@google.com2012-01-30
| | | | | | | | | | crash/assert when our run-array is larger than int16_t. Better fix may be to "tile" the drawing, so we never see a clip that's too wide, and perhaps this technique can help us avoid disabling AA for large parths (not sure tho). git-svn-id: http://skia.googlecode.com/svn/trunk@3104 2bbb7eff-a529-9590-31e7-b0007b416f81
* extend fastbounds impls to include maskfilters and drawloopers. This allowsGravatar reed@google.com2012-01-30
| | | | | | | | | | us to perform quick-rejects when drawing objects with shadows (esp. text). WebKit draws shadows w/ a looper (fg and shadow) and a maskfilter on the shadow layer. git-svn-id: http://skia.googlecode.com/svn/trunk@3103 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adding a flush method to SkCanvasGravatar junov@chromium.org2012-01-30
| | | | | | | | | | BUG=http://code.google.com/p/skia/issues/detail?id=467 REVIEW=http://codereview.appspot.com/5600044/ TEST=gm uses the new code path on all its test cases git-svn-id: http://skia.googlecode.com/svn/trunk@3102 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reland r3078 (original failures that led to revert were problems with the bot)Gravatar bsalomon@google.com2012-01-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3101 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix compilation errors when VISUALIZE_COMPLEX_CLIP is set (debug assist code ↵Gravatar bsalomon@google.com2012-01-30
| | | | | | | | | | path) Review URL: http://codereview.appspot.com/5596043/ git-svn-id: http://skia.googlecode.com/svn/trunk@3100 2bbb7eff-a529-9590-31e7-b0007b416f81
* code cleanup for single_pass_path() and remove enum GrConvexHintGravatar bsalomon@google.com2012-01-30
| | | | | | | | Review URL: code cleanup for single_pass_path() and remove enum GrConvexHint git-svn-id: http://skia.googlecode.com/svn/trunk@3099 2bbb7eff-a529-9590-31e7-b0007b416f81
* Formatting cleanup: remove extra whitespaceGravatar vandebo@chromium.org2012-01-28
| | | | | | | | Change by arthurhsu@chromium.org, original CL: http://codereview.appspot.com/5587049/ Review URL: https://codereview.appspot.com/5594043 git-svn-id: http://skia.googlecode.com/svn/trunk@3098 2bbb7eff-a529-9590-31e7-b0007b416f81
* Expose functionality to purge the GPU texture cache while running SampleApp.Gravatar twiz@google.com2012-01-27
| | | | | | | | Press 'p' to purge the cache. A summary of the number of bytes of video memory released is output to the command prompt. Review URL: https://codereview.appspot.com/5587045 git-svn-id: http://skia.googlecode.com/svn/trunk@3097 2bbb7eff-a529-9590-31e7-b0007b416f81
* add formatting to suppress compiler warningGravatar caryclark@google.com2012-01-27
| | | | | | Review URL: https://codereview.appspot.com/5586043 git-svn-id: http://skia.googlecode.com/svn/trunk@3095 2bbb7eff-a529-9590-31e7-b0007b416f81
* Rip out GrPlatformSurface (has been deprecated for some time, use ↵Gravatar bsalomon@google.com2012-01-27
| | | | | | | | | | GrPlatformTexture or GrPlatformRenderTarget instead) Review URL: http://codereview.appspot.com/5576052/ git-svn-id: http://skia.googlecode.com/svn/trunk@3094 2bbb7eff-a529-9590-31e7-b0007b416f81
* posix: Avoid static initializers in static/global mutexesGravatar digit@google.com2012-01-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes static initializers related to static and global mutexes from the final library's machine code when building on a pthread-capable system. We use PTHREAD_MUTEX_INITIALIZER to perform POD-style initialization. You need a line like the following to declare a global mutex with it: SkBaseMutex gMutex = { PTHREAD_MUTEX_INITIALIZER }; We introduce the SK_DECLARE_STATIC_MUTEX and SK_DECLARE_GLOBAL_MUTEX macros to be able to declare static/global mutexes in the source tree uniformly. SkMutex is now defined as a sub-class of SkBaseMutex, with standard construction/destruction semantics. This is useful if the mutex object is a member of another C++ class, or allocated dynamically. We also modify a few places to refer to SkBaseMutex instead of a SkMutex, where it makes sense. Generally speaking, client code should hold and use pointers to SkBaseMutex whenever they can now. We defined a new built-time macro named SK_USE_POSIX_THREADS to indicate that we're using a pthread-based SkThread.h interface. The macro will also be used in future patches to implement other helper thread synchronization classes. Finally, we inline the acquire() and release() functions in the case of Posix to improve performance a bit. Running: 'bench -repeat 10 -match mutex' on an Android device or a 2.4GHz Xeon Linux desktop shows the following improvements: Before After Galaxy Nexus 1.64 1.45 Nexus S 1.47 1.16 Xoom 1.86 1.66 Xeon 0.36 0.31 This removes 5 static mutex initializers from the library Review URL: https://codereview.appspot.com/5501066 git-svn-id: http://skia.googlecode.com/svn/trunk@3091 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make SkRegion::operator== a member function, rather than a privately-declaredGravatar reed@google.com2012-01-25
| | | | | | | | | | | friend. Without this, calling code has access to operator==, but can fail to link because the implementation is assumed to have static linkage. http://codereview.appspot.com/5577047/ git-svn-id: http://skia.googlecode.com/svn/trunk@3088 2bbb7eff-a529-9590-31e7-b0007b416f81