aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBitmapProcState.cpp
Commit message (Collapse)AuthorAge
...
* Fix bug in 1xN SkBitmapProcShader optimizationGravatar robertphillips@google.com2013-01-22
| | | | | | | | https://codereview.appspot.com/7187047/ git-svn-id: http://skia.googlecode.com/svn/trunk@7325 2bbb7eff-a529-9590-31e7-b0007b416f81
* Placing 1xN bitmap shader opt behind a flag to delay WebKit rebaselinesGravatar robertphillips@google.com2013-01-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@7298 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2013-01-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@7293 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix 7273 for neonGravatar robertphillips@google.com2013-01-18
| | | | | | | | https://codereview.appspot.com/7137059/ git-svn-id: http://skia.googlecode.com/svn/trunk@7277 2bbb7eff-a529-9590-31e7-b0007b416f81
* Added shaderproc for 1xN repeatX/repeatY BitmapProcShaderGravatar robertphillips@google.com2013-01-18
| | | | | | | | https://codereview.appspot.com/7063054/ git-svn-id: http://skia.googlecode.com/svn/trunk@7273 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix the computed (new) inverse matrix when we detect that a shader's matrixGravatar reed@google.com2013-01-05
| | | | | | | can effectively be consider translate-only. Review URL: https://codereview.appspot.com/7060043 git-svn-id: http://skia.googlecode.com/svn/trunk@7039 2bbb7eff-a529-9590-31e7-b0007b416f81
* detect gigantoid matrices, and do nothing to avoid wacky overflows from ↵Gravatar reed@google.com2012-11-20
| | | | | | | | | float -> int https://code.google.com/p/chromium/issues/detail?id=156231 Review URL: https://codereview.appspot.com/6842075 git-svn-id: http://skia.googlecode.com/svn/trunk@6513 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2012-10-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5989 2bbb7eff-a529-9590-31e7-b0007b416f81
* Munch the incoming inverse to force nearly-no-scale to no-scale, if we thinkGravatar reed@google.com2012-10-17
| | | | | | | | | | the cheat won't be noticed. This allows us to take a fast case if the caller gave us a matrix scale of (for instance) 1.0000001 instead of 1.0 drawBitmap already has this logic, it just wasn't ever propogated to bitmapShader before. Review URL: https://codereview.appspot.com/6720052 git-svn-id: http://skia.googlecode.com/svn/trunk@5987 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2012-10-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5972 2bbb7eff-a529-9590-31e7-b0007b416f81
* fast case for translate-only repeat bitmapshader, so Tom can be happyGravatar reed@google.com2012-10-16
| | | | | | Review URL: https://codereview.appspot.com/6721045 git-svn-id: http://skia.googlecode.com/svn/trunk@5971 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2012-10-13
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5943 2bbb7eff-a529-9590-31e7-b0007b416f81
* retool fFilterOne[X,Y] to store the translate dx, dy, so we can avoid floatGravatar reed@google.com2012-10-12
| | | | | | | | conversions on every scanline. git-svn-id: http://skia.googlecode.com/svn/trunk@5939 2bbb7eff-a529-9590-31e7-b0007b416f81
* reland 5926 w/ fix in middle loop (thank you asserts)Gravatar reed@google.com2012-10-12
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5928 2bbb7eff-a529-9590-31e7-b0007b416f81
* revert 5926 (debug assert)Gravatar reed@google.com2012-10-12
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5927 2bbb7eff-a529-9590-31e7-b0007b416f81
* add shaderproc32 for translate+clamp+nofilter.Gravatar reed@google.com2012-10-12
| | | | | | | todo: should be pretty easy to have a variant for repeat tilemode as well Review URL: https://codereview.appspot.com/6658053 git-svn-id: http://skia.googlecode.com/svn/trunk@5926 2bbb7eff-a529-9590-31e7-b0007b416f81
* Result of running tools/sanitize_source_files.py (which was added in ↵Gravatar rmistry@google.com2012-08-23
| | | | | | | | | https://codereview.appspot.com/6465078/) This CL is part I of IV (I broke down the 1280 files into 4 CLs). Review URL: https://codereview.appspot.com/6485054 git-svn-id: http://skia.googlecode.com/svn/trunk@5262 2bbb7eff-a529-9590-31e7-b0007b416f81
* arm: dynamic NEON support for SkBitmapProcState functions.Gravatar digit@google.com2012-08-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch does the following: - Move the NEON-specific code from src/core/SkBitmapProcState_filter.h to src/opts/SkBitmapProcState_filter_neon.h - Implement the NEON-specific functions in the new source file src/opts/SkBitmapProcState_opts_arm_neon.cpp, added to the "opts_neon" static library target. All functions now use the _neon suffix, even in full-NEON builds. - Move most of the content of src/core/SkBitmapProcState.cpp to a new header: src/core/SkBitmapProcState_procs.h This header is included by two source files: src/core/SkBitmapProcState.cpp, to define the regular functions. src/opts/SkBitmapProcState_opts_arm_neon.cpp to define NEON ones. This is to deal with the fact that all NEON functions now use the _neon suffix, even in SK_ARM_NEON_IS_ALWAYS mode, and to be able to include the same header twice in the SK_ARM_NEON_IS_DYNAMIC case. Review URL: https://codereview.appspot.com/6449117 git-svn-id: http://skia.googlecode.com/svn/trunk@5055 2bbb7eff-a529-9590-31e7-b0007b416f81
* Since we only have 1 proc for SA8_alpha_D32 (i.e. no opaque special-case) weGravatar reed@google.com2012-04-10
| | | | | | | | remove the bogus assert from CHECKSTATE. git-svn-id: http://skia.googlecode.com/svn/trunk@3646 2bbb7eff-a529-9590-31e7-b0007b416f81
* add debuggin matrix-proc to validate its output before calling the samplersGravatar reed@google.com2012-03-27
| | | | | | Review URL: https://codereview.appspot.com/5901063 git-svn-id: http://skia.googlecode.com/svn/trunk@3505 2bbb7eff-a529-9590-31e7-b0007b416f81
* apply FractionalInt improvement to rotatedGravatar reed@google.com2012-03-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3348 2bbb7eff-a529-9590-31e7-b0007b416f81
* use higher precision (64bit) fixed-point for matrix procGravatar reed@google.com2012-03-07
| | | | | | Review URL: https://codereview.appspot.com/5772044 git-svn-id: http://skia.googlecode.com/svn/trunk@3336 2bbb7eff-a529-9590-31e7-b0007b416f81
* Automatic update of all copyright notices to reflect new license terms.Gravatar epoger@google.com2011-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I have manually examined all of these diffs and restored a few files that seem to require manual adjustment. The following files still need to be modified manually, in a separate CL: android_sample/SampleApp/AndroidManifest.xml android_sample/SampleApp/res/layout/layout.xml android_sample/SampleApp/res/menu/sample.xml android_sample/SampleApp/res/values/strings.xml android_sample/SampleApp/src/com/skia/sampleapp/SampleApp.java android_sample/SampleApp/src/com/skia/sampleapp/SampleView.java experimental/CiCarbonSampleMain.c experimental/CocoaDebugger/main.m experimental/FileReaderApp/main.m experimental/SimpleCocoaApp/main.m experimental/iOSSampleApp/Shared/SkAlertPrompt.h experimental/iOSSampleApp/Shared/SkAlertPrompt.m experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig gpu/src/android/GrGLDefaultInterface_android.cpp gyp/common.gypi gyp_skia include/ports/SkHarfBuzzFont.h include/views/SkOSWindow_wxwidgets.h make.bat make.py src/opts/memset.arm.S src/opts/memset16_neon.S src/opts/memset32_neon.S src/opts/opts_check_arm.cpp src/ports/SkDebug_brew.cpp src/ports/SkMemory_brew.cpp src/ports/SkOSFile_brew.cpp src/ports/SkXMLParser_empty.cpp src/utils/ios/SkImageDecoder_iOS.mm src/utils/ios/SkOSFile_iOS.mm src/utils/ios/SkStream_NSData.mm tests/FillPathTest.cpp Review URL: http://codereview.appspot.com/4816058 git-svn-id: http://skia.googlecode.com/svn/trunk@1982 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert "We extract a sub-function from MAKENAME(_nofilter_DX), only dealing ↵Gravatar agl@chromium.org2010-06-18
| | | | | | | | with reading" Broke ARM build. git-svn-id: http://skia.googlecode.com/svn/trunk@581 2bbb7eff-a529-9590-31e7-b0007b416f81
* We extract a sub-function from MAKENAME(_nofilter_DX), only dealing with readingGravatar agl@chromium.org2010-06-16
| | | | | | | | | | | | | | | | | one index array, indexing into src array and output to dst array. Because of the scatter-gather nature, we can not do much burst/batch reading/writing to improve the performance. We tried Neon vector instructions. We also tried the hand optimize the compiler generated assembly (non-neon) code. The latter seems to have better gain. About 6% improvements, not much though... Patch-by: Xin Qi of codeaurora.org http://codereview.appspot.com/1127042/show git-svn-id: http://skia.googlecode.com/svn/trunk@579 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix overflow in matrixproc, and add debugging code to test thatGravatar reed@android.com2010-04-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@548 2bbb7eff-a529-9590-31e7-b0007b416f81
* add shaderproc32 for index bitmaps. neon version of 32->16+ditherGravatar reed@android.com2009-10-27
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@408 2bbb7eff-a529-9590-31e7-b0007b416f81
* add method to compute max count for a given buffer size in the bitmap shader.Gravatar reed@android.com2009-08-14
| | | | | | | | fix bug in quad loop of fill_sequential where we were going one quad too far. git-svn-id: http://skia.googlecode.com/svn/trunk@322 2bbb7eff-a529-9590-31e7-b0007b416f81
* add special matrixprocs when the matrix is at most translate. These are fasterGravatar reed@android.com2009-08-13
| | | | | | | | | | | (somewhat) than their scale counterparts, but are also numerically exact for any size bitmaps. The scale versions, because they operate in a scaled 65535 space, are not always exact for large images (due to SK_Fixed1 / width) loss of bits git-svn-id: http://skia.googlecode.com/svn/trunk@320 2bbb7eff-a529-9590-31e7-b0007b416f81
* more neon work:Gravatar reed@android.com2009-08-07
| | | | | | | | | - remove neon-specific functions that were not faster than the C version - move the neon filter function to its own header, so it could be use in more places git-svn-id: http://skia.googlecode.com/svn/trunk@309 2bbb7eff-a529-9590-31e7-b0007b416f81
* add platformProcs() porting functionGravatar reed@android.com2009-08-03
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@301 2bbb7eff-a529-9590-31e7-b0007b416f81
* clean up SkBitmapProcState in preparation for adding porting-layer functionsGravatar reed@android.com2009-08-03
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@300 2bbb7eff-a529-9590-31e7-b0007b416f81
* add special proc for repeat 16->16 filter bitmap shaderGravatar reed@android.com2009-07-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@273 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove conditional build flag for mipmapsGravatar reed@android.com2009-07-17
| | | | | | | | remove obsolete SkBitmapShader.cpp file git-svn-id: http://skia.googlecode.com/svn/trunk@271 2bbb7eff-a529-9590-31e7-b0007b416f81
* first cut at support for HW-specific blits/etc.Gravatar reed@android.com2009-07-16
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@270 2bbb7eff-a529-9590-31e7-b0007b416f81
* try our first special-case shaderprocGravatar reed@android.com2009-07-16
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@268 2bbb7eff-a529-9590-31e7-b0007b416f81
* add shaderprocs for all-in-one special blits (matrix+sampler)Gravatar reed@android.com2009-07-16
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@267 2bbb7eff-a529-9590-31e7-b0007b416f81
* Handle kA8 bitmaps drawing through a matrix (was infinitely recursive)Gravatar reed@android.com2009-02-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@95 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove obsolete stateGravatar reed@android.com2009-01-12
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@62 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