aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/annotated_text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/annotated_text.cpp')
-rw-r--r--gm/annotated_text.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/annotated_text.cpp b/gm/annotated_text.cpp
index 7126206eeb..30f67b0201 100644
--- a/gm/annotated_text.cpp
+++ b/gm/annotated_text.cpp
@@ -34,7 +34,8 @@ DEF_SIMPLE_GM(annotated_text, canvas, 512, 512) {
const char text[] = "Click this link!";
const char url[] = "https://www.google.com/";
draw_url_annotated_text_with_box(canvas, text, 200.0f, 80.0f, p, url);
- SkAutoCanvasRestore autoCanvasRestore2(canvas, true);
+ canvas->saveLayer(nullptr, nullptr);
canvas->rotate(90);
draw_url_annotated_text_with_box(canvas, text, 150.0f, -55.0f, p, url);
+ canvas->restore();
}