| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 const GrStencilSettings&, | 218 const GrStencilSettings&, |
| 219 const GrDeviceCoordTexture*) SK_OVERRIDE; | 219 const GrDeviceCoordTexture*) SK_OVERRIDE; |
| 220 void onClear(const SkIRect* rect, | 220 void onClear(const SkIRect* rect, |
| 221 GrColor color, | 221 GrColor color, |
| 222 bool canIgnoreRect, | 222 bool canIgnoreRect, |
| 223 GrRenderTarget* renderTarget) SK_OVERRIDE; | 223 GrRenderTarget* renderTarget) SK_OVERRIDE; |
| 224 bool onCopySurface(GrSurface* dst, | 224 bool onCopySurface(GrSurface* dst, |
| 225 GrSurface* src, | 225 GrSurface* src, |
| 226 const SkIRect& srcRect, | 226 const SkIRect& srcRect, |
| 227 const SkIPoint& dstPoint) SK_OVERRIDE; | 227 const SkIPoint& dstPoint) SK_OVERRIDE; |
| 228 bool onCanCopySurface(const GrSurface* dst, | |
| 229 const GrSurface* src, | |
| 230 const SkIRect& srcRect, | |
| 231 const SkIPoint& dstPoint) SK_OVERRIDE; | |
| 232 bool onInitCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) SK_
OVERRIDE; | |
| 233 | 228 |
| 234 // Attempts to concat instances from info onto the previous draw. info must
represent an | 229 // Attempts to concat instances from info onto the previous draw. info must
represent an |
| 235 // instanced draw. The caller must have already recorded a new draw state an
d clip if necessary. | 230 // instanced draw. The caller must have already recorded a new draw state an
d clip if necessary. |
| 236 int concatInstancedDraw(const GrDrawState&, const DrawInfo&); | 231 int concatInstancedDraw(const GrDrawState&, const DrawInfo&); |
| 237 | 232 |
| 238 // Determines whether the current draw operation requires a new GrOptDrawSta
te and if so | 233 // Determines whether the current draw operation requires a new GrOptDrawSta
te and if so |
| 239 // records it. If the draw can be skipped false is returned and no new GrOpt
DrawState is | 234 // records it. If the draw can be skipped false is returned and no new GrOpt
DrawState is |
| 240 // recorded. | 235 // recorded. |
| 241 bool SK_WARN_UNUSED_RESULT recordStateAndShouldDraw(const GrDrawState&, | 236 bool SK_WARN_UNUSED_RESULT recordStateAndShouldDraw(const GrDrawState&, |
| 242 GrGpu::DrawType, | 237 GrGpu::DrawType, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 260 const GrOptDrawState* fPrevState; | 255 const GrOptDrawState* fPrevState; |
| 261 SkTArray<GrTraceMarkerSet, false> fGpuCmdMarkers; | 256 SkTArray<GrTraceMarkerSet, false> fGpuCmdMarkers; |
| 262 SkTDArray<char> fPathIndexBuffer; | 257 SkTDArray<char> fPathIndexBuffer; |
| 263 SkTDArray<float> fPathTransformBuffer; | 258 SkTDArray<float> fPathTransformBuffer; |
| 264 uint32_t fDrawID; | 259 uint32_t fDrawID; |
| 265 | 260 |
| 266 typedef GrFlushToGpuDrawTarget INHERITED; | 261 typedef GrFlushToGpuDrawTarget INHERITED; |
| 267 }; | 262 }; |
| 268 | 263 |
| 269 #endif | 264 #endif |
| OLD | NEW |