michael@0: /* michael@0: * Copyright 2013 Google Inc. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: #ifndef SkPaintPriv_DEFINED michael@0: #define SkPaintPriv_DEFINED michael@0: michael@0: class SkBitmap; michael@0: class SkPaint; michael@0: michael@0: #include "SkTypes.h" michael@0: /** Returns true if draw calls that use the paint will completely occlude michael@0: canvas contents that are covered by the draw. michael@0: @param paint The paint to be analyzed, NULL is equivalent to michael@0: the default paint. michael@0: @param bmpReplacesShader a bitmap to be used in place of the paint's michael@0: shader. michael@0: @return true if paint is opaque michael@0: */ michael@0: bool isPaintOpaque(const SkPaint* paint, michael@0: const SkBitmap* bmpReplacesShader = NULL); michael@0: #endif