skia2/include/core
caryclark 3127c99986 ubsan shift fixes
Use an inline function that does a normal shift. When built for the sanitizer, add casts so that the shift is unsigned.

Also make a few fixes to do unsigned shifts or avoid the shift altogether; and add an argument spec to some macros.

R=reed@google.com,mtklein@google.com
BUG=skia:4633

Review URL: https://codereview.chromium.org/1503423003
2015-12-09 12:02:30 -08:00
..
SkAnnotation.h Style Change: SkNEW->new; SkDELETE->delete 2015-08-26 13:07:49 -07:00
SkBBHFactory.h IWYU: 'core' target, files starting A-C. 2015-08-05 13:57:49 -07:00
SkBitmap.h SkBitmap::installPixels(const SkPixmap&); 2015-12-09 11:36:59 -08:00
SkBitmapDevice.h IWYU: 'core' target, files starting A-C. 2015-08-05 13:57:49 -07:00
SkBlitRow.h Port SkBlitRow::Color32 to SkOpts. 2015-09-10 10:38:02 -07:00
SkBlurTypes.h move common blur types into central header 2014-04-28 16:25:35 +00:00
SkCanvas.h detect when we can filter bitmaps/images directly, w/o a tmp layer 2015-12-05 13:07:27 -08:00
SkChunkAlloc.h Add rewind capability to SkChunkAlloc 2015-02-27 08:31:57 -08:00
SkClipStack.h Clean up clipping code a bit 2015-02-10 08:16:55 -08:00
SkColor.h IWYU: 'core' target, files starting A-C. 2015-08-05 13:57:49 -07:00
SkColorFilter.h Bye bye processor data manager. 2015-10-06 08:40:51 -07:00
SkColorPriv.h Add special case circle blur for Ganesh 2015-09-15 10:20:55 -07:00
SkColorTable.h use allocator (if present) when we allocate our cache bitmap 2015-09-17 13:35:19 -07:00
SkComposeShader.h Bye bye processor data manager. 2015-10-06 08:40:51 -07:00
SkData.h Eliminate SkFILE: it always is the same as FILE. 2015-11-20 13:47:49 -08:00
SkDataTable.h remove SkInstCnt 2015-06-26 11:45:03 -07:00
SkDeque.h This CL addresses "SkCanvas::save flags are not respected by GPU backend" (https://code.google.com/p/skia/issues/detail?id=1503). 2013-08-16 00:53:34 +00:00
SkDevice.h detect when we can filter bitmaps/images directly, w/o a tmp layer 2015-12-05 13:07:27 -08:00
SkDither.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkDocument.h SkPDF: add basic metadata support 2015-09-23 12:45:49 -07:00
SkDraw.h Remove SkDrawProcs 2015-11-24 12:41:01 -08:00
SkDrawable.h add matrix options to drawDrawable 2015-07-07 10:22:31 -07:00
SkDrawFilter.h remove SkInstCnt 2015-06-26 11:45:03 -07:00
SkDrawLooper.h remove SkInstCnt 2015-06-26 11:45:03 -07:00
SkError.h Sanitizing source files in Housekeeper-Nightly 2013-09-05 07:01:19 +00:00
SkFilterQuality.h add newImage API 2015-01-23 05:58:07 -08:00
SkFixed.h ubsan shift fixes 2015-12-09 12:02:30 -08:00
SkFlattenable.h Eliminate some clutter in SkFlattenable 2015-09-24 15:04:45 -07:00
SkFlattenableSerialization.h Removed unnecessary define 2013-11-08 15:24:12 +00:00
SkFont.h Treat embedded bitmaps as a hinting method. 2014-08-19 13:18:58 -07:00
SkFontHost.h Remove a layer of indirection and code from SkFontHost. 2014-09-10 15:49:48 -07:00
SkFontLCDConfig.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-03-13 07:01:04 +00:00
SkFontStyle.h Replace SkTypeface::Style with SkFontStyle. 2014-10-20 13:33:19 -07:00
SkGraphics.h Make SkGraphics::Term a no-op, stop calling it. 2015-09-09 07:35:42 -07:00
SkImage.h SkPixelSerializer: support indexed pixels 2015-12-07 12:42:24 -08:00
SkImageDecoder.h Remove staging for SkImageDecoder::Peeker 2015-12-08 18:48:38 -08:00
SkImageEncoder.h Revert of default SkPixelSerializer (patchset #2 id:20001 of https://codereview.chromium.org/1507123002/ ) 2015-12-09 03:56:02 -08:00
SkImageFilter.h Fix filter primitive bounds computations. 2015-12-09 10:11:43 -08:00
SkImageGenerator.h API to support native scaling by image-generator 2015-12-02 14:19:47 -08:00
SkImageInfo.h Remove image usage type enum. Use GrTextureParams instead. 2015-10-12 10:39:46 -07:00
SkMallocPixelRef.h For non-opaque SkBitmapDevices, replace malloc-then-zero with calloc. 2015-11-05 09:46:23 -08:00
SkMask.h remove unused kLCD_MaskFormat 2014-11-13 14:39:58 -08:00
SkMaskFilter.h GrDrawContext now holds GrRenderTarget pointer 2015-10-15 08:01:49 -07:00
SkMath.h The compiler can generate smulbb perfectly well nowadays. 2015-08-07 08:48:12 -07:00
SkMatrix.h Add SK_BEGIN_REQUIRE_DENSE / SK_END_REQUIRE_DENSE. 2015-11-24 05:35:58 -08:00
SkMetaData.h "NULL !=" = NULL 2014-09-05 13:34:00 -07:00
SkMultiPictureDraw.h Add sk_parallel_for() 2015-06-17 15:26:15 -07:00
SkOSFile.h Eliminate SkFILE: it always is the same as FILE. 2015-11-20 13:47:49 -08:00
SkPackBits.h Remove unused PackBits methods and fix length checks 2015-06-04 15:10:37 -07:00
SkPaint.h Make SkGraphics::Term a no-op, stop calling it. 2015-09-09 07:35:42 -07:00
SkPath.h Add an SkPath conic conversion utility. 2015-12-01 09:13:23 -08:00
SkPathEffect.h Forward declare SkStrokeRec in SkPathEffect 2015-09-15 12:53:07 -07:00
SkPathMeasure.h use conics 2014-12-17 08:21:05 -08:00
SkPathRef.h add SkPath::isRRect 2015-11-19 14:47:44 -08:00
SkPicture.h Remove SkBitmapSource 2015-09-25 09:15:55 -07:00
SkPictureRecorder.h Respect SkPictureRecorder::kPlaybackDrawPicture_RecordFlag for SkDrawables 2015-11-17 06:18:31 -08:00
SkPixelRef.h Move Mutexy things to private. 2015-09-29 11:47:45 -07:00
SkPixelSerializer.h SkPixelSerializer: support indexed pixels 2015-12-07 12:42:24 -08:00
SkPixmap.h scaling API on SkPixmap 2015-11-23 12:32:16 -08:00
SkPngChunkReader.h Add SkPngChunkReader. 2015-11-23 08:14:40 -08:00
SkPoint3.h Update SkLightingShader to support rotation 2015-08-20 05:15:07 -07:00
SkPoint.h Revert of Revert of stop calling SkScalarDiv (patchset #1 id:1 of https://codereview.chromium.org/1138263002/) 2015-05-12 10:37:34 -07:00
SkPostConfig.h Fix GOOGLE3 Android build. 2015-11-18 13:14:14 -08:00
SkPreConfig.h CMake, include/: changes to make fiddle 2.0 better 2015-12-01 09:02:49 -08:00
SkRasterizer.h remove SkInstCnt 2015-06-26 11:45:03 -07:00
SkRect.h Simple CL to add a joinWithPossiblyEmptyArg to SkRect 2015-05-01 08:51:48 -07:00
SkRefCnt.h fix funky formatting in SkNVRefCnt 2015-12-07 13:37:00 -08:00
SkRegion.h Remove useless SkASSERT in SkRect.h and SkRegion.h 2015-04-28 12:47:48 -07:00
SkRRect.h Split big rrect aa effect up into separate images 2015-12-09 10:17:35 -08:00
SkRSXform.h add helper to create RSXform w/ anchorPt 2015-07-30 05:46:05 -07:00
SkScalar.h Add special case circle blur for Ganesh 2015-09-15 10:20:55 -07:00
SkShader.h Bye bye processor data manager. 2015-10-06 08:40:51 -07:00
SkSize.h deprecate SkScalarRound (and its ilk), use SkScalarRound[ToInt,ToScalar]. #define SK_SUPPORT_DEPRECATED_SCALARROUND for legacy clients 2013-12-17 19:22:07 +00:00
SkStream.h Allow SkStream::peek() to partially succeed 2015-12-07 11:37:13 -08:00
SkString.h Document SkString::resize(int) as destructive. 2015-08-31 14:36:48 -07:00
SkStrokeRec.h Add SK_BEGIN_REQUIRE_DENSE / SK_END_REQUIRE_DENSE. 2015-11-24 05:35:58 -08:00
SkSurface.h add ability to get FBO ID to Surface 2015-07-08 12:54:04 -07:00
SkSurfaceProps.h Rename flag from "distance field" to "device independent." 2015-08-31 12:39:41 -07:00
SkTArray.h Add sk_careful_memcpy to catch undefined behavior in memcpy. 2015-12-08 11:55:17 -08:00
SkTDArray.h Add sk_careful_memcpy to catch undefined behavior in memcpy. 2015-12-08 11:55:17 -08:00
SkTDict.h move some headers out of public 2014-06-17 09:04:45 -07:00
SkTDStack.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkTextBlob.h Make SkTextBlob::RunIterator public. 2015-10-27 14:01:05 -07:00
SkTime.h SkTime::GetNSecs() 2015-10-23 07:02:06 -07:00
SkTInternalLList.h "NULL !=" = NULL 2014-09-05 13:34:00 -07:00
SkTLazy.h Move SkTemplates.h to private. 2015-08-19 11:56:48 -07:00
SkTraceMemoryDump.h Add support for light dumps in SkTraceMemoryDump interface. 2015-09-30 04:31:23 -07:00
SkTRegistry.h Rewrite SkTRegistry to take any trivially-copyable type. 2013-09-04 17:20:18 +00:00
SkTSearch.h Fix possible integer overflow in SkTSearch's midpoint calculation 2015-09-22 10:32:02 -07:00
SkTypeface.h Port uses of SkLazyPtr to SkOncePtr. 2015-09-09 09:09:53 -07:00
SkTypes.h ubsan shift fixes 2015-12-09 12:02:30 -08:00
SkUnPreMultiply.h Factor out UnPreMultiplyPreservingByteOrder 2014-01-15 22:24:58 +00:00
SkUtils.h update memset16/32 inlining heuristics 2015-09-29 10:38:59 -07:00
SkWriteBuffer.h change old picture serialization to really handle images 2015-06-22 12:48:26 -07:00
SkWriter32.h Move SkTemplates.h to private. 2015-08-19 11:56:48 -07:00
SkXfermode.h Don't create a GXPFactory when blend is SrcOver 2015-11-23 13:20:42 -08:00