Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | List of all members
GrDstProxyView Class Reference

#include <GrDstProxyView.h>

Public Types

using sk_is_trivially_relocatable = std::true_type
 

Public Member Functions

 GrDstProxyView ()
 
 GrDstProxyView (const GrDstProxyView &other)
 
GrDstProxyViewoperator= (const GrDstProxyView &other)
 
bool operator== (const GrDstProxyView &that) const
 
bool operator!= (const GrDstProxyView &that) const
 
const SkIPointoffset () const
 
void setOffset (const SkIPoint &offset)
 
void setOffset (int ox, int oy)
 
GrSurfaceProxyproxy () const
 
const GrSurfaceProxyViewproxyView () const
 
void setProxyView (GrSurfaceProxyView view)
 
GrDstSampleFlags dstSampleFlags () const
 
void setDstSampleFlags (GrDstSampleFlags dstSampleFlags)
 

Detailed Description

GrDstProxyView holds a texture containing the destination pixel values, and an integer-coordinate offset from device-space to the space of the texture. When framebuffer fetch is not available, a GrDstProxyView may be used to support blending in the fragment shader/xfer processor.

Definition at line 20 of file GrDstProxyView.h.

Member Typedef Documentation

◆ sk_is_trivially_relocatable

Definition at line 61 of file GrDstProxyView.h.

Constructor & Destructor Documentation

◆ GrDstProxyView() [1/2]

GrDstProxyView::GrDstProxyView ( )
inline

Definition at line 22 of file GrDstProxyView.h.

22{}

◆ GrDstProxyView() [2/2]

GrDstProxyView::GrDstProxyView ( const GrDstProxyView other)
inline

Definition at line 24 of file GrDstProxyView.h.

24 {
25 *this = other;
26 }

Member Function Documentation

◆ dstSampleFlags()

GrDstSampleFlags GrDstProxyView::dstSampleFlags ( ) const
inline

Definition at line 57 of file GrDstProxyView.h.

57{ return fDstSampleFlags; }

◆ offset()

const SkIPoint & GrDstProxyView::offset ( ) const
inline

Definition at line 42 of file GrDstProxyView.h.

42{ return fOffset; }

◆ operator!=()

bool GrDstProxyView::operator!= ( const GrDstProxyView that) const
inline

Definition at line 40 of file GrDstProxyView.h.

40{ return !(*this == that); }

◆ operator=()

GrDstProxyView & GrDstProxyView::operator= ( const GrDstProxyView other)
inline

Definition at line 28 of file GrDstProxyView.h.

28 {
29 fProxyView = other.fProxyView;
30 fOffset = other.fOffset;
31 fDstSampleFlags = other.fDstSampleFlags;
32 return *this;
33 }

◆ operator==()

bool GrDstProxyView::operator== ( const GrDstProxyView that) const
inline

Definition at line 35 of file GrDstProxyView.h.

35 {
36 return fProxyView == that.fProxyView &&
37 fOffset == that.fOffset &&
38 fDstSampleFlags == that.fDstSampleFlags;
39 }

◆ proxy()

GrSurfaceProxy * GrDstProxyView::proxy ( ) const
inline

Definition at line 47 of file GrDstProxyView.h.

47{ return fProxyView.proxy(); }
GrSurfaceProxy * proxy() const

◆ proxyView()

const GrSurfaceProxyView & GrDstProxyView::proxyView ( ) const
inline

Definition at line 48 of file GrDstProxyView.h.

48{ return fProxyView; }

◆ setDstSampleFlags()

void GrDstProxyView::setDstSampleFlags ( GrDstSampleFlags  dstSampleFlags)
inline

Definition at line 59 of file GrDstProxyView.h.

59{ fDstSampleFlags = dstSampleFlags; }
GrDstSampleFlags dstSampleFlags() const

◆ setOffset() [1/2]

void GrDstProxyView::setOffset ( const SkIPoint offset)
inline

Definition at line 44 of file GrDstProxyView.h.

44{ fOffset = offset; }
const SkIPoint & offset() const

◆ setOffset() [2/2]

void GrDstProxyView::setOffset ( int  ox,
int  oy 
)
inline

Definition at line 45 of file GrDstProxyView.h.

45{ fOffset.set(ox, oy); }
void set(int32_t x, int32_t y)
Definition: SkPoint_impl.h:65

◆ setProxyView()

void GrDstProxyView::setProxyView ( GrSurfaceProxyView  view)
inline

Definition at line 50 of file GrDstProxyView.h.

50 {
51 fProxyView = std::move(view);
52 if (!fProxyView.proxy()) {
53 fOffset = {0, 0};
54 }
55 }

The documentation for this class was generated from the following file: