skia2/gyp
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
..
android_deps.gyp WIP: Added support for giflib, updated jpeg and png 2015-03-30 07:52:52 -07:00
android_framework_lib.gyp fix typo in android_framework_lib.gyp 2015-08-17 13:39:03 -04:00
android_output.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
android_system.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
angle.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
animator.gyp Revert[8] "move some public headers into private" 2015-08-17 18:29:48 -07:00
apptype_console.gypi Remove all code related to NaCl 2015-04-02 12:16:36 -07:00
bench.gyp Experiment with find as a road to Gyp sanity. 2015-05-16 15:47:10 -07:00
bench.gypi add -Iinclude/private anywhere we have -Isrc/core 2015-07-28 08:55:14 -07:00
canvas_state_lib.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
codec.gyp SkScaledCodec class 2015-08-14 07:44:46 -07:00
common_conditions.gypi Remove SK_OFFSETOF from SkTypes, clean up offsetof usage. 2015-08-25 12:05:55 -07:00
common_variables.gypi Add gyp support for new GPU backend 2015-08-12 12:58:13 -07:00
common.gypi Add gyp support for new GPU backend 2015-08-12 12:58:13 -07:00
core.gyp add -Iinclude/private anywhere we have -Isrc/core 2015-07-28 08:55:14 -07:00
core.gypi Update SkLightingShader to support rotation 2015-08-20 05:15:07 -07:00
debugger.gyp add -Iinclude/private anywhere we have -Isrc/core 2015-07-28 08:55:14 -07:00
dm.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
dm.gypi Have DM manually encode its .png outputs. 2015-08-24 13:27:01 -07:00
effects.gyp add -Iinclude/private anywhere we have -Isrc/core 2015-07-28 08:55:14 -07:00
effects.gypi Update SkLightingShader to support rotation 2015-08-20 05:15:07 -07:00
etc1.gyp Revert of Depend on ETC1 via DEPS instead of a direct third_party checkin. (patchset #1 id:1 of https://codereview.chromium.org/1296253003/ ) 2015-08-17 11:15:00 -07:00
everything.gyp Remove experimental/PdfViewer 2015-08-04 14:08:44 -07:00
example.gyp Revert "Move headers used by headers in include/ to include/private." 2015-07-01 16:35:59 -04:00
experimental.gyp experimental: remove old PDF benchmarking tools 2015-07-15 08:06:29 -07:00
FileReaderApp.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
find.py Sort build files for consistent link order. 2015-05-20 09:26:47 -07:00
flags.gyp add -Iinclude/private anywhere we have -Isrc/core 2015-07-28 08:55:14 -07:00
freetype.gyp Remove SK_ANDROID_FREETYPE_HAS_MM from build. 2015-06-04 07:38:52 -07:00
freetype.gypi Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
giflib.gyp Update giflib to 5.1.1 (AOSP hash) 2015-08-24 12:00:15 -07:00
gmslides.gypi A bit of misc cleanup. 2015-08-14 10:03:45 -07:00
gpu.gyp Add include paths in gputest.gyp for use by additional gpu tests. 2015-08-14 08:37:50 -07:00
gpu.gypi Put drawPath in GrBatch. 2015-08-19 13:26:49 -07:00
gputest.gyp Add include paths in gputest.gyp for use by additional gpu tests. 2015-08-14 08:37:50 -07:00
icu.gyp Update giflib to 5.1.1 (AOSP hash) 2015-08-24 12:00:15 -07:00
images.gyp add -Iinclude/private anywhere we have -Isrc/core 2015-07-28 08:55:14 -07:00
iOSShell.gyp Remove old iOS porting files. 2015-06-29 14:12:41 -07:00
jsoncpp.gyp Roll jsoncpp, drop dependency on Chromium overrides. 2014-08-19 07:21:00 -07:00
ktx.gyp add -Iinclude/private anywhere we have -Isrc/core 2015-07-28 08:55:14 -07:00
libjpeg-turbo.gyp Switching Skia to chromium's libjpeg-turbo 2015-08-11 13:32:54 -07:00
libjpeg.gyp Hopefully fix ios bots 2015-08-11 14:44:02 -07:00
libpng.gyp Have DM manually encode its .png outputs. 2015-08-24 13:27:01 -07:00
libwebp_skia.gypi Fix color swap for webp 565 2015-08-06 11:44:56 -07:00
libwebp.gyp Revert of Update libwebp and resume testing scaled webp (patchset #2 id:20001 of https://codereview.chromium.org/1280073002/ ) 2015-08-07 12:53:25 -07:00
lua.gyp Build Skia for a bare-bones embedded Linux system. 2014-02-24 20:22:34 +00:00
most.gyp Remove experimental/PdfViewer 2015-08-04 14:08:44 -07:00
nanomsg.gyp Experiment with find as a road to Gyp sanity. 2015-05-16 15:47:10 -07:00
opts.gyp Add build targets for advanced Intel instruction sets (1.5 of 3) 2015-08-25 06:30:07 -07:00
opts.gypi Add build targets for advanced Intel instruction sets (1 of 3). 2015-08-24 10:32:02 -07:00
pathops_skpclip.gyp add -Iinclude/private anywhere we have -Isrc/core 2015-07-28 08:55:14 -07:00
pathops_unittest.gyp cumulative pathops patch 2015-03-26 07:52:43 -07:00
pathops_unittest.gypi add -Iinclude/private anywhere we have -Isrc/core 2015-07-28 08:55:14 -07:00
pdf.gyp SkPDF: Move SkFlate into src/pdf (part 1/3) [reland] 2015-08-12 11:24:40 -07:00
pdf.gypi SkPDF: Move SkFlate into src/pdf (part 1/3) [reland] 2015-08-12 11:24:40 -07:00
ports.gyp add -Iinclude/private anywhere we have -Isrc/core 2015-07-28 08:55:14 -07:00
SampleApp.gyp Update SkLightingShader to support rotation 2015-08-20 05:15:07 -07:00
sfnt.gyp Move SkTemplates.h to private. 2015-08-19 11:56:48 -07:00
sfntly.gyp SkPDF: Add Sfntly to DEPS, gyp 2015-05-18 13:15:56 -07:00
SimpleCocoaApp.gyp Allows windowed apps to be built on the Mac just by writing a SkOSWindow subclass without needing nib/plist files. 2015-06-18 11:49:42 -07:00
SimpleiOSApp.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
skia_for_android_framework_defines.gypi change asABitmap to isABitmap on shader 2015-08-19 11:46:38 -07:00
skia_for_chromium_defines.gypi Remove SK_LEGACY_SKPOINT3_CTORS flag 2015-08-06 07:08:31 -07:00
skia_launcher.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
skia_lib.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
svg.gyp add -Iinclude/private anywhere we have -Isrc/core 2015-07-28 08:55:14 -07:00
tests.gypi SkPDF/Deflate: clean up old SkFlate code 2015-08-18 13:30:25 -07:00
tools.gyp Update SkLightingShader to support rotation 2015-08-20 05:15:07 -07:00
utils.gyp add gm for image->newShader 2015-08-20 12:30:20 -07:00
utils.gypi add gm for image->newShader 2015-08-20 12:30:20 -07:00
v8.gyp Allows windowed apps to be built on the Mac just by writing a SkOSWindow subclass without needing nib/plist files. 2015-06-18 11:49:42 -07:00
views_animated.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
views.gyp Revert "Move headers used by headers in include/ to include/private." 2015-07-01 16:35:59 -04:00
visualbench.gyp Add skeleton json support to visualbench 2015-08-18 12:13:34 -07:00
xml.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
xps.gyp add -Iinclude/private anywhere we have -Isrc/core 2015-07-28 08:55:14 -07:00
yasm.gyp Update yasm .gyp for tweaked ASAN bots. 2015-08-05 08:58:45 -07:00
zlib.gyp Fix warnings on VS2015 x86_64 build 2015-08-06 17:33:16 -07:00