aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* use SkFontDescriptor on macGravatar reed@google.com2012-06-01
| | | | | | Review URL: https://codereview.appspot.com/6247064 git-svn-id: http://skia.googlecode.com/svn/trunk@4117 2bbb7eff-a529-9590-31e7-b0007b416f81
* Clean up duplicate code in Ganesh, moving more function onto GrGLShaderBuilder.Gravatar tomhudson@google.com2012-06-01
| | | | | | | | http://codereview.appspot.com/6245082/ git-svn-id: http://skia.googlecode.com/svn/trunk@4116 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove 'legacy' font descriptor methods.Gravatar bungeman@google.com2012-06-01
| | | | | | | http://codereview.appspot.com/6261059/ git-svn-id: http://skia.googlecode.com/svn/trunk@4115 2bbb7eff-a529-9590-31e7-b0007b416f81
* Store font family when serializing android fonts.Gravatar djsollen@google.com2012-06-01
| | | | | | Review URL: https://codereview.appspot.com/6259063 git-svn-id: http://skia.googlecode.com/svn/trunk@4114 2bbb7eff-a529-9590-31e7-b0007b416f81
* Move GrGpuGL::ProgramCache declaration to headerGravatar bsalomon@google.com2012-06-01
| | | | | | | | Review URL: http://codereview.appspot.com/6245083/ git-svn-id: http://skia.googlecode.com/svn/trunk@4113 2bbb7eff-a529-9590-31e7-b0007b416f81
* Punctuation cleanup to satisfy idiosyncracies of OpenBSD gcc 4.2.1.Gravatar tomhudson@google.com2012-06-01
| | | | | | | | | | Original patch by landry.breuil. http://code.google.com/p/skia/issues/detail?id=626 git-svn-id: http://skia.googlecode.com/svn/trunk@4112 2bbb7eff-a529-9590-31e7-b0007b416f81
* Update the implementation of SkTypeface_android.h functions.Gravatar djsollen@google.com2012-06-01
| | | | | | | | | | | This CL removes the hardcoded mappings of FallbackScripts to a particular font file and replaces it with a dynamic mechanism that takes a style and representative character code for a given FallbackScript class and returns the most appropriate SkTypeface that contains that character code. Review URL: https://codereview.appspot.com/6197074 git-svn-id: http://skia.googlecode.com/svn/trunk@4111 2bbb7eff-a529-9590-31e7-b0007b416f81
* add more names to fontdescriptorGravatar reed@google.com2012-05-31
| | | | | | Review URL: https://codereview.appspot.com/6249074 git-svn-id: http://skia.googlecode.com/svn/trunk@4110 2bbb7eff-a529-9590-31e7-b0007b416f81
* Stop using deprecated functions in Mac GrGLInterface setupGravatar bsalomon@google.com2012-05-31
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@4109 2bbb7eff-a529-9590-31e7-b0007b416f81
* Zero out GrSamplerState in constructor to recover performance loss on Linux ↵Gravatar tomhudson@google.com2012-05-31
| | | | | | | | | | | from r4102. (Noise in padding bytes was breaking operator==()) Visual review by bsalomon@. git-svn-id: http://skia.googlecode.com/svn/trunk@4108 2bbb7eff-a529-9590-31e7-b0007b416f81
* update after dashing changeGravatar reed@google.com2012-05-31
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@4107 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add SkFontDescriptor for serializing fonts.Gravatar djsollen@google.com2012-05-31
| | | | | | Review URL: https://codereview.appspot.com/6250080 git-svn-id: http://skia.googlecode.com/svn/trunk@4106 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix SK_OVERRIDE error caught by Clang in r4105; wrong params for setData().Gravatar tomhudson@google.com2012-05-31
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@4105 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GrGradientEffects files. These implementations will be invoked fromGravatar tomhudson@google.com2012-05-31
| | | | | | | | | | | GrGLPrograms in a further change, replacing the current CoordMapping enums. http://codereview.appspot.com/6250081/ git-svn-id: http://skia.googlecode.com/svn/trunk@4104 2bbb7eff-a529-9590-31e7-b0007b416f81
* Enable typeface from stream test for Mac.Gravatar bungeman@google.com2012-05-31
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@4103 2bbb7eff-a529-9590-31e7-b0007b416f81
* Implement morphology as a custom effectGravatar bsalomon@google.com2012-05-31
| | | | | | | | Review URL: http://codereview.appspot.com/6250073/ git-svn-id: http://skia.googlecode.com/svn/trunk@4102 2bbb7eff-a529-9590-31e7-b0007b416f81
* We often rgn-diff an area >= the other rgn. now we detect that and return emptyGravatar reed@google.com2012-05-31
| | | | | | | We do this when we update our devices in SkCanvas.cpp Review URL: https://codereview.appspot.com/6249073 git-svn-id: http://skia.googlecode.com/svn/trunk@4101 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add glTexParameteriv to MESA GrGLInterface (missing from r4099)Gravatar bsalomon@google.com2012-05-31
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@4100 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add glTexParameteriv to GL interfaceGravatar bsalomon@google.com2012-05-31
| | | | | | | | | | Comitted on behalf of jin.a.yang@intel.com Review URL: http://codereview.appspot.com/6213069/ git-svn-id: http://skia.googlecode.com/svn/trunk@4099 2bbb7eff-a529-9590-31e7-b0007b416f81
* Windows compiler complaint cleanupGravatar robertphillips@google.com2012-05-31
| | | | | | | | http://codereview.appspot.com/6262047/ git-svn-id: http://skia.googlecode.com/svn/trunk@4098 2bbb7eff-a529-9590-31e7-b0007b416f81
* skdiff: return nonzero exit value if there are any mismatchesGravatar epoger@google.com2012-05-31
| | | | | | | This will allow us to replace "gm -r" in our buildbots with "skdiff". This will speed things up, and work around http://code.google.com/p/skia/issues/detail?id=473 ('PDF gradtext gm image results are nondeterministic') Review URL: https://codereview.appspot.com/6242071 git-svn-id: http://skia.googlecode.com/svn/trunk@4097 2bbb7eff-a529-9590-31e7-b0007b416f81
* skdiff: internally track lists of ALL result types, not just baseMissing and ↵Gravatar epoger@google.com2012-05-31
| | | | | | | | | comparisonMissing This does not change skdiff output at all; verified using tools/tests/run.sh Review URL: https://codereview.appspot.com/6260057 git-svn-id: http://skia.googlecode.com/svn/trunk@4096 2bbb7eff-a529-9590-31e7-b0007b416f81
* Merge GrGpuGLShaders into its parent class, GrGpuGLGravatar bsalomon@google.com2012-05-31
| | | | | | | | Review URL: http://codereview.appspot.com/6245076/ git-svn-id: http://skia.googlecode.com/svn/trunk@4095 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix typo in r4092.Gravatar tomhudson@google.com2012-05-31
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@4094 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use element-by-element assignment in GrSamplerState::operator= instead of memcpyGravatar tomhudson@google.com2012-05-31
| | | | | | | | | | so that we can handle refcounting correctly. http://codereview.appspot.com/6262049/ git-svn-id: http://skia.googlecode.com/svn/trunk@4092 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use a single GrDrawState in GrContext for direct and buffered drawingGravatar bsalomon@google.com2012-05-31
| | | | | | | | Review URL: http://codereview.appspot.com/5933043 git-svn-id: http://skia.googlecode.com/svn/trunk@4091 2bbb7eff-a529-9590-31e7-b0007b416f81
* Disable TLSTest for now, to work around ↵Gravatar epoger@google.com2012-05-31
| | | | | | | | http://code.google.com/p/skia/issues/detail?id=619 Review URL: https://codereview.appspot.com/6259056 git-svn-id: http://skia.googlecode.com/svn/trunk@4090 2bbb7eff-a529-9590-31e7-b0007b416f81
* shape ops work in progressGravatar caryclark@google.com2012-05-31
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@4089 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add a bunch of SK_OVERRIDES and remove and unused functionGravatar bsalomon@google.com2012-05-31
| | | | | | | | Review URL: http://codereview.appspot.com/6245072/ git-svn-id: http://skia.googlecode.com/svn/trunk@4088 2bbb7eff-a529-9590-31e7-b0007b416f81
* suppress warning on MacGravatar caryclark@google.com2012-05-31
| | | | | | | | | | http://codereview.appspot.com/6245070/ M gyp/common_conditions.gypi git-svn-id: http://skia.googlecode.com/svn/trunk@4087 2bbb7eff-a529-9590-31e7-b0007b416f81
* test-only: add test coverage of skdiff over input with identical bits or pixelsGravatar epoger@google.com2012-05-30
| | | | | | Review URL: https://codereview.appspot.com/6260055 git-svn-id: http://skia.googlecode.com/svn/trunk@4084 2bbb7eff-a529-9590-31e7-b0007b416f81
* Condense setupFSUnis, setupVSUnis, setupVaryings intoGravatar tomhudson@google.com2012-05-30
| | | | | | | | | | | GrGLProgramStage::setupVariables(). Rename appendVarying() to addVarying(), matching addUniform(). http://codereview.appspot.com/6262046/ git-svn-id: http://skia.googlecode.com/svn/trunk@4083 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove a couple things missed when deleting the tessellated path rendererGravatar bsalomon@google.com2012-05-30
| | | | | | | | Review URL: http://codereview.appspot.com/6249070/ git-svn-id: http://skia.googlecode.com/svn/trunk@4082 2bbb7eff-a529-9590-31e7-b0007b416f81
* Encapsulate code required to create a uniform var into a single function onGravatar tomhudson@google.com2012-05-30
| | | | | | | | | | | GrGLShaderBuilder. This isolates internal dependencies from somebody writing a CustomStage. http://codereview.appspot.com/6248050/ git-svn-id: http://skia.googlecode.com/svn/trunk@4081 2bbb7eff-a529-9590-31e7-b0007b416f81
* Refactor dictionaries for use by entities other than just SkPictureGravatar djsollen@google.com2012-05-30
| | | | | | Review URL: https://codereview.appspot.com/6101043 git-svn-id: http://skia.googlecode.com/svn/trunk@4077 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add bench to test the performance of creating a picture.Gravatar djsollen@google.com2012-05-30
| | | | | | Review URL: https://codereview.appspot.com/6258062 git-svn-id: http://skia.googlecode.com/svn/trunk@4076 2bbb7eff-a529-9590-31e7-b0007b416f81
* Added cast to get MathTest working on WindowsGravatar robertphillips@google.com2012-05-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@4072 2bbb7eff-a529-9590-31e7-b0007b416f81
* Added knowledge of GL_RED textures to debugGLReadPixelsGravatar robertphillips@google.com2012-05-30
| | | | | | | | http://codereview.appspot.com/6257070/ git-svn-id: http://skia.googlecode.com/svn/trunk@4071 2bbb7eff-a529-9590-31e7-b0007b416f81
* apply 10.p+32 -> (float)(1 << 23) fix from MathTest here as wellGravatar reed@google.com2012-05-30
| | | | | | | | windows can't eat the former syntax git-svn-id: http://skia.googlecode.com/svn/trunk@4070 2bbb7eff-a529-9590-31e7-b0007b416f81
* arm: First step towards dynamic NEON support.Gravatar digit@google.com2012-05-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds minimal support for dynamic ARM NEON support, i.e. the ability to probe the CPU at runtime for NEON and provide alternate code paths when it is available. - Add include/core/SkUtilsArm.h, which declares a few helper macros (e.g. SK_NEON_ARM_IS_DYNAMIC), plus the handy function 'sk_cpu_arm_has_neon()' which returns true if the target CPU supports the ARM NEON instruction set. Note that the header is in include/core/ because it will have to be included from NEON-specific code under src/code/ It would probably be more logical to put it under include/opts/ instead, but this would require moving all the NEON-specific stuff under src/code/ into src/opts/, which is not trivial due to the way the code is currently architected. - Add src/core/SkUtilsArm.cpp which implements 'sk_cpu_arm_has_neon' for ARM-based Linux systems, only when SK_NEON_ARM_IS_DYNAMIC is true. (For other cases, 'sk_cpu_arm_has_neon' is an inline function that returns a constant 'true' or 'false' value). There is no user-level accessible CPUID instruction on ARM, so do all CPU feature probing by parsing /proc/cpuinfo. This is Linux-specific. For Debug build types, the CPU probing result is printed to the Android log (or Linux command-line) for easier debugging. - Create a new 'opts_neon' target (static library) which shall contain all the NEON-specific code paths for the library. This is necessary because -mfpu=neon impacts also non-scalar code. Just like with -mssse3 on x86, we can't build the rest of the library with this flag. Note that for now, we only include memset16_neon and memset32_neon in this library. - Modify opts_check_arm.cpp to implement SK_ARM_NEON_IS_DYNAMIC properly. Compared to a 'xoom' build, the only difference is the use of NEON-optimized memset16/32 functions. Later patches will move more NEON-specific code paths to 'opts_neon'. Review URL: https://codereview.appspot.com/6247058 git-svn-id: http://skia.googlecode.com/svn/trunk@4069 2bbb7eff-a529-9590-31e7-b0007b416f81
* use (float)(1 << 23) instead of 1.0p+23 since the latter isn't supported in VSGravatar reed@google.com2012-05-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@4068 2bbb7eff-a529-9590-31e7-b0007b416f81
* win can't eat 1.0p+23 syntax for floats :(Gravatar reed@google.com2012-05-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@4067 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove debugfGravatar reed@google.com2012-05-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@4066 2bbb7eff-a529-9590-31e7-b0007b416f81
* add bench for floor variantsGravatar reed@google.com2012-05-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@4065 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixed small bug in shader generationGravatar robertphillips@google.com2012-05-30
| | | | | | | | http://codereview.appspot.com/6259053/ git-svn-id: http://skia.googlecode.com/svn/trunk@4064 2bbb7eff-a529-9590-31e7-b0007b416f81
* svndiff: report added and deleted files, not just modified filesGravatar epoger@google.com2012-05-29
| | | | | | Review URL: https://codereview.appspot.com/6260052 git-svn-id: http://skia.googlecode.com/svn/trunk@4063 2bbb7eff-a529-9590-31e7-b0007b416f81
* special-case dashing a single line-segment. We can go much faster since weGravatar reed@google.com2012-05-29
| | | | | | | can apply the stroke as we go, eliminating the generic stroker. Review URL: https://codereview.appspot.com/6250070 git-svn-id: http://skia.googlecode.com/svn/trunk@4062 2bbb7eff-a529-9590-31e7-b0007b416f81
* addPoly() entry-point, to quickly add MoveTo+N*LineTo (useful in dashing)Gravatar reed@google.com2012-05-29
| | | | | | Review URL: https://codereview.appspot.com/6256063 git-svn-id: http://skia.googlecode.com/svn/trunk@4061 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix line ending, mark svn:eol-style LFGravatar bsalomon@google.com2012-05-29
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@4060 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixing a reader size overflow with SkOrderedReadBuffer, when unflattening ↵Gravatar junov@chromium.org2012-05-29
| | | | | | | | | | large bitmaps. REVIEW=http://codereview.appspot.com/6250054/ git-svn-id: http://skia.googlecode.com/svn/trunk@4059 2bbb7eff-a529-9590-31e7-b0007b416f81