| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, | 135 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, |
| 136 bool canIgnoreRect) override; | 136 bool canIgnoreRect) override; |
| 137 | 137 |
| 138 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; | 138 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; |
| 139 | 139 |
| 140 bool onReadPixels(GrSurface*, | 140 bool onReadPixels(GrSurface*, |
| 141 int left, int top, | 141 int left, int top, |
| 142 int width, int height, | 142 int width, int height, |
| 143 GrPixelConfig, | 143 GrPixelConfig, |
| 144 void* buffer, | 144 void* buffer, |
| 145 size_t rowBytes) override; | 145 size_t rowBytes, |
| 146 size_t tightRowBytes) override; |
| 146 | 147 |
| 147 bool onWritePixels(GrSurface*, | 148 bool onWritePixels(GrSurface*, |
| 148 int left, int top, int width, int height, | 149 int left, int top, int width, int height, |
| 149 GrPixelConfig config, const void* buffer, | 150 GrPixelConfig config, const void* buffer, |
| 150 size_t rowBytes) override; | 151 size_t rowBytes) override; |
| 151 | 152 |
| 152 void onResolveRenderTarget(GrRenderTarget* target) override; | 153 void onResolveRenderTarget(GrRenderTarget* target) override; |
| 153 | 154 |
| 154 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override; | 155 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override; |
| 155 | 156 |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 | 496 |
| 496 // we record what stencil format worked last time to hopefully exit early | 497 // we record what stencil format worked last time to hopefully exit early |
| 497 // from our loop that tries stencil formats and calls check fb status. | 498 // from our loop that tries stencil formats and calls check fb status. |
| 498 int fLastSuccessfulStencilFmtIdx; | 499 int fLastSuccessfulStencilFmtIdx; |
| 499 | 500 |
| 500 typedef GrGpu INHERITED; | 501 typedef GrGpu INHERITED; |
| 501 friend class GrGLPathRendering; // For accessing setTextureUnit. | 502 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 502 }; | 503 }; |
| 503 | 504 |
| 504 #endif | 505 #endif |
| OLD | NEW |