aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image/SkImage_Lazy.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-07-24 15:09:56 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-24 21:08:35 +0000
commit8a90f50e8e098a5d604896c34de9c68f2f1b1ceb (patch)
tree9fcae001c5e72957c1624687f0b420146821606b /src/image/SkImage_Lazy.cpp
parentb323a5ed1f26a5b8e4e9f8f78225bdf95dc5a177 (diff)
Fourth fragment from "Reduce dependence on GrSurface's origin field"
TBR=bsalomon@google.com Change-Id: I8ed3b1f5e468d99b3ac06e8cfdf74b49042813f8 Reviewed-on: https://skia-review.googlesource.com/26144 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/image/SkImage_Lazy.cpp')
-rw-r--r--src/image/SkImage_Lazy.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/image/SkImage_Lazy.cpp b/src/image/SkImage_Lazy.cpp
index 13025520de..6c03d7d01e 100644
--- a/src/image/SkImage_Lazy.cpp
+++ b/src/image/SkImage_Lazy.cpp
@@ -697,6 +697,7 @@ public:
static void set_key_on_proxy(GrResourceProvider* resourceProvider,
GrTextureProxy* proxy, const GrUniqueKey& key) {
if (key.isValid()) {
+ SkASSERT(proxy->origin() == kTopLeft_GrSurfaceOrigin);
resourceProvider->assignUniqueKeyToProxy(key, proxy);
}
}