OLD | NEW |
(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 |
OLD | NEW |