aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-10-02 10:42:24 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-02 10:42:24 -0700
commitcf99b00980b6c9c557e71abf1a7c9f9b21217262 (patch)
tree78d53c2e98762fb6e810603c104d03e356c26876 /src/image
parentf0e2154b45ab2bb0d7fa5a9d38955260ce42831c (diff)
GrContext::copyTexture->GrContext::copySurface.
Add a flush writes pixel ops flag. Add an explicit flush writes for GrSurface. BUG=skia:2977 Review URL: https://codereview.chromium.org/622663002
Diffstat (limited to 'src/image')
-rw-r--r--src/image/SkSurface_Gpu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp
index 024c151cea..fb087ea24b 100644
--- a/src/image/SkSurface_Gpu.cpp
+++ b/src/image/SkSurface_Gpu.cpp
@@ -89,7 +89,7 @@ void SkSurface_Gpu::onCopyOnWrite(ContentChangeMode mode) {
fDevice->createCompatibleDevice(fDevice->imageInfo()));
SkAutoTUnref<SkGpuDevice> aurd(newDevice);
if (kRetain_ContentChangeMode == mode) {
- fDevice->context()->copyTexture(rt->asTexture(), newDevice->accessRenderTarget());
+ fDevice->context()->copySurface(newDevice->accessRenderTarget(), rt->asTexture());
}
SkASSERT(this->getCachedCanvas());
SkASSERT(this->getCachedCanvas()->getDevice() == fDevice);