| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrCopySurfaceBatch_DEFINED | 8 #ifndef GrCopySurfaceBatch_DEFINED |
| 9 #define GrCopySurfaceBatch_DEFINED | 9 #define GrCopySurfaceBatch_DEFINED |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 return rt ? rt->getUniqueID() : 0; | 37 return rt ? rt->getUniqueID() : 0; |
| 38 } | 38 } |
| 39 GrRenderTarget* renderTarget() const override { return nullptr; } | 39 GrRenderTarget* renderTarget() const override { return nullptr; } |
| 40 | 40 |
| 41 SkString dumpInfo() const override { | 41 SkString dumpInfo() const override { |
| 42 SkString string; | 42 SkString string; |
| 43 string.printf("SRC: 0x%p, DST: 0x%p, SRECT: [L: %d, T: %d, R: %d, B: %d]
, " | 43 string.printf("SRC: 0x%p, DST: 0x%p, SRECT: [L: %d, T: %d, R: %d, B: %d]
, " |
| 44 "DPT:[X: %d, Y: %d]", | 44 "DPT:[X: %d, Y: %d]", |
| 45 fDst.get(), fSrc.get(), fSrcRect.fLeft, fSrcRect.fTop, fSr
cRect.fRight, | 45 fDst.get(), fSrc.get(), fSrcRect.fLeft, fSrcRect.fTop, fSr
cRect.fRight, |
| 46 fSrcRect.fBottom, fDstPoint.fX, fDstPoint.fY); | 46 fSrcRect.fBottom, fDstPoint.fX, fDstPoint.fY); |
| 47 string.append(INHERITED::dumpInfo()); |
| 47 return string; | 48 return string; |
| 48 } | 49 } |
| 49 | 50 |
| 50 private: | 51 private: |
| 51 GrCopySurfaceBatch(GrSurface* dst, GrSurface* src, const SkIRect& srcRect, | 52 GrCopySurfaceBatch(GrSurface* dst, GrSurface* src, const SkIRect& srcRect, |
| 52 const SkIPoint& dstPoint) | 53 const SkIPoint& dstPoint) |
| 53 : INHERITED(ClassID()) | 54 : INHERITED(ClassID()) |
| 54 , fDst(dst) | 55 , fDst(dst) |
| 55 , fSrc(src) | 56 , fSrc(src) |
| 56 , fSrcRect(srcRect) | 57 , fSrcRect(srcRect) |
| (...skipping 17 matching lines...) Expand all Loading... |
| 74 | 75 |
| 75 GrPendingIOResource<GrSurface, kWrite_GrIOType> fDst; | 76 GrPendingIOResource<GrSurface, kWrite_GrIOType> fDst; |
| 76 GrPendingIOResource<GrSurface, kRead_GrIOType> fSrc; | 77 GrPendingIOResource<GrSurface, kRead_GrIOType> fSrc; |
| 77 SkIRect fSrcRect; | 78 SkIRect fSrcRect; |
| 78 SkIPoint fDstPoint; | 79 SkIPoint fDstPoint; |
| 79 | 80 |
| 80 typedef GrBatch INHERITED; | 81 typedef GrBatch INHERITED; |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 #endif | 84 #endif |
| OLD | NEW |