| Index: src/gpu/GrGpu.h
|
| diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
|
| index 3df651f1e631e0d666a6eeb0887b5849b0165cc0..5784781996b815ab8c0e1e12ace465e563f44232 100644
|
| --- a/src/gpu/GrGpu.h
|
| +++ b/src/gpu/GrGpu.h
|
| @@ -437,9 +437,13 @@ private:
|
| virtual void onResetContext(uint32_t resetBits) = 0;
|
|
|
| // overridden by backend-specific derived class to create objects.
|
| - virtual GrTexture* onCreateTexture(const GrSurfaceDesc& desc, bool budgeted,
|
| + // Texture size and sample size will have already been validated in base class before
|
| + // onCreateTexture/CompressedTexture are called.
|
| + virtual GrTexture* onCreateTexture(const GrSurfaceDesc& desc,
|
| + GrGpuResource::LifeCycle lifeCycle,
|
| const void* srcData, size_t rowBytes) = 0;
|
| - virtual GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, bool budgeted,
|
| + virtual GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc,
|
| + GrGpuResource::LifeCycle lifeCycle,
|
| const void* srcData) = 0;
|
| virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) = 0;
|
| virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&) = 0;
|
|
|