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

Side by Side Diff: src/gpu/batches/GrStencilPathBatch.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/GrDrawPathBatch.cpp ('k') | no next file » | 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 GrStencilPathBatch_DEFINED 8 #ifndef GrStencilPathBatch_DEFINED
9 #define GrStencilPathBatch_DEFINED 9 #define GrStencilPathBatch_DEFINED
10 10
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 33
34 const char* name() const override { return "StencilPath"; } 34 const char* name() const override { return "StencilPath"; }
35 35
36 uint32_t renderTargetUniqueID() const override { return fRenderTarget.get()- >getUniqueID(); } 36 uint32_t renderTargetUniqueID() const override { return fRenderTarget.get()- >getUniqueID(); }
37 GrRenderTarget* renderTarget() const override { return fRenderTarget.get(); } 37 GrRenderTarget* renderTarget() const override { return fRenderTarget.get(); }
38 38
39 SkString dumpInfo() const override { 39 SkString dumpInfo() const override {
40 SkString string; 40 SkString string;
41 string.printf("PATH: 0x%p, AA:%d", fPath.get(), fUseHWAA); 41 string.printf("PATH: 0x%p, AA:%d", fPath.get(), fUseHWAA);
42 string.append(INHERITED::dumpInfo());
42 return string; 43 return string;
43 } 44 }
44 45
45 private: 46 private:
46 GrStencilPathBatch(const SkMatrix& viewMatrix, 47 GrStencilPathBatch(const SkMatrix& viewMatrix,
47 bool useHWAA, 48 bool useHWAA,
48 GrPathRendering::FillType fillType, 49 GrPathRendering::FillType fillType,
49 bool hasStencilClip, 50 bool hasStencilClip,
50 int numStencilBits, 51 int numStencilBits,
51 const GrScissorState& scissor, 52 const GrScissorState& scissor,
(...skipping 23 matching lines...) Expand all
75 bool fUseHWAA; 76 bool fUseHWAA;
76 GrStencilSettings fStencil; 77 GrStencilSettings fStencil;
77 GrScissorState fScissor; 78 GrScissorState fScissor;
78 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget; 79 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget;
79 GrPendingIOResource<const GrPath, kRead_GrIOType> fPath; 80 GrPendingIOResource<const GrPath, kRead_GrIOType> fPath;
80 81
81 typedef GrBatch INHERITED; 82 typedef GrBatch INHERITED;
82 }; 83 };
83 84
84 #endif 85 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrDrawPathBatch.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698