Chromium Code Reviews| Index: src/gpu/GrTargetCommands.h |
| diff --git a/src/gpu/GrTargetCommands.h b/src/gpu/GrTargetCommands.h |
| index 8c0a3fd0ca204ee6c8aab66e1e7abc4a2a9df6b3..badcadbf8188ec5e66573f2158e7070016abbe1e 100644 |
| --- a/src/gpu/GrTargetCommands.h |
| +++ b/src/gpu/GrTargetCommands.h |
| @@ -71,7 +71,6 @@ public: |
| Cmd* recordClearStencilClip(const SkIRect& rect, |
| bool insideClip, |
| GrRenderTarget* renderTarget); |
| - |
| Cmd* recordDiscard(GrRenderTarget*); |
| Cmd* recordDrawBatch(State*, GrBatch*); |
| Cmd* recordStencilPath(const GrPipelineBuilder&, |
| @@ -104,6 +103,7 @@ public: |
| const SkIPoint& dstPoint); |
| private: |
| + friend class GrCommandBuilder; |
|
bsalomon
2015/05/05 15:07:48
:'-(
|
| friend class GrInOrderDrawBuffer; |
| typedef GrGpu::DrawArgs DrawArgs; |
| @@ -293,6 +293,9 @@ private: |
| typedef void* TCmdAlign; // This wouldn't be enough align if a command used long double. |
| typedef GrTRecorder<Cmd, TCmdAlign> CmdBuffer; |
| + CmdBuffer* cmdBuffer() { return &fCmdBuffer; } |
| + GrBatchTarget* batchTarget() { return &fBatchTarget; } |
| + |
| CmdBuffer fCmdBuffer; |
| GrBatchTarget fBatchTarget; |
| }; |