/* * Copyright 2005 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkRegion_DEFINED #define SkRegion_DEFINED #include "include/core/SkRect.h" #include "include/private/base/SkAPI.h" #include "include/private/base/SkAssert.h" #include "include/private/base/SkDebug.h" #include "include/private/base/SkTypeTraits.h" #include <cstddef> #include <cstdint> #include <type_traits> class SkPath; /** \class SkRegion SkRegion describes the set of pixels used to clip SkCanvas. SkRegion is compact, efficiently storing a single integer rectangle, or a run length encoded array of rectangles. SkRegion may reduce the current SkCanvas clip, or may be drawn as one or more integer rectangles. SkRegion iterator returns the scan lines or rectangles contained by it, optionally intersecting a bounding rectangle. */ class SK_API SkRegion { … }; #endif