/* * Copyright 2007 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 SkPicture_DEFINED #define SkPicture_DEFINED #include "include/core/SkRect.h" #include "include/core/SkRefCnt.h" #include "include/core/SkShader.h" // IWYU pragma: keep #include "include/core/SkTypes.h" #include <atomic> #include <cstddef> #include <cstdint> class SkCanvas; class SkData; class SkMatrix; class SkStream; class SkWStream; enum class SkFilterMode; struct SkDeserialProcs; struct SkSerialProcs; // TODO(kjlubick) Remove this after cleaning up clients #include "include/core/SkTileMode.h" // IWYU pragma: keep /** \class SkPicture SkPicture records drawing commands made to SkCanvas. The command stream may be played in whole or in part at a later time. SkPicture is an abstract class. SkPicture may be generated by SkPictureRecorder or SkDrawable, or from SkPicture previously saved to SkData or SkStream. SkPicture may contain any SkCanvas drawing command, as well as one or more SkCanvas matrix or SkCanvas clip. SkPicture has a cull SkRect, which is used as a bounding box hint. To limit SkPicture bounds, use SkCanvas clip when recording or drawing SkPicture. */ class SK_API SkPicture : public SkRefCnt { … }; #endif