Flutter Engine
The Flutter Engine
|
#include <SurfaceFillContext.h>
Protected Member Functions | |
OpsTask * | replaceOpsTask () |
void | addOp (GrOp::Owner) |
template<SkAlphaType AlphaType> | |
std::array< float, 4 > | adjustColorAlphaType (SkRGBA4f< AlphaType > color) const |
Protected Member Functions inherited from skgpu::ganesh::SurfaceContext | |
GrDrawingManager * | drawingManager () |
const GrDrawingManager * | drawingManager () const |
PixelTransferResult | transferPixels (GrColorType colorType, const SkIRect &rect) |
void | asyncReadPixels (GrDirectContext *, const SkIRect &srcRect, SkColorType, ReadPixelsCallback, ReadPixelsContext) |
Static Protected Member Functions | |
static void | ClearToGrPaint (std::array< float, 4 > color, GrPaint *paint) |
template<SkAlphaType AlphaType> | |
static std::array< float, 4 > | ConvertColor (SkRGBA4f< AlphaType > color) |
template<> | |
std::array< float, 4 > | ConvertColor (SkPMColor4f color) |
template<> | |
std::array< float, 4 > | ConvertColor (SkColor4f color) |
Protected Attributes | |
GrSurfaceProxyView | fWriteView |
Protected Attributes inherited from skgpu::ganesh::SurfaceContext | |
SkDEBUGCODE(void validate() const ;) SkDEBUGCODE(skgpu GrRecordingContext * | fContext |
GrSurfaceProxyView | fReadView |
Private Member Functions | |
virtual void | willReplaceOpsTask (OpsTask *prevTask, OpsTask *nextTask) |
virtual OpsTask::CanDiscardPreviousOps | canDiscardPreviousOpsOnFullClear () const |
Additional Inherited Members | |
Public Types inherited from skgpu::ganesh::SurfaceContext | |
using | ReadPixelsCallback = SkImage::ReadPixelsCallback |
using | ReadPixelsContext = SkImage::ReadPixelsContext |
using | RescaleGamma = SkImage::RescaleGamma |
using | RescaleMode = SkImage::RescaleMode |
Definition at line 17 of file SurfaceFillContext.h.
skgpu::ganesh::SurfaceFillContext::SurfaceFillContext | ( | GrRecordingContext * | rContext, |
GrSurfaceProxyView | readView, | ||
GrSurfaceProxyView | writeView, | ||
const GrColorInfo & | colorInfo | ||
) |
Definition at line 37 of file SurfaceFillContext.cpp.
|
protected |
Definition at line 156 of file SurfaceFillContext.cpp.
|
protected |
Definition at line 176 of file SurfaceFillContext.h.
|
inline |
Definition at line 111 of file SurfaceFillContext.h.
|
inlineoverridevirtual |
Reimplemented from skgpu::ganesh::SurfaceContext.
Definition at line 24 of file SurfaceFillContext.h.
bool skgpu::ganesh::SurfaceFillContext::blitTexture | ( | GrSurfaceProxyView | view, |
const SkIRect & | srcRect, | ||
const SkIPoint & | dstPoint | ||
) |
Draws the src texture with no matrix. The dstRect is the dstPoint with the width and height of the srcRect. The srcRect and dstRect are clipped to the bounds of the src and dst surfaces respectively.
Definition at line 110 of file SurfaceFillContext.cpp.
|
inlineprivatevirtual |
Override to be called to participate in the decision to discard all previous ops if a fullscreen clear occurs.
Definition at line 146 of file SurfaceFillContext.h.
|
inline |
Clear the rect of the render target to the given color.
rect | the rect to clear to |
color | the color to clear to. |
Definition at line 46 of file SurfaceFillContext.h.
|
inline |
Clears the entire render target to the color.
Definition at line 51 of file SurfaceFillContext.h.
|
inline |
Clear at minimum the pixels within 'scissor', but is allowed to clear the full render target if that is the more performant option.
Definition at line 60 of file SurfaceFillContext.h.
|
staticprotected |
Creates a constant color paint for a clear, using src-over if possible to improve batching.
Definition at line 143 of file SurfaceFillContext.cpp.
|
inlinestaticprotected |
Definition at line 1 of file SurfaceFillContext.h.
|
inlinestaticprotected |
Definition at line 1 of file SurfaceFillContext.h.
|
staticprotected |
void skgpu::ganesh::SurfaceFillContext::discard | ( | ) |
Provides a performance hint that the render target's contents are allowed to become undefined.
Definition at line 62 of file SurfaceFillContext.cpp.
|
inline |
Fills 'dstRect' with 'fp' using a local matrix that maps 'srcRect' to 'dstRect'
Definition at line 86 of file SurfaceFillContext.h.
|
inline |
Fills 'dstRect' with 'fp' using a local matrix that maps 'srcRect' to 'dstRect'
Definition at line 78 of file SurfaceFillContext.h.
void skgpu::ganesh::SurfaceFillContext::fillRectWithFP | ( | const SkIRect & | dstRect, |
const SkMatrix & | localMatrix, | ||
std::unique_ptr< GrFragmentProcessor > | fp | ||
) |
A convenience version of fillRectWithFP that applies a coordinate transformation via GrMatrixEffect.
Definition at line 103 of file SurfaceFillContext.cpp.
void skgpu::ganesh::SurfaceFillContext::fillRectWithFP | ( | const SkIRect & | dstRect, |
std::unique_ptr< GrFragmentProcessor > | fp | ||
) |
Fills 'dstRect' with 'fp'
Definition at line 86 of file SurfaceFillContext.cpp.
|
inline |
Fills the entire render target with the passed FP.
Definition at line 93 of file SurfaceFillContext.h.
OpsTask * skgpu::ganesh::SurfaceFillContext::getOpsTask | ( | ) |
Definition at line 51 of file SurfaceFillContext.cpp.
|
inline |
Definition at line 108 of file SurfaceFillContext.h.
sk_sp< GrRenderTask > skgpu::ganesh::SurfaceFillContext::refRenderTask | ( | ) |
Definition at line 131 of file SurfaceFillContext.cpp.
|
protected |
Definition at line 135 of file SurfaceFillContext.cpp.
void skgpu::ganesh::SurfaceFillContext::resolveMSAA | ( | ) |
Definition at line 73 of file SurfaceFillContext.cpp.
|
inline |
Definition at line 112 of file SurfaceFillContext.h.
|
inlineprivatevirtual |
Override to be notified in subclass before the current ops task is replaced.
Definition at line 140 of file SurfaceFillContext.h.
|
inline |
Definition at line 109 of file SurfaceFillContext.h.
|
inline |
Definition at line 114 of file SurfaceFillContext.h.
|
protected |
Definition at line 132 of file SurfaceFillContext.h.