| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 virtual bool copySurface(GrSurface* dst, | 79 virtual bool copySurface(GrSurface* dst, |
| 80 GrSurface* src, | 80 GrSurface* src, |
| 81 const SkIRect& srcRect, | 81 const SkIRect& srcRect, |
| 82 const SkIPoint& dstPoint) SK_OVERRIDE; | 82 const SkIPoint& dstPoint) SK_OVERRIDE; |
| 83 | 83 |
| 84 virtual bool canCopySurface(GrSurface* dst, | 84 virtual bool canCopySurface(GrSurface* dst, |
| 85 GrSurface* src, | 85 GrSurface* src, |
| 86 const SkIRect& srcRect, | 86 const SkIRect& srcRect, |
| 87 const SkIPoint& dstPoint) SK_OVERRIDE; | 87 const SkIPoint& dstPoint) SK_OVERRIDE; |
| 88 | 88 |
| 89 virtual void clear(const SkIRect* rect, | |
| 90 GrColor color, | |
| 91 bool canIgnoreRect, | |
| 92 GrRenderTarget* renderTarget) SK_OVERRIDE; | |
| 93 | |
| 94 virtual void clearStencilClip(const SkIRect& rect, | 89 virtual void clearStencilClip(const SkIRect& rect, |
| 95 bool insideClip, | 90 bool insideClip, |
| 96 GrRenderTarget* renderTarget) SK_OVERRIDE; | 91 GrRenderTarget* renderTarget) SK_OVERRIDE; |
| 97 | 92 |
| 98 virtual void discard(GrRenderTarget*) SK_OVERRIDE; | 93 virtual void discard(GrRenderTarget*) SK_OVERRIDE; |
| 99 | 94 |
| 100 virtual void initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* des
c) SK_OVERRIDE; | 95 virtual void initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* des
c) SK_OVERRIDE; |
| 101 | 96 |
| 102 protected: | 97 protected: |
| 103 virtual void clipWillBeSet(const GrClipData* newClip) SK_OVERRIDE; | 98 virtual void clipWillBeSet(const GrClipData* newClip) SK_OVERRIDE; |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 const SkRect* localRect, | 262 const SkRect* localRect, |
| 268 const SkMatrix* localMatrix) SK_OVERRIDE; | 263 const SkMatrix* localMatrix) SK_OVERRIDE; |
| 269 | 264 |
| 270 virtual void onStencilPath(const GrPath*, GrPathRendering::FillType) SK_OVER
RIDE; | 265 virtual void onStencilPath(const GrPath*, GrPathRendering::FillType) SK_OVER
RIDE; |
| 271 virtual void onDrawPath(const GrPath*, GrPathRendering::FillType, | 266 virtual void onDrawPath(const GrPath*, GrPathRendering::FillType, |
| 272 const GrDeviceCoordTexture* dstCopy) SK_OVERRIDE; | 267 const GrDeviceCoordTexture* dstCopy) SK_OVERRIDE; |
| 273 virtual void onDrawPaths(const GrPathRange*, | 268 virtual void onDrawPaths(const GrPathRange*, |
| 274 const uint32_t indices[], int count, | 269 const uint32_t indices[], int count, |
| 275 const float transforms[], PathTransformType, | 270 const float transforms[], PathTransformType, |
| 276 GrPathRendering::FillType, const GrDeviceCoordTextu
re*) SK_OVERRIDE; | 271 GrPathRendering::FillType, const GrDeviceCoordTextu
re*) SK_OVERRIDE; |
| 272 virtual void onClear(const SkIRect* rect, |
| 273 GrColor color, |
| 274 bool canIgnoreRect, |
| 275 GrRenderTarget* renderTarget) SK_OVERRIDE; |
| 277 | 276 |
| 278 virtual bool onReserveVertexSpace(size_t vertexSize, | 277 virtual bool onReserveVertexSpace(size_t vertexSize, |
| 279 int vertexCount, | 278 int vertexCount, |
| 280 void** vertices) SK_OVERRIDE; | 279 void** vertices) SK_OVERRIDE; |
| 281 virtual bool onReserveIndexSpace(int indexCount, | 280 virtual bool onReserveIndexSpace(int indexCount, |
| 282 void** indices) SK_OVERRIDE; | 281 void** indices) SK_OVERRIDE; |
| 283 virtual void releaseReservedVertexSpace() SK_OVERRIDE; | 282 virtual void releaseReservedVertexSpace() SK_OVERRIDE; |
| 284 virtual void releaseReservedIndexSpace() SK_OVERRIDE; | 283 virtual void releaseReservedIndexSpace() SK_OVERRIDE; |
| 285 virtual void geometrySourceWillPush() SK_OVERRIDE; | 284 virtual void geometrySourceWillPush() SK_OVERRIDE; |
| 286 virtual void geometrySourceWillPop(const GeometrySrcState& restoredState) SK
_OVERRIDE; | 285 virtual void geometrySourceWillPop(const GeometrySrcState& restoredState) SK
_OVERRIDE; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 typedef SkSTArray<kGeoPoolStatePreAllocCnt, GeometryPoolState> GeoPoolStateS
tack; | 344 typedef SkSTArray<kGeoPoolStatePreAllocCnt, GeometryPoolState> GeoPoolStateS
tack; |
| 346 | 345 |
| 347 GeoPoolStateStack fGeoPoolStateStack; | 346 GeoPoolStateStack fGeoPoolStateStack; |
| 348 bool fFlushing; | 347 bool fFlushing; |
| 349 uint32_t fDrawID; | 348 uint32_t fDrawID; |
| 350 | 349 |
| 351 typedef GrClipTarget INHERITED; | 350 typedef GrClipTarget INHERITED; |
| 352 }; | 351 }; |
| 353 | 352 |
| 354 #endif | 353 #endif |
| OLD | NEW |