Chromium Code Reviews| Index: src/gpu/GrDrawTarget.h |
| =================================================================== |
| --- src/gpu/GrDrawTarget.h (revision 8438) |
| +++ src/gpu/GrDrawTarget.h (working copy) |
| @@ -655,24 +655,35 @@ |
| } |
| const SkRect* getDevBounds() const { return fDevBounds; } |
| + // NULL if no copy of the dst is needed for the draw. |
|
robertphillips
2013/03/29 18:32:57
requiresDstCopy? dstCopyNeeded?
bsalomon
2013/03/29 18:59:38
but it actually returns the copy, not a bool. Chan
|
| + const GrDeviceCoordTexture* dstCopy() const { |
| + if (NULL != fDstCopy.texture()) { |
| + return &fDstCopy; |
| + } else { |
| + return NULL; |
| + } |
| + } |
| + |
| private: |
| DrawInfo() { fDevBounds = NULL; } |
| friend class GrDrawTarget; |
| - GrPrimitiveType fPrimitiveType; |
| + GrPrimitiveType fPrimitiveType; |
| - int fStartVertex; |
| - int fStartIndex; |
| - int fVertexCount; |
| - int fIndexCount; |
| + int fStartVertex; |
| + int fStartIndex; |
| + int fVertexCount; |
| + int fIndexCount; |
| - int fInstanceCount; |
| - int fVerticesPerInstance; |
| - int fIndicesPerInstance; |
| + int fInstanceCount; |
| + int fVerticesPerInstance; |
| + int fIndicesPerInstance; |
| - SkRect fDevBoundsStorage; |
| - SkRect* fDevBounds; |
| + SkRect fDevBoundsStorage; |
| + SkRect* fDevBounds; |
| + |
| + GrDeviceCoordTexture fDstCopy; |
| }; |
| private: |
| @@ -714,6 +725,8 @@ |
| void releasePreviousVertexSource(); |
| void releasePreviousIndexSource(); |
|
robertphillips
2013/03/29 18:32:57
// Return true on success; false on failure
bsalomon
2013/03/29 18:59:38
Done.
|
| + bool setupDstReadIfNecessary(DrawInfo* info); |
| + |
| enum { |
| kPreallocGeoSrcStateStackCnt = 4, |
| }; |