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

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

Issue 1810323002: Cache render targets that render to wrapped textures Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: moved the refactoring to another patch 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/GrTextureProvider.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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, 135 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted,
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 SkBudgeted budgeted, 138 SkBudgeted budgeted,
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 void onComputeBackendTextureKeyForWrapAsRenderTarget(const GrBackendTextureD esc&,
146 GrUniqueKey*) override;
147 bool onRewrapRenderTargetWithBackendTexture(const GrBackendTextureDesc&,
148 GrRenderTarget*) override;
145 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override; 149 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override;
146 // Given a GrPixelConfig return the index into the stencil format array on G rGLCaps to a 150 // Given a GrPixelConfig return the index into the stencil format array on G rGLCaps to a
147 // compatible stencil format, or negative if there is no compatible stencil format. 151 // compatible stencil format, or negative if there is no compatible stencil format.
148 int getCompatibleStencilIndex(GrPixelConfig config); 152 int getCompatibleStencilIndex(GrPixelConfig config);
149 153
150 // If |desc.fTextureStorageAllocator| exists, use that to create the 154 // If |desc.fTextureStorageAllocator| exists, use that to create the
151 // texture. Otherwise, create the texture directly. 155 // texture. Otherwise, create the texture directly.
152 // Returns whether the texture is successfully created. On success, the 156 // Returns whether the texture is successfully created. On success, the
153 // result is stored in |info|. 157 // result is stored in |info|.
154 // The texture is populated with |texels|, if it exists. 158 // The texture is populated with |texels|, if it exists.
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 bool fHWPLSEnabled; 611 bool fHWPLSEnabled;
608 bool fPLSHasBeenUsed; 612 bool fPLSHasBeenUsed;
609 613
610 float fHWMinSampleShading; 614 float fHWMinSampleShading;
611 615
612 typedef GrGpu INHERITED; 616 typedef GrGpu INHERITED;
613 friend class GrGLPathRendering; // For accessing setTextureUnit. 617 friend class GrGLPathRendering; // For accessing setTextureUnit.
614 }; 618 };
615 619
616 #endif 620 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrTextureProvider.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698