| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 GrFlushToGpuDrawTarget_DEFINED | 8 #ifndef GrFlushToGpuDrawTarget_DEFINED |
| 9 #define GrFlushToGpuDrawTarget_DEFINED | 9 #define GrFlushToGpuDrawTarget_DEFINED |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 void setDrawBuffers(DrawInfo*, size_t stride) SK_OVERRIDE; | 72 void setDrawBuffers(DrawInfo*, size_t stride) SK_OVERRIDE; |
| 73 bool onReserveVertexSpace(size_t vertexSize, int vertexCount, void** vertice
s) SK_OVERRIDE; | 73 bool onReserveVertexSpace(size_t vertexSize, int vertexCount, void** vertice
s) SK_OVERRIDE; |
| 74 bool onReserveIndexSpace(int indexCount, void** indices) SK_OVERRIDE; | 74 bool onReserveIndexSpace(int indexCount, void** indices) SK_OVERRIDE; |
| 75 void releaseReservedVertexSpace() SK_OVERRIDE; | 75 void releaseReservedVertexSpace() SK_OVERRIDE; |
| 76 void releaseReservedIndexSpace() SK_OVERRIDE; | 76 void releaseReservedIndexSpace() SK_OVERRIDE; |
| 77 void geometrySourceWillPush() SK_OVERRIDE; | 77 void geometrySourceWillPush() SK_OVERRIDE; |
| 78 void geometrySourceWillPop(const GeometrySrcState& restoredState) SK_OVERRID
E; | 78 void geometrySourceWillPop(const GeometrySrcState& restoredState) SK_OVERRID
E; |
| 79 void willReserveVertexAndIndexSpace(int vertexCount, | 79 void willReserveVertexAndIndexSpace(int vertexCount, |
| 80 size_t vertexStride, | 80 size_t vertexStride, |
| 81 int indexCount) SK_OVERRIDE; | 81 int indexCount) SK_OVERRIDE; |
| 82 bool onCanCopySurface(const GrSurface* dst, |
| 83 const GrSurface* src, |
| 84 const SkIRect& srcRect, |
| 85 const SkIPoint& dstPoint) SK_OVERRIDE; |
| 86 bool onInitCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) SK_
OVERRIDE; |
| 82 | 87 |
| 83 GeoPoolStateStack fGeoPoolStateStack; | 88 GeoPoolStateStack fGeoPoolStateStack; |
| 84 SkAutoTUnref<GrGpu> fGpu; | 89 SkAutoTUnref<GrGpu> fGpu; |
| 85 GrVertexBufferAllocPool* fVertexPool; | 90 GrVertexBufferAllocPool* fVertexPool; |
| 86 GrIndexBufferAllocPool* fIndexPool; | 91 GrIndexBufferAllocPool* fIndexPool; |
| 87 bool fFlushing; | 92 bool fFlushing; |
| 88 | 93 |
| 89 typedef GrClipTarget INHERITED; | 94 typedef GrClipTarget INHERITED; |
| 90 }; | 95 }; |
| 91 | 96 |
| 92 #endif | 97 #endif |
| OLD | NEW |