| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 void invalidateBoundRenderTarget() { | 118 void invalidateBoundRenderTarget() { |
| 119 fHWBoundRenderTargetUniqueID = SK_InvalidUniqueID; | 119 fHWBoundRenderTargetUniqueID = SK_InvalidUniqueID; |
| 120 } | 120 } |
| 121 | 121 |
| 122 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa
rget* rt, | 122 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa
rget* rt, |
| 123 int width, | 123 int width, |
| 124 int height) over
ride; | 124 int height) over
ride; |
| 125 | 125 |
| 126 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, | 126 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, |
| 127 GrPixelConfig config) const
override; | 127 GrPixelConfig config) const
override; |
| 128 bool isTestingOnlyBackendTexture(GrBackendObject id) const override; | 128 bool isTestingOnlyBackendTexture(GrBackendObject) const override; |
| 129 void deleteTestingOnlyBackendTexture(GrBackendObject id) const override; | 129 void deleteTestingOnlyBackendTexture(GrBackendObject, bool abandonTexture) c
onst override; |
| 130 | 130 |
| 131 private: | 131 private: |
| 132 GrGLGpu(GrGLContext* ctx, GrContext* context); | 132 GrGLGpu(GrGLContext* ctx, GrContext* context); |
| 133 | 133 |
| 134 // GrGpu overrides | 134 // GrGpu overrides |
| 135 void onResetContext(uint32_t resetBits) override; | 135 void onResetContext(uint32_t resetBits) override; |
| 136 | 136 |
| 137 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override; | 137 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override; |
| 138 | 138 |
| 139 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, | 139 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 | 520 |
| 521 // Mapping of pixel configs to known supported stencil formats to be used | 521 // Mapping of pixel configs to known supported stencil formats to be used |
| 522 // when adding a stencil buffer to a framebuffer. | 522 // when adding a stencil buffer to a framebuffer. |
| 523 int fPixelConfigToStencilIndex[kGrPixelConfigCnt]; | 523 int fPixelConfigToStencilIndex[kGrPixelConfigCnt]; |
| 524 | 524 |
| 525 typedef GrGpu INHERITED; | 525 typedef GrGpu INHERITED; |
| 526 friend class GrGLPathRendering; // For accessing setTextureUnit. | 526 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 527 }; | 527 }; |
| 528 | 528 |
| 529 #endif | 529 #endif |
| OLD | NEW |