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

Side by Side Diff: src/gpu/GrImmediateDrawTarget.h

Issue 1293583002: Introduce GrBatch subclasses GrDrawBatch and GrVertexBatch to prepare for non-drawing batches (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove duplicated fields in GrVertexBatch Created 5 years, 4 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/GrDrawTarget.cpp ('k') | src/gpu/GrImmediateDrawTarget.cpp » ('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 GrImmediateDrawTarget_DEFINED 8 #ifndef GrImmediateDrawTarget_DEFINED
9 #define GrImmediateDrawTarget_DEFINED 9 #define GrImmediateDrawTarget_DEFINED
10 10
(...skipping 19 matching lines...) Expand all
30 bool insideClip, 30 bool insideClip,
31 GrRenderTarget* renderTarget) override; 31 GrRenderTarget* renderTarget) override;
32 32
33 void discard(GrRenderTarget*) override; 33 void discard(GrRenderTarget*) override;
34 34
35 private: 35 private:
36 void onReset() override; 36 void onReset() override;
37 void onFlush() override; 37 void onFlush() override;
38 38
39 // overrides from GrDrawTarget 39 // overrides from GrDrawTarget
40 void onDrawBatch(GrBatch*) override; 40 void onDrawBatch(GrDrawBatch*) override;
41 void onStencilPath(const GrPipelineBuilder&, 41 void onStencilPath(const GrPipelineBuilder&,
42 const GrPathProcessor*, 42 const GrPathProcessor*,
43 const GrPath*, 43 const GrPath*,
44 const GrScissorState&, 44 const GrScissorState&,
45 const GrStencilSettings&) override { 45 const GrStencilSettings&) override {
46 SkFAIL("Only batch implemented\n"); 46 SkFAIL("Only batch implemented\n");
47 } 47 }
48 void onDrawPath(const GrPathProcessor*, 48 void onDrawPath(const GrPathProcessor*,
49 const GrPath*, 49 const GrPath*,
50 const GrStencilSettings&, 50 const GrStencilSettings&,
(...skipping 21 matching lines...) Expand all
72 72
73 bool isIssued(uint32_t drawID) override { return drawID != fDrawID; } 73 bool isIssued(uint32_t drawID) override { return drawID != fDrawID; }
74 74
75 GrBatchTarget fBatchTarget; 75 GrBatchTarget fBatchTarget;
76 uint32_t fDrawID; 76 uint32_t fDrawID;
77 77
78 typedef GrClipTarget INHERITED; 78 typedef GrClipTarget INHERITED;
79 }; 79 };
80 80
81 #endif 81 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrImmediateDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698