Fix thread safety in skia_test

Fixes missing configuration flags in utils/SkCondVar to enable
posix thread model implementation. Currently this affects the
skia_test's thread pool, which is not thread safe, and causes
sporadic crashes.

Change-Id: Icb712725da984493c80944ed8b63af8dc62e9a79
Signed-off-by: Joakim Landberg <joakim.landberg@intel.com>
Merge "Fix thread safety in skia_test"
Change SkCanvasState to use inheritance.

Cherry-pick of
https://skia.googlesource.com/skia/+/352c2181d15ed053c3b759f08ff1f51d50e2d3bb

The base class, SkCanvasState, now holds the version, width, and
height. These fields will always be a necessary part of the class.
(Also add in some padding.)
The other fields, which may change, have been moved into the
subclass, SkCanvasState_v1. If/when the version changes, it will
correspond to a new subclass.
In SkCanvasStateUtils::CreateFromCanvasState, check the version on
the base class, then do a static_cast to the version corresponding
to SkCanvasState::version.

Remove CANVAS_STATE_VERSION, which is redundant with the version
specified by the subclass.

Use unambiguous type for rowBytes.

Build Android with SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG. This allows us
to run the full suite of CanvasState tests. It is also representative
of what will be used on Android by WebView.

Fix CanvasStateTest where it was broken inside ifdef'ed out code.

Update the comments in the header to be more clear. In particular,
an SkCanvasState can only be used to pass an SkCanvas' state to a
future version of Skia (or the same); not an older version.

NOTREECHECKS=true

BUG=b/15693384
R=reed@google.com, mtklein@google.com, djsollen@google.com

Author: scroggo@google.com

Review URL: https://codereview.chromium.org/372003002

Change-Id: I75ef9443291b308a3555e4b2154bdc087f419662
Merge "Change SkCanvasState to use inheritance."
Don't manually link stlport.

Change-Id: I648292b46455c8f065729b20d9d8e38aaa7c1865
Merge "Don't manually link stlport."
Revert "Don't manually link stlport."

These makefiles are auto-generated and should not be edited manually.

This reverts commit 498d6e3a415c8fd681828abdf6394a5c4406de0d.

Change-Id: I264543f7c4423bebe9f0dfc51a1247e950d910ec
Merge "Revert "Don't manually link stlport.""
Add -no-integrated-as at local level.

Later we will enable integrated-as as default at the global level.

BUG: 17820427

Change-Id: I61e38c88e37fee6f3e1f441daf8e6e1eaf02bd74
Merge "Add -no-integrated-as at local level."