| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 size_t rowBytes) override; | 150 size_t rowBytes) override; |
| 151 | 151 |
| 152 bool onWriteTexturePixels(GrTexture* texture, | 152 bool onWriteTexturePixels(GrTexture* texture, |
| 153 int left, int top, int width, int height, | 153 int left, int top, int width, int height, |
| 154 GrPixelConfig config, const void* buffer, | 154 GrPixelConfig config, const void* buffer, |
| 155 size_t rowBytes) override; | 155 size_t rowBytes) override; |
| 156 | 156 |
| 157 void onResolveRenderTarget(GrRenderTarget* target) override; | 157 void onResolveRenderTarget(GrRenderTarget* target) override; |
| 158 | 158 |
| 159 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override; | 159 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override; |
| 160 void onStencilPath(const GrPath*, const StencilPathState&) override; | |
| 161 void onDrawPath(const DrawArgs&, const GrPath*, const GrStencilSettings&) ov
erride; | |
| 162 void onDrawPaths(const DrawArgs&, | |
| 163 const GrPathRange*, | |
| 164 const void* indices, | |
| 165 GrDrawTarget::PathIndexType, | |
| 166 const float transformValues[], | |
| 167 GrDrawTarget::PathTransformType, | |
| 168 int count, | |
| 169 const GrStencilSettings&) override; | |
| 170 | 160 |
| 171 void clearStencil(GrRenderTarget*) override; | 161 void clearStencil(GrRenderTarget*) override; |
| 172 | 162 |
| 173 // GrDrawTarget overrides | 163 // GrDrawTarget overrides |
| 174 void didAddGpuTraceMarker() override; | 164 void didAddGpuTraceMarker() override; |
| 175 void didRemoveGpuTraceMarker() override; | 165 void didRemoveGpuTraceMarker() override; |
| 176 | 166 |
| 177 // binds texture unit in GL | 167 // binds texture unit in GL |
| 178 void setTextureUnit(int unitIdx); | 168 void setTextureUnit(int unitIdx); |
| 179 | 169 |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 | 467 |
| 478 // we record what stencil format worked last time to hopefully exit early | 468 // 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. | 469 // from our loop that tries stencil formats and calls check fb status. |
| 480 int fLastSuccessfulStencilFmtIdx; | 470 int fLastSuccessfulStencilFmtIdx; |
| 481 | 471 |
| 482 typedef GrGpu INHERITED; | 472 typedef GrGpu INHERITED; |
| 483 friend class GrGLPathRendering; // For accessing setTextureUnit. | 473 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 484 }; | 474 }; |
| 485 | 475 |
| 486 #endif | 476 #endif |
| OLD | NEW |