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

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

Issue 1494473005: Add option to draw wireframe batch bounds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: init vbo id to 0 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(); }
34 35
35 SkString dumpInfo() const override { 36 SkString dumpInfo() const override {
36 SkString string; 37 SkString string;
37 string.printf("PATH: 0x%p, AA:%d", fPath.get(), fUseHWAA); 38 string.printf("PATH: 0x%p, AA:%d", fPath.get(), fUseHWAA);
38 return string; 39 return string;
39 } 40 }
40 41
41 private: 42 private:
42 GrStencilPathBatch(const SkMatrix& viewMatrix, 43 GrStencilPathBatch(const SkMatrix& viewMatrix,
43 bool useHWAA, 44 bool useHWAA,
(...skipping 25 matching lines...) Expand all
69 bool fUseHWAA; 70 bool fUseHWAA;
70 GrStencilSettings fStencil; 71 GrStencilSettings fStencil;
71 GrScissorState fScissor; 72 GrScissorState fScissor;
72 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget; 73 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget;
73 GrPendingIOResource<const GrPath, kRead_GrIOType> fPath; 74 GrPendingIOResource<const GrPath, kRead_GrIOType> fPath;
74 75
75 typedef GrBatch INHERITED; 76 typedef GrBatch INHERITED;
76 }; 77 };
77 78
78 #endif 79 #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