aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-02-16 11:36:56 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-16 11:36:56 -0800
commit0042245b63aeea1c1049b65bde6cf3da52906379 (patch)
treeacbc452c2508a4f330e26b6ac67f3315a555202e /src
parentbabafcc681de86801b15b4fe0ab856ce32048ff6 (diff)
Remove outdated optimization to not flush for new textures in GrSWMaskHelper
Diffstat (limited to 'src')
-rw-r--r--src/gpu/GrSWMaskHelper.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gpu/GrSWMaskHelper.cpp b/src/gpu/GrSWMaskHelper.cpp
index 34e4495286..211550a425 100644
--- a/src/gpu/GrSWMaskHelper.cpp
+++ b/src/gpu/GrSWMaskHelper.cpp
@@ -252,17 +252,11 @@ GrTexture* GrSWMaskHelper::createTexture() {
void GrSWMaskHelper::sendTextureData(GrTexture *texture, const GrSurfaceDesc& desc,
const void *data, size_t rowbytes) {
- // If we aren't reusing scratch textures we don't need to flush before
- // writing since no one else will be using 'texture'
- bool reuseScratch = fContext->caps()->reuseScratchTextures();
-
// Since we're uploading to it, and it's compressed, 'texture' shouldn't
// have a render target.
SkASSERT(nullptr == texture->asRenderTarget());
- texture->writePixels(0, 0, desc.fWidth, desc.fHeight,
- desc.fConfig, data, rowbytes,
- reuseScratch ? 0 : GrContext::kDontFlush_PixelOpsFlag);
+ texture->writePixels(0, 0, desc.fWidth, desc.fHeight, desc.fConfig, data, rowbytes);
}
void GrSWMaskHelper::compressTextureData(GrTexture *texture, const GrSurfaceDesc& desc) {