gfx/skia/trunk/src/core/SkPaintPriv.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/src/core/SkPaintPriv.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +/*
     1.5 + * Copyright 2013 Google Inc.
     1.6 + *
     1.7 + * Use of this source code is governed by a BSD-style license that can be
     1.8 + * found in the LICENSE file.
     1.9 + */
    1.10 +
    1.11 +#ifndef SkPaintPriv_DEFINED
    1.12 +#define SkPaintPriv_DEFINED
    1.13 +
    1.14 +class SkBitmap;
    1.15 +class SkPaint;
    1.16 +
    1.17 +#include "SkTypes.h"
    1.18 +/** Returns true if draw calls that use the paint will completely occlude
    1.19 +    canvas contents that are covered by the draw.
    1.20 +    @param paint The paint to be analyzed, NULL is equivalent to
    1.21 +        the default paint.
    1.22 +    @param bmpReplacesShader a bitmap to be used in place of the paint's
    1.23 +        shader.
    1.24 +    @return true if paint is opaque
    1.25 +*/
    1.26 +bool isPaintOpaque(const SkPaint* paint,
    1.27 +                   const SkBitmap* bmpReplacesShader = NULL);
    1.28 +#endif

mercurial