OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrInOrderDrawBuffer_DEFINED | 8 #ifndef GrInOrderDrawBuffer_DEFINED |
9 #define GrInOrderDrawBuffer_DEFINED | 9 #define GrInOrderDrawBuffer_DEFINED |
10 | 10 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 const GrStencilSettings&, | 124 const GrStencilSettings&, |
125 const PipelineInfo&) override; | 125 const PipelineInfo&) override; |
126 void onClear(const SkIRect* rect, | 126 void onClear(const SkIRect* rect, |
127 GrColor color, | 127 GrColor color, |
128 bool canIgnoreRect, | 128 bool canIgnoreRect, |
129 GrRenderTarget* renderTarget) override; | 129 GrRenderTarget* renderTarget) override; |
130 bool onCopySurface(GrSurface* dst, | 130 bool onCopySurface(GrSurface* dst, |
131 GrSurface* src, | 131 GrSurface* src, |
132 const SkIRect& srcRect, | 132 const SkIRect& srcRect, |
133 const SkIPoint& dstPoint) override; | 133 const SkIPoint& dstPoint) override; |
| 134 void onBlendBarrier() override; |
134 | 135 |
135 // Attempts to concat instances from info onto the previous draw. info must
represent an | 136 // Attempts to concat instances from info onto the previous draw. info must
represent an |
136 // instanced draw. The caller must have already recorded a new draw state an
d clip if necessary. | 137 // instanced draw. The caller must have already recorded a new draw state an
d clip if necessary. |
137 int concatInstancedDraw(const DrawInfo&); | 138 int concatInstancedDraw(const DrawInfo&); |
138 | 139 |
139 // We lazily record clip changes in order to skip clips that have no effect. | 140 // We lazily record clip changes in order to skip clips that have no effect. |
140 void recordClipIfNecessary(); | 141 void recordClipIfNecessary(); |
141 // Records any trace markers for a command | 142 // Records any trace markers for a command |
142 void recordTraceMarkersIfNecessary(GrTargetCommands::Cmd*); | 143 void recordTraceMarkersIfNecessary(GrTargetCommands::Cmd*); |
143 SkString getCmdString(int index) const { | 144 SkString getCmdString(int index) const { |
(...skipping 11 matching lines...) Expand all Loading... |
155 GrTargetCommands fCommands; | 156 GrTargetCommands fCommands; |
156 SkTArray<GrTraceMarkerSet, false> fGpuCmdMarkers; | 157 SkTArray<GrTraceMarkerSet, false> fGpuCmdMarkers; |
157 SkChunkAlloc fPathIndexBuffer; | 158 SkChunkAlloc fPathIndexBuffer; |
158 SkChunkAlloc fPathTransformBuffer; | 159 SkChunkAlloc fPathTransformBuffer; |
159 uint32_t fDrawID; | 160 uint32_t fDrawID; |
160 | 161 |
161 typedef GrFlushToGpuDrawTarget INHERITED; | 162 typedef GrFlushToGpuDrawTarget INHERITED; |
162 }; | 163 }; |
163 | 164 |
164 #endif | 165 #endif |
OLD | NEW |