Flutter Engine
The Flutter Engine
|
#include <GrScissorState.h>
Public Member Functions | |
GrScissorState (const SkISize &rtDims) | |
void | setDisabled () |
bool | set (const SkIRect &rect) |
bool | intersect (const SkIRect &rect) |
bool | relaxTest (const SkISize &logicalDimensions) |
bool | operator== (const GrScissorState &other) const |
bool | operator!= (const GrScissorState &other) const |
bool | enabled () const |
const SkIRect & | rect () const |
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).
Definition at line 21 of file GrScissorState.h.
|
inlineexplicit |
Definition at line 24 of file GrScissorState.h.
|
inline |
Definition at line 63 of file GrScissorState.h.
|
inline |
Definition at line 34 of file GrScissorState.h.
|
inline |
Definition at line 61 of file GrScissorState.h.
|
inline |
Definition at line 58 of file GrScissorState.h.
|
inline |
Definition at line 73 of file GrScissorState.h.
|
inline |
Definition at line 46 of file GrScissorState.h.
|
inline |
Definition at line 29 of file GrScissorState.h.
|
inline |
Definition at line 28 of file GrScissorState.h.