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

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

Issue 1709163003: Add wrapBackendTextureAsRenderTarget API (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: fix test Created 4 years, 9 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/GrTest.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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 const void* srcData, size_t rowBytes) override; 148 const void* srcData, size_t rowBytes) override;
149 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, 149 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc,
150 GrGpuResource::LifeCycle lifeCycle, 150 GrGpuResource::LifeCycle lifeCycle,
151 const void* srcData) override; 151 const void* srcData) override;
152 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override; 152 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override;
153 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override; 153 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override;
154 GrTransferBuffer* onCreateTransferBuffer(size_t size, TransferType type) ove rride; 154 GrTransferBuffer* onCreateTransferBuffer(size_t size, TransferType type) ove rride;
155 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership ) override; 155 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership ) override;
156 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, 156 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&,
157 GrWrapOwnership) override; 157 GrWrapOwnership) override;
158 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&,
159 GrWrapOwnership) override ;
158 // Given a GrPixelConfig return the index into the stencil format array on G rGLCaps to a 160 // Given a GrPixelConfig return the index into the stencil format array on G rGLCaps to a
159 // compatible stencil format, or negative if there is no compatible stencil format. 161 // compatible stencil format, or negative if there is no compatible stencil format.
160 int getCompatibleStencilIndex(GrPixelConfig config); 162 int getCompatibleStencilIndex(GrPixelConfig config);
161 163
162 // If |desc.fTextureStorageAllocator| exists, use that to create the 164 // If |desc.fTextureStorageAllocator| exists, use that to create the
163 // texture. Otherwise, create the texture directly. 165 // texture. Otherwise, create the texture directly.
164 // Returns whether the texture is successfully created. On success, the 166 // Returns whether the texture is successfully created. On success, the
165 // result is stored in |info|. 167 // result is stored in |info|.
166 // The texture is populated with |srcData|, if it exists. 168 // The texture is populated with |srcData|, if it exists.
167 // The texture parameters are cached in |initialTexParams|. 169 // The texture parameters are cached in |initialTexParams|.
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 } fPLSSetupProgram; 606 } fPLSSetupProgram;
605 607
606 bool fHWPLSEnabled; 608 bool fHWPLSEnabled;
607 bool fPLSHasBeenUsed; 609 bool fPLSHasBeenUsed;
608 610
609 typedef GrGpu INHERITED; 611 typedef GrGpu INHERITED;
610 friend class GrGLPathRendering; // For accessing setTextureUnit. 612 friend class GrGLPathRendering; // For accessing setTextureUnit.
611 }; 613 };
612 614
613 #endif 615 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrTest.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698