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

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

Issue 1877073002: Add optional data parameter to createBuffer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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/GrResourceProvider.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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 void onResetContext(uint32_t resetBits) override; 125 void onResetContext(uint32_t resetBits) override;
126 126
127 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override; 127 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override;
128 128
129 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc le lifeCycle, 129 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc le lifeCycle,
130 const SkTArray<GrMipLevel>& texels) override; 130 const SkTArray<GrMipLevel>& texels) override;
131 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, 131 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc,
132 GrGpuResource::LifeCycle lifeCycle, 132 GrGpuResource::LifeCycle lifeCycle,
133 const SkTArray<GrMipLevel>& texels) ove rride; 133 const SkTArray<GrMipLevel>& texels) ove rride;
134 134
135 GrBuffer* onCreateBuffer(size_t size, GrBufferType intendedType, GrAccessPat tern) override; 135 GrBuffer* onCreateBuffer(size_t size, GrBufferType intendedType, GrAccessPat tern,
136 const void* data) override;
136 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership ) override; 137 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership ) override;
137 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, 138 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&,
138 GrWrapOwnership) override; 139 GrWrapOwnership) override;
139 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override; 140 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override;
140 // Given a GrPixelConfig return the index into the stencil format array on G rGLCaps to a 141 // 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. 142 // compatible stencil format, or negative if there is no compatible stencil format.
142 int getCompatibleStencilIndex(GrPixelConfig config); 143 int getCompatibleStencilIndex(GrPixelConfig config);
143 144
144 145
145 // Returns whether the texture is successfully created. On success, the 146 // Returns whether the texture is successfully created. On success, the
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 bool fHWPLSEnabled; 564 bool fHWPLSEnabled;
564 bool fPLSHasBeenUsed; 565 bool fPLSHasBeenUsed;
565 566
566 float fHWMinSampleShading; 567 float fHWMinSampleShading;
567 568
568 typedef GrGpu INHERITED; 569 typedef GrGpu INHERITED;
569 friend class GrGLPathRendering; // For accessing setTextureUnit. 570 friend class GrGLPathRendering; // For accessing setTextureUnit.
570 }; 571 };
571 572
572 #endif 573 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrResourceProvider.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698