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/GrImmediateDrawTarget.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/GrGpuResourceRef.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 #if 0
12 #include "GrDrawTarget.h"
13
14 #include "GrBatchFlushState.h"
15
16 /**
17 * A debug GrDrawTarget which immediately flushes every command it receives
18 */
19 class GrImmediateDrawTarget : public GrClipTarget {
20 public:
21 /**
22 * Creates a GrImmediateDrawTarget
23 *
24 * @param context the context object that owns this draw buffer.
25 */
26 GrImmediateDrawTarget(GrDrawContext* dc, GrRenderTarget* rt, GrContext* cont ext);
27
28 ~GrImmediateDrawTarget() override;
29
30 protected:
31 void onDrawBatch(GrBatch*) override;
32
33 private:
34 void onReset() override;
35 void onFlush() override;
36
37 void onDrawPaths(const GrPathProcessor*,
38 const GrPathRange*,
39 const void* indices,
40 PathIndexType,
41 const float transformValues[],
42 PathTransformType,
43 int count,
44 const GrStencilSettings&,
45 const PipelineInfo&) override {
46 SkFAIL("Only batch implemented\n");
47 }
48
49 bool isIssued(uint32_t drawID) override { return drawID != fDrawID; }
50
51 uint32_t fDrawID;
52
53 typedef GrClipTarget INHERITED;
54 };
55 #endif
56
57 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrGpuResourceRef.cpp ('k') | src/gpu/GrImmediateDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698