diff options
author | Brian Salomon <bsalomon@google.com> | 2018-06-01 15:04:28 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-02 00:00:56 +0000 |
commit | a9b04b90669e08c1ee4aa826a83c416b24704248 (patch) | |
tree | 01fd326b461a8d2065c0cd70f367dba0806318ba /src/gpu/gl/GrGLGpu.h | |
parent | 257c1fb7524db283f43ac3d3813e917cbe522e81 (diff) |
Remove origin from GrGpu::writePixels
Change-Id: Iea3d68d282420f28623ebea315499fbd7ad9d471
Reviewed-on: https://skia-review.googlesource.com/131526
Commit-Queue: Brian Salomon <bsalomon@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/gpu/gl/GrGLGpu.h')
-rw-r--r-- | src/gpu/gl/GrGLGpu.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h index 06a1dee004..508b0f862d 100644 --- a/src/gpu/gl/GrGLGpu.h +++ b/src/gpu/gl/GrGLGpu.h @@ -234,8 +234,8 @@ private: bool onReadPixels(GrSurface*, GrSurfaceOrigin, int left, int top, int width, int height, GrColorType, void* buffer, size_t rowBytes) override; - bool onWritePixels(GrSurface*, GrSurfaceOrigin, int left, int top, int width, int height, - GrColorType, const GrMipLevel texels[], int mipLevelCount) override; + bool onWritePixels(GrSurface*, int left, int top, int width, int height, GrColorType, + const GrMipLevel texels[], int mipLevelCount) override; bool onTransferPixels(GrTexture*, int left, int top, int width, int height, GrColorType, GrBuffer* transferBuffer, size_t offset, size_t rowBytes) override; @@ -370,10 +370,9 @@ private: kNewTexture_UploadType, // we are creating a new texture kWrite_UploadType, // we are using TexSubImage2D to copy data to an existing texture }; - bool uploadTexData(GrPixelConfig texConfig, int texWidth, int texHeight, - GrSurfaceOrigin texOrigin, GrGLenum target, UploadType uploadType, int left, - int top, int width, int height, GrPixelConfig dataConfig, - const GrMipLevel texels[], int mipLevelCount, + bool uploadTexData(GrPixelConfig texConfig, int texWidth, int texHeight, GrGLenum target, + UploadType uploadType, int left, int top, int width, int height, + GrPixelConfig dataConfig, const GrMipLevel texels[], int mipLevelCount, GrMipMapsStatus* mipMapsStatus = nullptr); bool createRenderTargetObjects(const GrSurfaceDesc&, const GrGLTextureInfo& texInfo, |