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

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

Issue 1492633007: Revert of Add option to draw wireframe batch bounds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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/GrDrawBatch.h ('k') | src/gpu/gl/GrGLGpu.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 GrStencilPathBatch_DEFINED 8 #ifndef GrStencilPathBatch_DEFINED
9 #define GrStencilPathBatch_DEFINED 9 #define GrStencilPathBatch_DEFINED
10 10
(...skipping 13 matching lines...) Expand all
24 const GrStencilSettings& stencil, 24 const GrStencilSettings& stencil,
25 const GrScissorState& scissor, 25 const GrScissorState& scissor,
26 GrRenderTarget* renderTarget, 26 GrRenderTarget* renderTarget,
27 const GrPath* path) { 27 const GrPath* path) {
28 return new GrStencilPathBatch(viewMatrix, useHWAA, stencil, scissor, ren derTarget, path); 28 return new GrStencilPathBatch(viewMatrix, useHWAA, stencil, scissor, ren derTarget, path);
29 } 29 }
30 30
31 const char* name() const override { return "StencilPath"; } 31 const char* name() const override { return "StencilPath"; }
32 32
33 uint32_t renderTargetUniqueID() const override { return fRenderTarget.get()- >getUniqueID(); } 33 uint32_t renderTargetUniqueID() const override { return fRenderTarget.get()- >getUniqueID(); }
34 GrRenderTarget* renderTarget() const override { return fRenderTarget.get(); }
35 34
36 SkString dumpInfo() const override { 35 SkString dumpInfo() const override {
37 SkString string; 36 SkString string;
38 string.printf("PATH: 0x%p, AA:%d", fPath.get(), fUseHWAA); 37 string.printf("PATH: 0x%p, AA:%d", fPath.get(), fUseHWAA);
39 return string; 38 return string;
40 } 39 }
41 40
42 private: 41 private:
43 GrStencilPathBatch(const SkMatrix& viewMatrix, 42 GrStencilPathBatch(const SkMatrix& viewMatrix,
44 bool useHWAA, 43 bool useHWAA,
(...skipping 25 matching lines...) Expand all
70 bool fUseHWAA; 69 bool fUseHWAA;
71 GrStencilSettings fStencil; 70 GrStencilSettings fStencil;
72 GrScissorState fScissor; 71 GrScissorState fScissor;
73 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget; 72 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget;
74 GrPendingIOResource<const GrPath, kRead_GrIOType> fPath; 73 GrPendingIOResource<const GrPath, kRead_GrIOType> fPath;
75 74
76 typedef GrBatch INHERITED; 75 typedef GrBatch INHERITED;
77 }; 76 };
78 77
79 #endif 78 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrDrawBatch.h ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698