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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, | 154 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
155 GrWrapOwnership) override; | 155 GrWrapOwnership) override; |
156 // Given a GrPixelConfig return the index into the stencil format array on G
rGLCaps to a | 156 // Given a GrPixelConfig return the index into the stencil format array on G
rGLCaps to a |
157 // compatible stencil format, or negative if there is no compatible stencil
format. | 157 // compatible stencil format, or negative if there is no compatible stencil
format. |
158 int getCompatibleStencilIndex(GrPixelConfig config); | 158 int getCompatibleStencilIndex(GrPixelConfig config); |
159 | 159 |
160 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; | 160 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; |
161 | 161 |
162 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; | 162 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; |
163 | 163 |
| 164 bool onMakeCopyForTextureParams(GrTexture*, const GrTextureParams&, |
| 165 GrTextureProducer::CopyParams*) const overri
de; |
| 166 |
164 bool onReadPixels(GrSurface*, | 167 bool onReadPixels(GrSurface*, |
165 int left, int top, | 168 int left, int top, |
166 int width, int height, | 169 int width, int height, |
167 GrPixelConfig, | 170 GrPixelConfig, |
168 void* buffer, | 171 void* buffer, |
169 size_t rowBytes) override; | 172 size_t rowBytes) override; |
170 | 173 |
171 bool onWritePixels(GrSurface*, | 174 bool onWritePixels(GrSurface*, |
172 int left, int top, int width, int height, | 175 int left, int top, int width, int height, |
173 GrPixelConfig config, const void* buffer, | 176 GrPixelConfig config, const void* buffer, |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 SkFAIL("Unexpected texture target type."); | 549 SkFAIL("Unexpected texture target type."); |
547 return 0; | 550 return 0; |
548 } | 551 } |
549 } | 552 } |
550 | 553 |
551 typedef GrGpu INHERITED; | 554 typedef GrGpu INHERITED; |
552 friend class GrGLPathRendering; // For accessing setTextureUnit. | 555 friend class GrGLPathRendering; // For accessing setTextureUnit. |
553 }; | 556 }; |
554 | 557 |
555 #endif | 558 #endif |
OLD | NEW |