aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-13 18:00:36 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-13 18:00:36 +0000
commit3319f33470abc50a6f3da3a565d917050f9b2f53 (patch)
tree79205270c99437aa2e28828364f19839b5007aaf /include
parent9c2ea846351a29208cb4a36301ee611e7fb384ea (diff)
Move resize functionality out of createAndLockTexture and into createResizedTexture
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrContext.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index abe745384c..8cefa77dec 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -806,6 +806,12 @@ private:
kDontFlush_PixelOpsFlag = 0x1,
};
+ GrTexture* createResizedTexture(const GrTextureDesc& desc,
+ const GrCacheData& cacheData,
+ void* srcData,
+ size_t rowBytes,
+ bool needsFiltering);
+
bool internalReadRenderTargetPixels(GrRenderTarget* target,
int left, int top,
int width, int height,