Index: src/gpu/gl/GrGLGpu.h |
diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h |
index 63f1247962b0677475c01da0e1fc7dcf3b06a81d..09dfdf497de1c0da69830a97e3b318d1496ff9c1 100644 |
--- a/src/gpu/gl/GrGLGpu.h |
+++ b/src/gpu/gl/GrGLGpu.h |
@@ -157,6 +157,18 @@ private: |
// compatible stencil format, or negative if there is no compatible stencil format. |
int getCompatibleStencilIndex(GrPixelConfig config); |
+ // If |desc.fTextureStorageAllocator| exists, use that to create the |
+ // texture. Otherwise, create the texture directly. |
+ // Returns whether the texture is successfully created. On success, the |
+ // result is stored in |info|. |
+ // The texture is populated with |srcData|, if it exists. |
+ // The texture parameters are cached in |initialTexParams|. |
+ bool createTextureImpl(const GrSurfaceDesc& desc, GrGLTextureInfo* info, |
+ bool renderTarget, const void* srcData, |
+ GrGLTexture::TexParams* initialTexParams, size_t rowBytes); |
+ bool createTextureExternalAllocatorImpl(const GrSurfaceDesc& desc, GrGLTextureInfo* info, |
+ const void* srcData, size_t rowBytes); |
+ |
void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; |
void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideClip) override; |
@@ -312,7 +324,7 @@ private: |
kTransfer_UploadType, // we are using a transfer buffer to copy data |
}; |
bool uploadTexData(const GrSurfaceDesc& desc, |
- GrGLenum target, |
+ GrGLTextureInfo* info, |
UploadType uploadType, |
int left, int top, int width, int height, |
GrPixelConfig dataConfig, |