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 GrGLGpu_DEFINED | 8 #ifndef GrGLGpu_DEFINED |
9 #define GrGLGpu_DEFINED | 9 #define GrGLGpu_DEFINED |
10 | 10 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 int width, int height, | 165 int width, int height, |
166 GrPixelConfig, | 166 GrPixelConfig, |
167 void* buffer, | 167 void* buffer, |
168 size_t rowBytes) override; | 168 size_t rowBytes) override; |
169 | 169 |
170 bool onWritePixels(GrSurface*, | 170 bool onWritePixels(GrSurface*, |
171 int left, int top, int width, int height, | 171 int left, int top, int width, int height, |
172 GrPixelConfig config, const void* buffer, | 172 GrPixelConfig config, const void* buffer, |
173 size_t rowBytes) override; | 173 size_t rowBytes) override; |
174 | 174 |
| 175 bool onTransferPixels(GrSurface*, |
| 176 int left, int top, int width, int height, |
| 177 GrPixelConfig config, GrTransferBuffer* buffer, |
| 178 size_t offset, size_t rowBytes) override; |
| 179 |
175 void onResolveRenderTarget(GrRenderTarget* target) override; | 180 void onResolveRenderTarget(GrRenderTarget* target) override; |
176 | 181 |
177 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override; | 182 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override; |
178 | 183 |
179 bool onCopySurface(GrSurface* dst, | 184 bool onCopySurface(GrSurface* dst, |
180 GrSurface* src, | 185 GrSurface* src, |
181 const SkIRect& srcRect, | 186 const SkIRect& srcRect, |
182 const SkIPoint& dstPoint) override; | 187 const SkIPoint& dstPoint) override; |
183 | 188 |
184 // binds texture unit in GL | 189 // binds texture unit in GL |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 | 546 |
542 // Mapping of pixel configs to known supported stencil formats to be used | 547 // Mapping of pixel configs to known supported stencil formats to be used |
543 // when adding a stencil buffer to a framebuffer. | 548 // when adding a stencil buffer to a framebuffer. |
544 int fPixelConfigToStencilIndex[kGrPixelConfigCnt]; | 549 int fPixelConfigToStencilIndex[kGrPixelConfigCnt]; |
545 | 550 |
546 typedef GrGpu INHERITED; | 551 typedef GrGpu INHERITED; |
547 friend class GrGLPathRendering; // For accessing setTextureUnit. | 552 friend class GrGLPathRendering; // For accessing setTextureUnit. |
548 }; | 553 }; |
549 | 554 |
550 #endif | 555 #endif |
OLD | NEW |