/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkNoDrawCanvas_DEFINED #define SkNoDrawCanvas_DEFINED #include "include/core/SkCanvas.h" #include "include/core/SkCanvasVirtualEnforcer.h" struct SkIRect; // SkNoDrawCanvas is a helper for SkCanvas subclasses which do not need to // actually rasterize (e.g., analysis of the draw calls). // // It provides the following simplifications: // // * not backed by any device/pixels // * conservative clipping (clipping calls only use rectangles) // class SK_API SkNoDrawCanvas : public SkCanvasVirtualEnforcer<SkCanvas> { … }; #endif // SkNoDrawCanvas_DEFINED