Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@11800 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
f8dd38424c
commit
472629190e
@ -17,7 +17,7 @@ class SK_API SkRectShaderImageFilter : public SkImageFilter {
|
||||
public:
|
||||
/** Create a new image filter which fills the given rectangle with pixels
|
||||
* produced by the given SkShader. If no rectangle is specified, an output
|
||||
* is produced with the same bounds as the input primitive (even though
|
||||
* is produced with the same bounds as the input primitive (even though
|
||||
* the input primitive's pixels are not used for processing).
|
||||
* @param s Shader to call for processing. Cannot be NULL. Will be
|
||||
* ref'ed by the new image filter.
|
||||
|
@ -134,7 +134,7 @@ bool SkRgnBuilder::init(int maxHeight, int maxTransitions, bool pathIsInverse) {
|
||||
if (!size.is32() || size.isNeg()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
fStorage = (SkRegion::RunType*)sk_malloc_flags(size.get32(), 0);
|
||||
if (NULL == fStorage) {
|
||||
return false;
|
||||
|
@ -40,7 +40,7 @@ static void test_faulty_pixelref(skiatest::Reporter* reporter) {
|
||||
// construct a garbage data represent "bad" encoded data.
|
||||
SkAutoDataUnref data(SkData::NewFromMalloc(malloc(1000), 1000));
|
||||
SkAutoTUnref<SkPixelRef> pr(new SkLazyPixelRef(data, FailureDecoder, &cache));
|
||||
|
||||
|
||||
SkBitmap bm;
|
||||
bm.setConfig(SkBitmap::kARGB_8888_Config, 100, 100);
|
||||
bm.setPixelRef(pr);
|
||||
|
@ -48,14 +48,14 @@ static void test_path_to_region(skiatest::Reporter* reporter) {
|
||||
make_path0,
|
||||
make_path1,
|
||||
};
|
||||
|
||||
|
||||
SkRegion clip;
|
||||
clip.setRect(0, 0, 1255, 1925);
|
||||
|
||||
|
||||
for (size_t i = 0; i < SK_ARRAY_COUNT(procs); ++i) {
|
||||
SkPath path;
|
||||
procs[i](&path);
|
||||
|
||||
|
||||
SkRegion rgn;
|
||||
rgn.setPath(path, clip);
|
||||
path.toggleInverseFillType();
|
||||
|
Loading…
Reference in New Issue
Block a user