aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-05-11 05:15:55 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-11 05:15:56 -0700
commit677da9d4af2558ddd50a900e90a093d1b522bd5f (patch)
tree4a6252fd10a9fa9e66562f602e18455e4179af22 /gm
parent2139303e4c0a9cbcfac695977a80eb026a9296ab (diff)
Minor GrRenderTarget retraction
Diffstat (limited to 'gm')
-rw-r--r--gm/texdata.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/gm/texdata.cpp b/gm/texdata.cpp
index 977947b0c6..494a932cf1 100644
--- a/gm/texdata.cpp
+++ b/gm/texdata.cpp
@@ -69,9 +69,7 @@ DEF_SIMPLE_GM_BG(texdata, canvas, 2 * S, 2 * S, SK_ColorBLACK) {
}
GrSurfaceDesc desc;
- // use RT flag bit because in GL it makes the texture be bottom-up
- desc.fFlags = i ? kRenderTarget_GrSurfaceFlag :
- kNone_GrSurfaceFlags;
+ desc.fOrigin = i ? kBottomLeft_GrSurfaceOrigin : kTopLeft_GrSurfaceOrigin;
desc.fConfig = kSkia8888_GrPixelConfig;
desc.fWidth = 2 * S;
desc.fHeight = 2 * S;