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 GrGpuGL_DEFINED | 8 #ifndef GrGpuGL_DEFINED |
9 #define GrGpuGL_DEFINED | 9 #define GrGpuGL_DEFINED |
10 | 10 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 virtual void onResetContext(uint32_t resetBits) SK_OVERRIDE; | 129 virtual void onResetContext(uint32_t resetBits) SK_OVERRIDE; |
130 | 130 |
131 virtual GrTexture* onCreateTexture(const GrTextureDesc& desc, | 131 virtual GrTexture* onCreateTexture(const GrTextureDesc& desc, |
132 const void* srcData, | 132 const void* srcData, |
133 size_t rowBytes) SK_OVERRIDE; | 133 size_t rowBytes) SK_OVERRIDE; |
134 virtual GrTexture* onCreateCompressedTexture(const GrTextureDesc& desc, | 134 virtual GrTexture* onCreateCompressedTexture(const GrTextureDesc& desc, |
135 const void* srcData) SK_OVERRID
E; | 135 const void* srcData) SK_OVERRID
E; |
136 virtual GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) SK_O
VERRIDE; | 136 virtual GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) SK_O
VERRIDE; |
137 virtual GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVE
RRIDE; | 137 virtual GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVE
RRIDE; |
138 virtual GrPath* onCreatePath(const SkPath&, const SkStrokeRec&) SK_OVERRIDE; | 138 virtual GrPath* onCreatePath(const SkPath&, const SkStrokeRec&) SK_OVERRIDE; |
| 139 virtual GrPathRange* onCreatePathRange(size_t size, const SkStrokeRec&) SK_O
VERRIDE; |
139 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER
RIDE; | 140 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER
RIDE; |
140 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge
tDesc&) SK_OVERRIDE; | 141 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge
tDesc&) SK_OVERRIDE; |
141 virtual bool createStencilBufferForRenderTarget(GrRenderTarget* rt, | 142 virtual bool createStencilBufferForRenderTarget(GrRenderTarget* rt, |
142 int width, | 143 int width, |
143 int height) SK_OVERRIDE; | 144 int height) SK_OVERRIDE; |
144 virtual bool attachStencilBufferToRenderTarget( | 145 virtual bool attachStencilBufferToRenderTarget( |
145 GrStencilBuffer* sb, | 146 GrStencilBuffer* sb, |
146 GrRenderTarget* rt) SK_OVERRIDE; | 147 GrRenderTarget* rt) SK_OVERRIDE; |
147 | 148 |
148 virtual void onClear(const SkIRect* rect, GrColor color, bool canIgnoreRect)
SK_OVERRIDE; | 149 virtual void onClear(const SkIRect* rect, GrColor color, bool canIgnoreRect)
SK_OVERRIDE; |
149 | 150 |
150 virtual bool onReadPixels(GrRenderTarget* target, | 151 virtual bool onReadPixels(GrRenderTarget* target, |
151 int left, int top, | 152 int left, int top, |
152 int width, int height, | 153 int width, int height, |
153 GrPixelConfig, | 154 GrPixelConfig, |
154 void* buffer, | 155 void* buffer, |
155 size_t rowBytes) SK_OVERRIDE; | 156 size_t rowBytes) SK_OVERRIDE; |
156 | 157 |
157 virtual bool onWriteTexturePixels(GrTexture* texture, | 158 virtual bool onWriteTexturePixels(GrTexture* texture, |
158 int left, int top, int width, int height, | 159 int left, int top, int width, int height, |
159 GrPixelConfig config, const void* buffer, | 160 GrPixelConfig config, const void* buffer, |
160 size_t rowBytes) SK_OVERRIDE; | 161 size_t rowBytes) SK_OVERRIDE; |
161 | 162 |
162 virtual void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE; | 163 virtual void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE; |
163 | 164 |
164 virtual void onGpuDraw(const DrawInfo&) SK_OVERRIDE; | 165 virtual void onGpuDraw(const DrawInfo&) SK_OVERRIDE; |
165 | 166 |
166 virtual void onGpuStencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; | 167 virtual void onGpuStencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; |
167 virtual void onGpuDrawPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; | 168 virtual void onGpuDrawPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; |
168 virtual void onGpuDrawPaths(int, const GrPath**, const SkMatrix*, | 169 virtual void onGpuDrawPaths(const GrPathRange*, |
169 SkPath::FillType, | 170 const uint32_t indices[], int count, |
170 SkStrokeRec::Style) SK_OVERRIDE; | 171 const float transforms[], GrTransformFormat, |
| 172 SkPath::FillType) SK_OVERRIDE; |
171 | 173 |
172 virtual void clearStencil() SK_OVERRIDE; | 174 virtual void clearStencil() SK_OVERRIDE; |
173 virtual void clearStencilClip(const SkIRect& rect, | 175 virtual void clearStencilClip(const SkIRect& rect, |
174 bool insideClip) SK_OVERRIDE; | 176 bool insideClip) SK_OVERRIDE; |
175 virtual bool flushGraphicsState(DrawType, const GrDeviceCoordTexture* dstCop
y) SK_OVERRIDE; | 177 virtual bool flushGraphicsState(DrawType, const GrDeviceCoordTexture* dstCop
y) SK_OVERRIDE; |
176 | 178 |
177 // GrDrawTarget ovverides | 179 // GrDrawTarget ovverides |
178 virtual void didAddGpuTraceMarker() SK_OVERRIDE; | 180 virtual void didAddGpuTraceMarker() SK_OVERRIDE; |
179 virtual void didRemoveGpuTraceMarker() SK_OVERRIDE; | 181 virtual void didRemoveGpuTraceMarker() SK_OVERRIDE; |
180 | 182 |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 // we record what stencil format worked last time to hopefully exit early | 481 // we record what stencil format worked last time to hopefully exit early |
480 // from our loop that tries stencil formats and calls check fb status. | 482 // from our loop that tries stencil formats and calls check fb status. |
481 int fLastSuccessfulStencilFmtIdx; | 483 int fLastSuccessfulStencilFmtIdx; |
482 | 484 |
483 SkAutoTDelete<GrGLNameAllocator> fPathNameAllocator; | 485 SkAutoTDelete<GrGLNameAllocator> fPathNameAllocator; |
484 | 486 |
485 typedef GrGpu INHERITED; | 487 typedef GrGpu INHERITED; |
486 }; | 488 }; |
487 | 489 |
488 #endif | 490 #endif |
OLD | NEW |