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

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

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 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/GrClipMaskManager.cpp ('k') | src/gpu/GrCommandBuilder.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef GrCommandBuilder_DEFINED
9 #define GrCommandBuilder_DEFINED
10
11 #include "GrTargetCommands.h"
12
13 class GrGpu;
14 class GrResourceProvider;
15 class GrBufferedDrawTarget;
16
17 class GrCommandBuilder : ::SkNoncopyable {
18 public:
19 bool empty() const { return fCommands.empty(); }
20 typedef GrTargetCommands::Cmd Cmd;
21 typedef GrTargetCommands::StateForPathDraw State;
22
23 static GrCommandBuilder* Create(GrFoo* foo, GrGpu* gpu, bool reorder, GrRend erTarget* dst);
24
25 virtual ~GrCommandBuilder() {}
26
27 void reset() { fCommands.reset(); }
28 void flush(GrGpu* gpu, GrResourceProvider* rp) { fCommands.flush(gpu, rp); }
29
30 virtual Cmd* recordDrawBatch(GrBatch*, const GrCaps&) = 0;
31 virtual Cmd* recordDrawPaths(State*,
32 GrBufferedDrawTarget*,
33 const GrPathProcessor*,
34 const GrPathRange*,
35 const void*,
36 GrDrawTarget::PathIndexType,
37 const float transformValues[],
38 GrDrawTarget::PathTransformType ,
39 int,
40 const GrStencilSettings&,
41 const GrPipelineOptimizations&) = 0;
42
43 protected:
44 typedef GrTargetCommands::DrawBatch DrawBatch;
45 typedef GrTargetCommands::DrawPath DrawPath;
46 typedef GrTargetCommands::DrawPaths DrawPaths;
47
48 GrCommandBuilder(GrFoo* foo, GrGpu* gpu, GrRenderTarget* dst) : fCommands(fo o, gpu, dst) {}
49
50 GrTargetCommands::CmdBuffer* cmdBuffer() { return fCommands.cmdBuffer(); }
51 private:
52 GrTargetCommands fCommands;
53
54 };
55
56 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/GrCommandBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698