| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 */ | 69 */ |
| 70 void flush(); | 70 void flush(); |
| 71 | 71 |
| 72 // tracking for draws | 72 // tracking for draws |
| 73 virtual DrawToken getCurrentDrawToken() { return DrawToken(this, fDrawID); } | 73 virtual DrawToken getCurrentDrawToken() { return DrawToken(this, fDrawID); } |
| 74 | 74 |
| 75 // overrides from GrDrawTarget | 75 // overrides from GrDrawTarget |
| 76 virtual bool geometryHints(int* vertexCount, | 76 virtual bool geometryHints(int* vertexCount, |
| 77 int* indexCount) const SK_OVERRIDE; | 77 int* indexCount) const SK_OVERRIDE; |
| 78 | 78 |
| 79 virtual bool copySurface(GrSurface* dst, |
| 80 GrSurface* src, |
| 81 const SkIRect& srcRect, |
| 82 const SkIPoint& dstPoint) SK_OVERRIDE; |
| 83 |
| 84 virtual bool canCopySurface(GrSurface* dst, |
| 85 GrSurface* src, |
| 86 const SkIRect& srcRect, |
| 87 const SkIPoint& dstPoint) SK_OVERRIDE; |
| 88 |
| 79 virtual void clear(const SkIRect* rect, | 89 virtual void clear(const SkIRect* rect, |
| 80 GrColor color, | 90 GrColor color, |
| 81 bool canIgnoreRect, | 91 bool canIgnoreRect, |
| 82 GrRenderTarget* renderTarget) SK_OVERRIDE; | 92 GrRenderTarget* renderTarget) SK_OVERRIDE; |
| 83 | 93 |
| 84 virtual void clearStencilClip(const SkIRect& rect, | 94 virtual void clearStencilClip(const SkIRect& rect, |
| 85 bool insideClip, | 95 bool insideClip, |
| 86 GrRenderTarget* renderTarget) SK_OVERRIDE; | 96 GrRenderTarget* renderTarget) SK_OVERRIDE; |
| 87 | 97 |
| 88 virtual void discard(GrRenderTarget*) SK_OVERRIDE; | 98 virtual void discard(GrRenderTarget*) SK_OVERRIDE; |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 virtual void onSetVertexSourceToArray(const void* vertexArray, | 285 virtual void onSetVertexSourceToArray(const void* vertexArray, |
| 276 int vertexCount) SK_OVERRIDE; | 286 int vertexCount) SK_OVERRIDE; |
| 277 virtual void onSetIndexSourceToArray(const void* indexArray, | 287 virtual void onSetIndexSourceToArray(const void* indexArray, |
| 278 int indexCount) SK_OVERRIDE; | 288 int indexCount) SK_OVERRIDE; |
| 279 virtual void releaseVertexArray() SK_OVERRIDE; | 289 virtual void releaseVertexArray() SK_OVERRIDE; |
| 280 virtual void releaseIndexArray() SK_OVERRIDE; | 290 virtual void releaseIndexArray() SK_OVERRIDE; |
| 281 virtual void geometrySourceWillPush() SK_OVERRIDE; | 291 virtual void geometrySourceWillPush() SK_OVERRIDE; |
| 282 virtual void geometrySourceWillPop(const GeometrySrcState& restoredState) SK
_OVERRIDE; | 292 virtual void geometrySourceWillPop(const GeometrySrcState& restoredState) SK
_OVERRIDE; |
| 283 virtual void willReserveVertexAndIndexSpace(int vertexCount, | 293 virtual void willReserveVertexAndIndexSpace(int vertexCount, |
| 284 int indexCount) SK_OVERRIDE; | 294 int indexCount) SK_OVERRIDE; |
| 285 virtual bool onCopySurface(GrSurface* dst, | |
| 286 GrSurface* src, | |
| 287 const SkIRect& srcRect, | |
| 288 const SkIPoint& dstPoint) SK_OVERRIDE; | |
| 289 virtual bool onCanCopySurface(GrSurface* dst, | |
| 290 GrSurface* src, | |
| 291 const SkIRect& srcRect, | |
| 292 const SkIPoint& dstPoint) SK_OVERRIDE; | |
| 293 | 295 |
| 294 bool quickInsideClip(const SkRect& devBounds); | 296 bool quickInsideClip(const SkRect& devBounds); |
| 295 | 297 |
| 296 virtual void didAddGpuTraceMarker() SK_OVERRIDE {} | 298 virtual void didAddGpuTraceMarker() SK_OVERRIDE {} |
| 297 virtual void didRemoveGpuTraceMarker() SK_OVERRIDE {} | 299 virtual void didRemoveGpuTraceMarker() SK_OVERRIDE {} |
| 298 | 300 |
| 299 // Attempts to concat instances from info onto the previous draw. info must
represent an | 301 // Attempts to concat instances from info onto the previous draw. info must
represent an |
| 300 // instanced draw. The caller must have already recorded a new draw state an
d clip if necessary. | 302 // instanced draw. The caller must have already recorded a new draw state an
d clip if necessary. |
| 301 int concatInstancedDraw(const DrawInfo& info); | 303 int concatInstancedDraw(const DrawInfo& info); |
| 302 | 304 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 typedef SkSTArray<kGeoPoolStatePreAllocCnt, GeometryPoolState> GeoPoolStateS
tack; | 351 typedef SkSTArray<kGeoPoolStatePreAllocCnt, GeometryPoolState> GeoPoolStateS
tack; |
| 350 | 352 |
| 351 GeoPoolStateStack fGeoPoolStateStack; | 353 GeoPoolStateStack fGeoPoolStateStack; |
| 352 bool fFlushing; | 354 bool fFlushing; |
| 353 uint32_t fDrawID; | 355 uint32_t fDrawID; |
| 354 | 356 |
| 355 typedef GrClipTarget INHERITED; | 357 typedef GrClipTarget INHERITED; |
| 356 }; | 358 }; |
| 357 | 359 |
| 358 #endif | 360 #endif |
| OLD | NEW |