diff options
author | reed <reed@google.com> | 2016-09-20 08:42:38 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-20 08:42:39 -0700 |
commit | 73603f3c52ffd89fe9d035be827b566a0e7d3b79 (patch) | |
tree | 873793b81536379196233f313b1a093d02bdac0e /samplecode/SampleIdentityScale.cpp | |
parent | cae1be5acc8148fc5cbadd8730ee7994e50a1a47 (diff) |
abstract name of clipping ops, to transtion to a more restricted set
SkRegion::Op --> SkCanvas::ClipOp (alias) --> SkClipOp
pre-CL needed in chrome : https://codereview.chromium.org/2355583002/
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2355483002
Review-Url: https://codereview.chromium.org/2355483002
Diffstat (limited to 'samplecode/SampleIdentityScale.cpp')
-rw-r--r-- | samplecode/SampleIdentityScale.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SampleIdentityScale.cpp b/samplecode/SampleIdentityScale.cpp index b6af3ce34f..8d1bc36991 100644 --- a/samplecode/SampleIdentityScale.cpp +++ b/samplecode/SampleIdentityScale.cpp @@ -65,7 +65,7 @@ protected: SkRect r = { 100, 100, 356, 356 }; SkPath clipPath; clipPath.addRoundRect(r, SkIntToScalar(5), SkIntToScalar(5)); - canvas->clipPath(clipPath, SkRegion::kIntersect_Op, SkToBool(1)); + canvas->clipPath(clipPath, SkCanvas::kIntersect_Op, SkToBool(1)); text = "Scaled = 0"; } canvas->drawBitmap( fBM, 100, 100, &paint ); |