Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: src/gpu/gl/GrGLGpu.h

Issue 1886613003: Remove GrTextureStorageAllocator. This was added from Chromium but never used and not expected to b… (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/SkGrPixelRef.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 GrBuffer* onCreateBuffer(size_t size, GrBufferType intendedType, GrAccessPat tern) override; 135 GrBuffer* onCreateBuffer(size_t size, GrBufferType intendedType, GrAccessPat tern) override;
136 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership ) override; 136 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership ) override;
137 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, 137 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&,
138 GrWrapOwnership) override; 138 GrWrapOwnership) override;
139 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override; 139 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override;
140 // Given a GrPixelConfig return the index into the stencil format array on G rGLCaps to a 140 // Given a GrPixelConfig return the index into the stencil format array on G rGLCaps to a
141 // compatible stencil format, or negative if there is no compatible stencil format. 141 // compatible stencil format, or negative if there is no compatible stencil format.
142 int getCompatibleStencilIndex(GrPixelConfig config); 142 int getCompatibleStencilIndex(GrPixelConfig config);
143 143
144 // If |desc.fTextureStorageAllocator| exists, use that to create the 144
145 // texture. Otherwise, create the texture directly.
146 // Returns whether the texture is successfully created. On success, the 145 // Returns whether the texture is successfully created. On success, the
147 // result is stored in |info|. 146 // result is stored in |info|.
148 // The texture is populated with |texels|, if it exists. 147 // The texture is populated with |texels|, if it exists.
149 // The texture parameters are cached in |initialTexParams|. 148 // The texture parameters are cached in |initialTexParams|.
150 bool createTextureImpl(const GrSurfaceDesc& desc, GrGLTextureInfo* info, 149 bool createTextureImpl(const GrSurfaceDesc& desc, GrGLTextureInfo* info,
151 bool renderTarget, GrGLTexture::TexParams* initialTex Params, 150 bool renderTarget, GrGLTexture::TexParams* initialTex Params,
152 const SkTArray<GrMipLevel>& texels); 151 const SkTArray<GrMipLevel>& texels);
153 bool createTextureExternalAllocatorImpl(const GrSurfaceDesc& desc, GrGLTextu reInfo* info,
154 const SkTArray<GrMipLevel>& texels);
155 152
156 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; 153 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override;
157 154
158 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override; 155 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override;
159 156
160 bool onMakeCopyForTextureParams(GrTexture*, const GrTextureParams&, 157 bool onMakeCopyForTextureParams(GrTexture*, const GrTextureParams&,
161 GrTextureProducer::CopyParams*) const overri de; 158 GrTextureProducer::CopyParams*) const overri de;
162 159
163 // Checks whether glReadPixels can be called to get pixel values in readConf ig from the 160 // Checks whether glReadPixels can be called to get pixel values in readConf ig from the
164 // render target. 161 // render target.
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 bool fHWPLSEnabled; 563 bool fHWPLSEnabled;
567 bool fPLSHasBeenUsed; 564 bool fPLSHasBeenUsed;
568 565
569 float fHWMinSampleShading; 566 float fHWMinSampleShading;
570 567
571 typedef GrGpu INHERITED; 568 typedef GrGpu INHERITED;
572 friend class GrGLPathRendering; // For accessing setTextureUnit. 569 friend class GrGLPathRendering; // For accessing setTextureUnit.
573 }; 570 };
574 571
575 #endif 572 #endif
OLDNEW
« no previous file with comments | « src/gpu/SkGrPixelRef.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698