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

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

Issue 1340563003: remove dead code not mentioned in any GYP (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | 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 typedef GrTargetCommands::Cmd Cmd;
20
21 static GrCommandBuilder* Create(GrGpu* gpu, bool reorder);
22
23 virtual ~GrCommandBuilder() {}
24
25 void reset() { fCommands.reset(); }
26 void flush(GrGpu* gpu, GrResourceProvider* rp) { fCommands.flush(gpu, rp); }
27
28 virtual Cmd* recordDrawBatch(GrBatch*, const GrCaps&) = 0;
29
30 protected:
31 typedef GrTargetCommands::DrawBatch DrawBatch;
32
33 GrCommandBuilder() {}
34
35 GrTargetCommands::CmdBuffer* cmdBuffer() { return fCommands.cmdBuffer(); }
36 private:
37 GrTargetCommands fCommands;
38
39 };
40
41 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrCommandBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698