skia: Fix build in ISO C++11 mode

Fix macro constructs that could be mistaken for new string literals

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
skia: Use -fno-strict-aliasing for tests

Tests aren't compatible with strict aliasing rules, and aren't
speed relevant anyway -- use -fno-strict-aliasing

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
skia: Use -fno-strict-aliasing for now

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>

Conflicts:
	Android.mk

Conflicts:
	Android.mk

Conflicts:
	Android.mk
skia/bench: Use -fno-strict-aliasing

Use -fno-strict-aliasing for the benchmark so we don't have to use
it globally

Change-Id: Ibe5b80587818058cbb4290fe694c0b5d4cdc75a0
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Modified for migrating Skia test to lava_test_shell

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
skia: Build legacy bits with -fno-strict-aliasing

Build legacy bits with -fno-strict-aliasing to work around
aliasing violations in SkCamera3D::patchToMatrix

Change-Id: I4a91fe470895ba57ace22dde367f8e7d60b7943c
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Don't use ISO C++11 constructs in code when building in C++98 mode

The added = doesn't hurt, and fixes building with clang 3.4.

Change-Id: Ic4298239134c0f9659ec86efe155401e2f9a0f3e
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
skia: support FDO utilization

Summary: Enable support for skia, legacy skia, and skia benches (very useful)

Test Plan: ALL THE PROFILES!

Reviewers: randall.rushing, synergy

Reviewed By: synergy

Differential Revision: http://review.codefirex.com/D416
Support for up to libpng 1.6.3

Summary:
This has been tested on up to libpng 1.6.3 and retains full backwards
compatibility with libpng 1.2.y and 1.4.y
Includes if/else'd changes, and 1.6.y changes in addition to the
following from upstream chromium skia:

  * Add conditional defines for deprecated NULL type casts.
  * Use wrapper functions for accessing png_structp & png_infop fields
    (direct access is deprecated).

Tested on Fedora 17 (libpng 1.5) and Ubuntu 12.04 (libpng 1.2).

Note: there is one png_structp direct field acces left in
SkPNGImageDecoder::onDecodeRegion() for which libpng does not provide a
wrapper method (png_ptr->pass = 0). That should be OK for now as the code
is only enabled when SK_BUILD_FOR_ANDROID is set, and the Android libpng
version is striclty controlled. But it may become an issue in the future
when/if Android decides to update libpng, so we should investigate a
solution. cfX-NOTE: not an issue for us currently due to being unnecessary
on our libpng 1.6.3 implementation.

R=scroggo@google.com, reed@google.com, djsollen@google.com

Author: fmalita@google.com

Test Plan: win

Reviewers: randall.rushing, synergy

Reviewed By: synergy

Differential Revision: http://review.codefirex.com/D371
legacy: support up to libpng 1.6.3

This has been tested on aosp libpng 1.2.46, current libpng 1.4,
and libpng 1.6.3