Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: src/gpu/batches/GrCopySurfaceBatch.h

Issue 2108503004: Dump batch bounds and scissor rect (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to match B.'s formatting Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/batches/GrClearBatch.h ('k') | src/gpu/batches/GrDiscardBatch.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/gpu/batches/GrClearBatch.h ('k') | src/gpu/batches/GrDiscardBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698