Snapshot from http://skia.googlecode.com/svn/trunk@8255

Change-Id: I4666e04b05c7d2f2f0f25204b20b302e7d161d85
Snapshot from http://skia.googlecode.com/svn/trunk@8352

Change-Id: I09dbe7f21185e6c22f04edbaf46de2f5c620e475
Merge Skia r8352 into Android

Change-Id: Id9945639617af9802b3d16a5f8485469125e8545
Fix exported include directories.

Use correct variable name for the list of exported directories.

Change-Id: Ic39cdb5cb9ec2c8d0a93b33601a4b679e22f4241
am eb323f3d: Add liblog

* commit 'eb323f3df1f2d2d2ac7c368f2e4584ca197c738d':
  Add liblog
am e05129fc: Merge "Add additional scripts in font mapping" into jb-mr2-dev

* commit 'e05129fc0eb58baa033b4d309cc2db03e262ee9e':
  Add additional scripts in font mapping
am e2dc2d7f: Fix skia generation counting in getFontMetrics

* commit 'e2dc2d7f2acec9dc1e1d577a14b3f6e8efd3be71':
  Fix skia generation counting in getFontMetrics
am fa3c0268: Merge "Add support for CMYK jpeg images." into jb-mr2-dev

* commit 'fa3c026835b4e2fa13f21d56d3299922fca6815f':
  Add support for CMYK jpeg images.
Move emoji support out of libskia and into libwebcore.

These emoji files are only used by libwebcore and are not part of
the core Skia library.  This CL should only be committed after
the companion CL has been submitted to external/webkit.

bug: 8719528
Change-Id: I27ce95f5c6f51c967d9f370d576321b2d6fd2c41
skia: Don't use -D_FORTIFY_SOURCE=2

SkString uses a dynamic growing mechanism for storing strings.
This dynamic mechanism confuses GCC, which thinks it's operating
with a single character. This causes crashes when we use
Android's -D_FORTIFY_SOURCE=2 extensions.

Consider the following code:

  SkLanguage SkLanguage::getParent() const {
      SkASSERT(fInfo != NULL);
      const char* tag = fInfo->fTag.c_str();
      SkASSERT(tag != NULL);

      // strip off the rightmost "-.*"
      char* parentTagEnd = strrchr(tag, '-');
  [DELETED]
  }

fInfo->fTag is a SkString, which is declared as:

  class SkString {
  public:
  [DELETED]
      size_t      size() const { return (size_t) fRec->fLength; }
      const char* c_str() const { return fRec->data(); }
      char operator[](size_t n) const { return this->c_str()[n]; }
  [DELETED]
  private:
      struct Rec {
      public:
          size_t      fLength;
          int32_t     fRefCnt;
          char        fBeginningOfData;

          char* data() { return &fBeginningOfData; }
          const char* data() const { return &fBeginningOfData; }
      };
      Rec* fRec;
  [DELETED]
  };

When "fInfo->fTag.c_str();" is executed in "SkLanguage::getParent()", it
returns a pointer to fBeginningOfData, which is a single char. The compiler
believes that "tag" always points to an element of size 1. When Android's
strrchr() fortify extensions are called, we trigger an abort, because
strrchr() detects an attempt to read beyond the one character
fBeginningOfData.

Change-Id: Ibe957544b5114c14018630a8f42213bf3dd806e3
Merge "skia: Don't use -D_FORTIFY_SOURCE=2"
resolved conflicts for merge of 52454e14 to jb-mr2-dev-plus-aosp

Change-Id: I519864f11ad11aa44601b55dbf4bc7e2ae566b18
am d4e621de: resolved conflicts for merge of 52454e14 to jb-mr2-dev-plus-aosp

* commit 'd4e621de189a48cbaeed7848eb9c8c80b1276170':
  skia: Don't use -D_FORTIFY_SOURCE=2
Snapshot from http://skia.googlecode.com/svn/trunk@9231

Change-Id: I384e5f43ceb90b1a2e58a1e33753b3e79c85b949
Snapshot from http://skia.googlecode.com/svn/trunk@9286

Change-Id: I07f49058086dc8e7893cf10d33fca6773bf5508e
Merge Skia r9286 into android.

Conflicts:
	include/core/SkFontHost.h
	include/core/SkPaint.h
	include/core/SkScalar.h
	include/ports/SkTypeface_android.h
	src/core/SkPaint.cpp
	src/core/SkScalerContext.cpp
	src/core/SkScalerContext.h

bug: 8719528
Change-Id: Icf2f43cfaacc6f0a0fa1965b2c1f4d2b957e9982
Skia changes needed to support gpl build for external/webkit

Change-Id: Ieaf903e12302b65921da06c10bf43185125ba31a
am 9a8580ee: (-s ours) Skia changes needed to support gpl build for external/webkit

* commit '9a8580ee604a01c63d29fc043b67b189c2d946d9':
  Skia changes needed to support gpl build for external/webkit
Fix issues related to resolving fonts based on name.

1) non-system font files are not added to the cache.
2) We cache the default fonts for quick lookup.

This is a cherry-pick of Skia r9441.

bug: 9229698
Change-Id: I0ccf3775c8496886d2b0d841b85693154efcc096
Revert "Skia changes needed to support gpl build for external/webkit"

This reverts commit 9a8580ee604a01c63d29fc043b67b189c2d946d9.