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 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, | 135 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, |
136 const SkTArray<GrMipLevel>& texels) override; | 136 const SkTArray<GrMipLevel>& texels) override; |
137 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, | 137 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, |
138 GrGpuResource::LifeCycle lifeCycle, | 138 GrGpuResource::LifeCycle lifeCycle, |
139 const SkTArray<GrMipLevel>& texels) ove
rride; | 139 const SkTArray<GrMipLevel>& texels) ove
rride; |
140 | 140 |
141 GrBuffer* onCreateBuffer(GrBufferType, size_t size, GrAccessPattern) overrid
e; | 141 GrBuffer* onCreateBuffer(GrBufferType, size_t size, GrAccessPattern) overrid
e; |
142 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership
) override; | 142 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership
) override; |
143 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, | 143 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
144 GrWrapOwnership) override; | 144 GrWrapOwnership) override; |
145 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&, | 145 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&) override; |
146 GrWrapOwnership) override
; | |
147 // Given a GrPixelConfig return the index into the stencil format array on G
rGLCaps to a | 146 // Given a GrPixelConfig return the index into the stencil format array on G
rGLCaps to a |
148 // compatible stencil format, or negative if there is no compatible stencil
format. | 147 // compatible stencil format, or negative if there is no compatible stencil
format. |
149 int getCompatibleStencilIndex(GrPixelConfig config); | 148 int getCompatibleStencilIndex(GrPixelConfig config); |
150 | 149 |
151 // If |desc.fTextureStorageAllocator| exists, use that to create the | 150 // If |desc.fTextureStorageAllocator| exists, use that to create the |
152 // texture. Otherwise, create the texture directly. | 151 // texture. Otherwise, create the texture directly. |
153 // Returns whether the texture is successfully created. On success, the | 152 // Returns whether the texture is successfully created. On success, the |
154 // result is stored in |info|. | 153 // result is stored in |info|. |
155 // The texture is populated with |texels|, if it exists. | 154 // The texture is populated with |texels|, if it exists. |
156 // The texture parameters are cached in |initialTexParams|. | 155 // The texture parameters are cached in |initialTexParams|. |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 bool fHWPLSEnabled; | 607 bool fHWPLSEnabled; |
609 bool fPLSHasBeenUsed; | 608 bool fPLSHasBeenUsed; |
610 | 609 |
611 float fHWMinSampleShading; | 610 float fHWMinSampleShading; |
612 | 611 |
613 typedef GrGpu INHERITED; | 612 typedef GrGpu INHERITED; |
614 friend class GrGLPathRendering; // For accessing setTextureUnit. | 613 friend class GrGLPathRendering; // For accessing setTextureUnit. |
615 }; | 614 }; |
616 | 615 |
617 #endif | 616 #endif |
OLD | NEW |