gfx/skia/trunk/include/utils/SkNinePatch.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/include/utils/SkNinePatch.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +
     1.5 +/*
     1.6 + * Copyright 2006 The Android Open Source Project
     1.7 + *
     1.8 + * Use of this source code is governed by a BSD-style license that can be
     1.9 + * found in the LICENSE file.
    1.10 + */
    1.11 +
    1.12 +
    1.13 +#ifndef SkNinePatch_DEFINED
    1.14 +#define SkNinePatch_DEFINED
    1.15 +
    1.16 +#include "SkRect.h"
    1.17 +#include "SkRegion.h"
    1.18 +
    1.19 +class SkBitmap;
    1.20 +class SkCanvas;
    1.21 +class SkPaint;
    1.22 +
    1.23 +class SkNinePatch {
    1.24 +public:
    1.25 +    static void DrawNine(SkCanvas* canvas, const SkRect& dst,
    1.26 +                     const SkBitmap& bitmap, const SkIRect& margins,
    1.27 +                     const SkPaint* paint = NULL);
    1.28 +
    1.29 +    static void DrawMesh(SkCanvas* canvas, const SkRect& dst,
    1.30 +                         const SkBitmap& bitmap,
    1.31 +                         const int32_t xDivs[], int numXDivs,
    1.32 +                         const int32_t yDivs[], int numYDivs,
    1.33 +                         const SkPaint* paint = NULL);
    1.34 +};
    1.35 +
    1.36 +#endif

mercurial