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

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

Issue 1129943004: Initial CL to create Reorder command builder behind a flag (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more tidying Created 5 years, 7 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/GrInOrderDrawBuffer.cpp ('k') | src/gpu/GrReorderCommandBuilder.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 GrInOrderCommandBuilder_DEFINED 8 #ifndef GrReorderCommandBuilder_DEFINED
9 #define GrInOrderCommandBuilder_DEFINED 9 #define GrReorderCommandBuilder_DEFINED
10 10
11 #include "GrCommandBuilder.h" 11 #include "GrCommandBuilder.h"
12 12
13 class GrInOrderCommandBuilder : public GrCommandBuilder { 13 class GrReorderCommandBuilder : public GrCommandBuilder {
14 public: 14 public:
15 typedef GrCommandBuilder::Cmd Cmd; 15 typedef GrCommandBuilder::Cmd Cmd;
16 typedef GrCommandBuilder::State State; 16 typedef GrCommandBuilder::State State;
17 17
18 GrInOrderCommandBuilder(GrGpu* gpu) : INHERITED(gpu) { } 18 GrReorderCommandBuilder(GrGpu* gpu) : INHERITED(gpu) {}
19 19
20 Cmd* recordDrawBatch(State*, GrBatch*) override; 20 Cmd* recordDrawBatch(State*, GrBatch*) override;
21 Cmd* recordStencilPath(const GrPipelineBuilder&, 21 Cmd* recordStencilPath(const GrPipelineBuilder&,
22 const GrPathProcessor*, 22 const GrPathProcessor*,
23 const GrPath*, 23 const GrPath*,
24 const GrScissorState&, 24 const GrScissorState&,
25 const GrStencilSettings&) override; 25 const GrStencilSettings&) override {
26 SkFAIL("Unsupported\n");
27 return NULL;
28 }
29
26 Cmd* recordDrawPath(State*, 30 Cmd* recordDrawPath(State*,
27 const GrPathProcessor*, 31 const GrPathProcessor*,
28 const GrPath*, 32 const GrPath*,
29 const GrStencilSettings&) override; 33 const GrStencilSettings&) override {
34 SkFAIL("Unsupported\n");
35 return NULL;
36 }
37
30 Cmd* recordDrawPaths(State*, 38 Cmd* recordDrawPaths(State*,
31 GrInOrderDrawBuffer*, 39 GrInOrderDrawBuffer*,
32 const GrPathProcessor*, 40 const GrPathProcessor*,
33 const GrPathRange*, 41 const GrPathRange*,
34 const void*, 42 const void*,
35 GrDrawTarget::PathIndexType, 43 GrDrawTarget::PathIndexType,
36 const float transformValues[], 44 const float transformValues[],
37 GrDrawTarget::PathTransformType , 45 GrDrawTarget::PathTransformType ,
38 int, 46 int,
39 const GrStencilSettings&, 47 const GrStencilSettings&,
40 const GrDrawTarget::PipelineInfo&) override; 48 const GrDrawTarget::PipelineInfo&) override {
49 SkFAIL("Unsupported\n");
50 return NULL;
51 }
41 52
42 private: 53 private:
43 typedef GrCommandBuilder INHERITED; 54 typedef GrCommandBuilder INHERITED;
44 55
45 }; 56 };
46 57
47 #endif 58 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/GrReorderCommandBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698