skia2/src/animator
bungeman afd7c74972 Remove SK_OFFSETOF from SkTypes, clean up offsetof usage.
The motivation for this was to remove SK_OFFSETOF from SkTypes, but
this CL is mostly about cleaning up our use of offsetof generally.

SK_OFFSETOF is removed to SkTypes and added to the two places it is
actually used (for the non standard behavior of finding the offset of
fields in types which are not standard layout).

Older versions of gcc required POD for offsetof to be used without
warning. Newer versions require the more relaxed standard layout.
Now that we no longer build on older versions of gcc, remove the
old warning suppressions.

PODMatrix is renamed to AggregateMatrix. SkMatrix is already POD
(trivial and standard layout). The PODMatrix name implies that the
POD-ness is needed for the offsetof, but it is actually the aggregate
attribute which is needed for compile time constant initialization.
This makes it more obvious that this can be revisited after we can
rely on constexpr constructors.

This also adds skstd::declval since this allows removal of existing
awkward code which casts a constant to a pointer to find the size of
a field.

TBR=reed@google.com
No API change, only removes unused macro.

Review URL: https://codereview.chromium.org/1309523003
2015-08-25 12:05:55 -07:00
..
SkADrawable.cpp rename SkDrawable to SkADrawable 2014-11-26 08:50:45 -08:00
SkADrawable.h rename SkDrawable to SkADrawable 2014-11-26 08:50:45 -08:00
SkAnimate3DSchema.xsd grab from latest android 2008-12-17 15:59:43 +00:00
SkAnimate3DSchema.xsx grab from latest android 2008-12-17 15:59:43 +00:00
SkAnimate.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkAnimateActive.cpp rename SkDrawable to SkADrawable 2014-11-26 08:50:45 -08:00
SkAnimateActive.h rename SkDrawable to SkADrawable 2014-11-26 08:50:45 -08:00
SkAnimateBase.cpp 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
SkAnimateBase.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkAnimateField.cpp 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
SkAnimateMaker.cpp Make SkStream *not* ref counted. 2015-01-21 12:09:53 -08:00
SkAnimateMaker.h rename SkDrawable to SkADrawable 2014-11-26 08:50:45 -08:00
SkAnimateProperties.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkAnimateSchema.xsd fix parse error: 2009-05-18 00:47:46 +00:00
SkAnimateSchema.xsx grab from latest android 2008-12-17 15:59:43 +00:00
SkAnimateSet.cpp 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
SkAnimateSet.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkAnimator.cpp Make SkStream *not* ref counted. 2015-01-21 12:09:53 -08:00
SkAnimatorScript2.cpp 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
SkAnimatorScript2.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
SkAnimatorScript.cpp 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
SkAnimatorScript.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkBoundable.cpp remove SkBounder -- unused and unloved 2014-06-03 10:54:00 -07:00
SkBoundable.h rename SkDrawable to SkADrawable 2014-11-26 08:50:45 -08:00
SkBuildCondensedInfo.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkCondensedDebug.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkCondensedRelease.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDisplayable.cpp 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
SkDisplayable.h Fix clang 'overloaded-virtual' warnings. 2012-12-03 14:38:08 +00:00
SkDisplayAdd.cpp rename SkDrawable to SkADrawable 2014-11-26 08:50:45 -08:00
SkDisplayAdd.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDisplayApply.cpp rename SkDrawable to SkADrawable 2014-11-26 08:50:45 -08:00
SkDisplayApply.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDisplayBounds.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDisplayBounds.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDisplayEvent.cpp rename SkDrawable to SkADrawable 2014-11-26 08:50:45 -08:00
SkDisplayEvent.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDisplayEvents.cpp rename SkDrawable to SkADrawable 2014-11-26 08:50:45 -08:00
SkDisplayEvents.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDisplayInclude.cpp Remove SK_OFFSETOF from SkTypes, clean up offsetof usage. 2015-08-25 12:05:55 -07:00
SkDisplayInclude.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDisplayInput.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
SkDisplayInput.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDisplayList.cpp rename SkDrawable to SkADrawable 2014-11-26 08:50:45 -08:00
SkDisplayList.h rename SkDrawable to SkADrawable 2014-11-26 08:50:45 -08:00
SkDisplayMath.cpp 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
SkDisplayMath.h Update more directories under src/ to follow C++11 style rule for {virtual,override}. 2015-04-27 17:18:28 -07:00
SkDisplayMovie.cpp Removed unused parameters 2013-03-12 14:36:57 +00:00
SkDisplayMovie.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDisplayNumber.cpp fix warnings on Mac in src/animator 2012-06-06 12:11:55 +00:00
SkDisplayNumber.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDisplayPost.cpp 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
SkDisplayPost.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDisplayRandom.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDisplayRandom.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDisplayScreenplay.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDisplayScreenplay.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkDisplayType.cpp delete (unused) TransparentShader 2015-06-05 11:31:26 -07:00
SkDisplayType.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
SkDisplayTypes.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDisplayTypes.h Update more directories under src/ to follow C++11 style rule for {virtual,override}. 2015-04-27 17:18:28 -07:00
SkDisplayXMLParser.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDisplayXMLParser.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDraw3D.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDraw3D.h Update more directories under src/ to follow C++11 style rule for {virtual,override}. 2015-04-27 17:18:28 -07:00
SkDrawBitmap.cpp Make SkStream *not* ref counted. 2015-01-21 12:09:53 -08:00
SkDrawBitmap.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawBlur.cpp move common blur types into central header 2014-04-28 16:25:35 +00:00
SkDrawBlur.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawClip.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDrawClip.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawColor.cpp 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
SkDrawColor.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawDash.cpp Factory methods for heap-allocated SkPathEffect and SkXfermode objects. 2014-02-20 20:40:19 +00:00
SkDrawDash.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawDiscrete.cpp Factory methods for heap-allocated SkPathEffect and SkXfermode objects. 2014-02-20 20:40:19 +00:00
SkDrawDiscrete.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawEmboss.cpp Sanitizing source files in Housekeeper-Nightly 2013-08-28 07:01:18 +00:00
SkDrawEmboss.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawExtraPathEffect.cpp C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawFull.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDrawFull.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawGradient.cpp Remove unused (by clients) SkUnitMapper 2014-05-22 12:27:41 +00:00
SkDrawGradient.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawGroup.cpp rename SkDrawable to SkADrawable 2014-11-26 08:50:45 -08:00
SkDrawGroup.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawLine.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
SkDrawLine.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawMatrix.cpp remove dead SkPersp macros 2015-01-20 19:58:36 -08:00
SkDrawMatrix.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawOval.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDrawOval.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawPaint.cpp SkPaint::FilterLevel -> SkFilterQuality 2015-03-16 10:08:34 -07:00
SkDrawPaint.h Update more directories under src/ to follow C++11 style rule for {virtual,override}. 2015-04-27 17:18:28 -07:00
SkDrawPath.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDrawPath.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawPoint.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDrawPoint.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawRectangle.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDrawRectangle.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawSaveLayer.cpp Reduce internal explicit SaveFlags usage. 2014-04-18 14:19:31 +00:00
SkDrawSaveLayer.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawShader.cpp Move SkTemplates.h to private. 2015-08-19 11:56:48 -07:00
SkDrawShader.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawText.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDrawText.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawTextBox.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDrawTextBox.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDrawTo.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkDrawTo.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkDump.cpp Removed unused parameters 2013-03-12 14:36:57 +00:00
SkDump.h Fix a stray -Winconsistent-missing-override warning. 2015-07-28 09:35:19 -07:00
SkExtraPathEffects.xsd grab from latest android 2008-12-17 15:59:43 +00:00
SkExtras.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkGetCondensedInfo.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkHitClear.cpp Removed unused parameters 2013-03-12 14:36:57 +00:00
SkHitClear.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkHitTest.cpp Removed unused parameters 2013-03-12 14:36:57 +00:00
SkHitTest.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkIntArray.h rename SkDrawable to SkADrawable 2014-11-26 08:50:45 -08:00
SkMatrixParts.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkMatrixParts.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkMemberInfo.cpp replace SkScalarMulRound(a,b) with SkScalarRountToInt(a*b) 2013-12-18 15:49:32 +00:00
SkMemberInfo.h Remove SK_OFFSETOF from SkTypes, clean up offsetof usage. 2015-08-25 12:05:55 -07:00
SkOpArray.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
SkOpArray.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
SkOperand2.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
SkOperand.h rename SkDrawable to SkADrawable 2014-11-26 08:50:45 -08:00
SkOperandInterpolator.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkOperandIterpolator.cpp 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
SkPaintPart.cpp rename SkPaintParts.* to SkPaintPart.* 2014-04-18 15:14:25 +00:00
SkPaintPart.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkParseSVGPath.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkPathParts.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkPathParts.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkPostParts.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkPostParts.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkScript2.h fix size_t/int warnings 2014-05-04 01:26:19 +00:00
SkScript.cpp 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
SkScript.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
SkScriptCallBack.h Add extra warnings to match what Android uses. 2013-11-20 15:13:49 +00:00
SkScriptDecompile.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
SkScriptRuntime.cpp 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
SkScriptRuntime.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
SkScriptTokenizer.cpp fix size_t/int warnings 2014-05-04 01:26:19 +00:00
SkSnapshot.cpp stop calling SkCanvas::getDevice 2014-06-30 09:05:34 -07:00
SkSnapshot.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkTDArray_Experimental.h Do not use SkTDS32Array when building for 64 bit. 2013-03-18 19:55:57 +00:00
SkTextOnPath.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
SkTextOnPath.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkTextToPath.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkTextToPath.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
SkTime.cpp remove remaining references to Sk64 (obsolete) 2014-01-13 14:53:55 +00:00
SkTypedArray.cpp Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkTypedArray.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
SkXMLAnimatorWriter.cpp add length parameter to addText, to match attr values 2015-02-04 18:29:27 -08:00
SkXMLAnimatorWriter.h Fix up -Winconsistent-missing-override 2015-07-13 06:18:39 -07:00
thingstodo.txt grab from latest android 2008-12-17 15:59:43 +00:00