/* * 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 GrScissorState_DEFINED #define GrScissorState_DEFINED #include "include/core/SkRect.h" /** * The scissor state is stored as the scissor rectangle and the backing store bounds of the render * target that the scissor will apply to. If the render target is approximate fit and the padded * content should not be modified, the clip should apply the render target context's logical bounds * as part of the scissor (e.g. when stenciling). This puts the onus on the render target context * to intentionally discard the scissor at its logical bounds when drawing into the padded content * is acceptable (e.g. color-only updates). */ class GrScissorState { … }; #endif