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

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

Issue 1315513008: Cleanup GrDrawTarget now that all paths lead to GrBatch (Closed) Base URL: https://skia.googlesource.com/skia.git@patharray
Patch Set: remove change to SampleApp.cpp 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 | « 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
(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 GrImmediateDrawTarget_DEFINED
9 #define GrImmediateDrawTarget_DEFINED
10
11 #include "GrDrawTarget.h"
12
13 #include "GrBatchFlushState.h"
14
15 /**
16 * A debug GrDrawTarget which immediately flushes every command it receives
17 */
18 class GrImmediateDrawTarget : public GrClipTarget {
19 public:
20 /**
21 * Creates a GrImmediateDrawTarget
22 *
23 * @param context the context object that owns this draw buffer.
24 */
25 GrImmediateDrawTarget(GrContext* context);
26
27 ~GrImmediateDrawTarget() override;
28
29 protected:
30 void onDrawBatch(GrBatch*) override;
31
32 private:
33 void onReset() override;
34 void onFlush() override;
35
36 uint32_t fDrawID;
37
38 typedef GrClipTarget INHERITED;
39 };
40
41 #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