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