aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-10-07 05:56:02 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-07 05:56:02 -0700
commitf80bfedc42fde88ae3f8dbd7b21950a22258fd22 (patch)
tree53f8fa79d21b8d3a352b1d31a227f6fe80754585 /samplecode
parentb9ab5631703c258f1aae7a3ca1bb4b6596b5b42c (diff)
GrContext::copyTexture->GrContext::copySurface.
Add a flush writes pixel ops flag. Add an explicit flush writes for GrSurface. BUG=skia:2977 Committed: https://skia.googlesource.com/skia/+/cf99b00980b6c9c557e71abf1a7c9f9b21217262 Review URL: https://codereview.chromium.org/622663002
Diffstat (limited to 'samplecode')
-rw-r--r--samplecode/SampleApp.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index c1905270af..e8146f0582 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -298,10 +298,8 @@ public:
SkImageInfo2GrPixelConfig(bm.colorType(),
bm.alphaType()),
bm.getPixels(),
- bm.rowBytes());
-
- // extra flush call, until Brian can figure out what's going on.
- fCurContext->flush();
+ bm.rowBytes(),
+ GrContext::kFlushWrites_PixelOp);
}
}
#endif