- 30 Apr, 2013 2 commits
-
-
Nick Kralevich authored
-
Nick Kralevich authored
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
-
- 27 Mar, 2013 2 commits
-
-
Jean-Baptiste Queru authored
-
Jean-Baptiste Queru authored
Change-Id: Ide7ecd29d6931999357fc9ca48fd64e5510a6a2b
-
- 26 Mar, 2013 1 commit
-
-
Jean-Baptiste Queru authored
-
- 06 Mar, 2013 1 commit
-
-
Jean-Baptiste Queru authored
Change-Id: I136fcbbc14072ee5f5281d09445f28d083ed3ce1
-
- 17 Oct, 2012 1 commit
-
-
Romain Guy authored
Bug #7353771 This API is just a boolean property that tells the hardware renderer whether it should use mipmap levels. Change-Id: I123a334b89b0d64d711bdad43f5e2feb416de8b4
-
- 25 Sep, 2012 1 commit
-
-
Derek Sollenberger authored
This is a cherry-pick of a larger change going into upstream Skia at... https://codereview.appspot.com/6554064/ bug: 7124435 Change-Id: Id8b030afaf493741e133b592a4e08a3fd90ec2f3
-
- 21 Sep, 2012 1 commit
-
-
Derek Sollenberger authored
bug: 6897797 Change-Id: If7bce42f5347bc78f10c55d5041389b983813c2a
-
- 04 Sep, 2012 1 commit
-
-
Romain Guy authored
Change-Id: I2f164c30342620e1c0663e133ba671b4a3869b70
-
- 30 Aug, 2012 7 commits
-
-
Jean-Baptiste Queru authored
am 867c7f44: am 6a22037d: Merge "[Skia]: fix TOMBSTONE issue when browsing JPEG image and exiting Gallery" * commit '867c7f44': [Skia]: fix TOMBSTONE issue when browsing JPEG image and exiting Gallery
-
Jean-Baptiste Queru authored
* commit '6a22037d': [Skia]: fix TOMBSTONE issue when browsing JPEG image and exiting Gallery
-
Jean-Baptiste Queru authored
-
Jean-Baptiste Queru authored
* commit 'a223e0da': Enable dynamic effect of GIF animating images in browser
-
Jean-Baptiste Queru authored
* commit '2f12560c': Enable dynamic effect of GIF animating images in browser
-
Jean-Baptiste Queru authored
-
bxu10X authored
The ANDROID_LARGE_MEMORY_DEVICE flag is not set for x86 platforms but it is required to get animated GIF working. 256MB is considered "large". Change-Id: I2ed6d1668702e6b422e6d585eb8cd06f064ccc32 Author: Bin Xu <bxu10X@intel.com> Signed-off-by:
Bin Xu <bxu10X@intel.com> Singed-off-by:
Shuo Gao <shuo.gao@intel.com> Signed-off-by:
Bruce Beare <bruce.j.beare@intel.com> Signed-off-by:
Jack Ren <jack.ren@intel.com> Author-tracking-BZ: 19205
-
- 27 Aug, 2012 4 commits
-
-
Jean-Baptiste Queru authored
* commit '1dccc9f3': Fix access to freed memory
-
Jean-Baptiste Queru authored
* commit '372648a7': Fix access to freed memory
-
Jean-Baptiste Queru authored
-
Nikolay Pisanov authored
Source should be freed after all jpeg operations completed since it is used by these operations. Change-Id: Ieb0741e1d219dc0513133a94d47df86b5f95cf29
-
- 22 Aug, 2012 1 commit
-
-
Victoria Lease authored
It looks like Id8c91ae0be6cad8a7ef77a0cd5803676290986c1 upgraded this message from an actual error notification into a full-fledged adb log spammer. Oops! This CL moves it back to the location it should be at, and requires SK_DEBUG to see it even there. Bug: 7038312 Change-Id: Iefc0b001a9874e0f177507d43231e6fdb4a1d92a
-
- 21 Aug, 2012 1 commit
-
-
Vikas Arora authored
Android/Skia supports pre-multiplied Alpha. WebP image format supports Alpha via color modes MODE_RGBA & MODE_RGBA_4444 (corresponding ones for premultiplied alpha are MODE_rgbA & MODE_rgbA_4444). The pre-requisite change for this one is the libwebp patch: https://googleplex-android-review.googlesource.com/#/c/219333/ Change-Id: I30b0d8d4b0325eb3c925371ac8f3a9b7d4801639
-
- 20 Aug, 2012 2 commits
-
-
Billy Hewlett authored
Cherry-pick Id8c91ae0be6cad8a7ef77a0cd5803676290986c1 from master. During font initialization, create a seperate fallback list for each locale. At runtime, use the fallbacklist associated with the locale set in the paint object. Fallback files are associated with locales in fallback_fonts.xml. Multiple files can be associated with the same locale, ordering within that langauge and apart from that language in the fallback order is preserved. This changelist also includes some refactoring, notably of the functions that call getNextContext(). Change-Id: I121f0e491a522c4a8558a0066b2d8969fb8a3667
-
Derek Sollenberger authored
-
- 17 Aug, 2012 5 commits
-
-
Jean-Baptiste Queru authored
* commit '5f421caf': Forward-compatibility stubs
-
Jean-Baptiste Queru authored
* commit 'c2ad1992': Forward-compatibility stubs
-
Jean-Baptiste Queru authored
-
Victoria Lease authored
Change-Id: I9c5bf5ce38827ced91d8912a1fa49adbd14a46b8
-
Derek Sollenberger authored
bug: 6987261 Change-Id: I8cb5b6da2347a1fa88a13aa3548312a7773831e5
-
- 14 Aug, 2012 1 commit
-
-
Zhongjun Chen authored
When browsing JPEG image and then exiting Gallery, the TOMBSTONE issue occour. This is because JPEG Decode method still access a pointer which has been deleted. This patch can fix it. Change-Id: I3ac3e4b8f37d352a70676abb6d151961e873e459 Author: Zhongjun Chen <zhongjunx.chen@intel.com> Signed-off-by:
Zhongjun Chen <zhongjunx.chen@intel.com> Singed-off-by:
Shuo Gao <shuo.gao@intel.com> Signed-off-by:
Bruce Beare <bruce.j.beare@intel.com> Signed-off-by:
Jack Ren <jack.ren@intel.com> Author-tracking-BZ: 37479
-
- 01 Aug, 2012 1 commit
-
-
Raph Levien authored
-
- 31 Jul, 2012 4 commits
-
-
The Android Open Source Project authored
* commit 'dccf2260':
-
The Android Open Source Project authored
Change-Id: Ia62ca8b048a34639d11f7838b03c74420b3b3868
-
The Android Automerger authored
-
Victoria Lease authored
-
- 30 Jul, 2012 1 commit
-
-
Raph Levien authored
The underlying problem is that no SkScalerContext objects existed at the time shapeFontRun is called immediately after a locale change from en to ja (apparently the dumping of the cache caused all these to be deallocated), so gFTLibrary was null (and the call tio ref_ft_face assumes that it's initialized). There's a pattern for calls which might not necessarily be called from a scaler context (GetAdvancedTypefaceMetrics is one such), to explicitly check for an uninitialized library, and create one for the length of the call if so. This patch changes GetUnitsPerEm to follow this pattern. Change-Id: I19a4b6fa49fad0aeacc04bf971101aacca6bc94f
-
- 28 Jul, 2012 2 commits
-
-
Victoria Lease authored
* commit '5ff3803b': Reduce embolden effect. DO NOT MERGE
-
Victoria Lease authored
* commit '1d6fa961': Reduce embolden effect. DO NOT MERGE
-
- 27 Jul, 2012 1 commit
-
-
Victoria Lease authored
Cherry-pick of Iec1c478171e33751be1cddbaae6a8ec30bb6cbab Certain CJK glyphs become essentially unreadable when emboldened at sizes used by common apps like News/Weather. Reducing embolden strength slightly makes these glyphs much more readable without sacrificing bold/normal weight differentiation. Bug: 6712857 Change-Id: I1025f72b5ed07f0a65924ba58aa19511bc417eb1
-