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

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

Issue 1301823002: Put drawPath in GrBatch. (Closed) Base URL: https://skia.googlesource.com/skia.git@nvprbatch
Patch Set: update 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/GrInOrderCommandBuilder.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 GrImmediateDrawTarget_DEFINED 8 #ifndef GrImmediateDrawTarget_DEFINED
9 #define GrImmediateDrawTarget_DEFINED 9 #define GrImmediateDrawTarget_DEFINED
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 ~GrImmediateDrawTarget() override; 27 ~GrImmediateDrawTarget() override;
28 28
29 protected: 29 protected:
30 void onDrawBatch(GrBatch*) override; 30 void onDrawBatch(GrBatch*) override;
31 31
32 private: 32 private:
33 void onReset() override; 33 void onReset() override;
34 void onFlush() override; 34 void onFlush() override;
35 35
36 void onDrawPath(const GrPathProcessor*,
37 const GrPath*,
38 const GrStencilSettings&,
39 const PipelineInfo&) override {
40 SkFAIL("Only batch implemented\n");
41 }
42 void onDrawPaths(const GrPathProcessor*, 36 void onDrawPaths(const GrPathProcessor*,
43 const GrPathRange*, 37 const GrPathRange*,
44 const void* indices, 38 const void* indices,
45 PathIndexType, 39 PathIndexType,
46 const float transformValues[], 40 const float transformValues[],
47 PathTransformType, 41 PathTransformType,
48 int count, 42 int count,
49 const GrStencilSettings&, 43 const GrStencilSettings&,
50 const PipelineInfo&) override { 44 const PipelineInfo&) override {
51 SkFAIL("Only batch implemented\n"); 45 SkFAIL("Only batch implemented\n");
52 } 46 }
53 47
54 bool isIssued(uint32_t drawID) override { return drawID != fDrawID; } 48 bool isIssued(uint32_t drawID) override { return drawID != fDrawID; }
55 49
56 uint32_t fDrawID; 50 uint32_t fDrawID;
57 51
58 typedef GrClipTarget INHERITED; 52 typedef GrClipTarget INHERITED;
59 }; 53 };
60 54
61 #endif 55 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrInOrderCommandBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698