aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar wangxianzhu <wangxianzhu@chromium.org>2015-07-17 17:23:15 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-17 17:23:15 -0700
commitd76665da1c93372720506ce7763cc810223ee9ee (patch)
tree4bc7faa02e7a47c18893e844f3ba9dd5f0b6d3fa /gm
parent97a26d04e2a9324e7fc84c8a78d399e3484c9f50 (diff)
Reland "SkPDF: Annotations are clipped by canvas clip stack."
Original patch was created by halcanary@google.com, and was reverted because it triggered crbug.com/503541. This patch fixes a bug in the original patch about clip path transformation. > Also, remove some SkPDFDevice functions. > Will fix this GM: http://crrev.com/1159273003 > BUG=skia:3872 > Review URL: https://codereview.chromium.org/1148263005 BUG=skia:3872 BUG=503514 Review URL: https://codereview.chromium.org/1238503007
Diffstat (limited to 'gm')
-rw-r--r--gm/annotated_text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/annotated_text.cpp b/gm/annotated_text.cpp
index ab7e816126..7126206eeb 100644
--- a/gm/annotated_text.cpp
+++ b/gm/annotated_text.cpp
@@ -27,7 +27,7 @@ static void draw_url_annotated_text_with_box(
DEF_SIMPLE_GM(annotated_text, canvas, 512, 512) {
SkAutoCanvasRestore autoCanvasRestore(canvas, true);
canvas->clear(SK_ColorWHITE);
- canvas->clipRect(SkRect::MakeXYWH(64, 64, 384, 384));
+ canvas->clipRect(SkRect::MakeXYWH(64, 64, 256, 256));
canvas->clear(0xFFEEEEEE);
SkPaint p;
p.setTextSize(40);