1cb93a386Sopenharmony_ci#if 0  // Disabled until updated to use current API.
2cb93a386Sopenharmony_ci// Copyright 2019 Google LLC.
3cb93a386Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4cb93a386Sopenharmony_ci#include "tools/fiddle/examples.h"
5cb93a386Sopenharmony_ci// HASH=00b430bd80d740e19c6d020a940f56d5
6cb93a386Sopenharmony_ciREG_FIDDLE(Canvas_drawAnnotation_2, 256, 1, false, 0) {
7cb93a386Sopenharmony_civoid draw(SkCanvas* canvas) {
8cb93a386Sopenharmony_ci    const char text[] = "Click this link!";
9cb93a386Sopenharmony_ci    SkRect bounds;
10cb93a386Sopenharmony_ci    SkPaint paint;
11cb93a386Sopenharmony_ci    paint.setTextSize(40);
12cb93a386Sopenharmony_ci    (void)paint.measureText(text, strlen(text), &bounds);
13cb93a386Sopenharmony_ci    const char url[] = "https://www.google.com/";
14cb93a386Sopenharmony_ci    sk_sp<SkData> urlData(SkData::MakeWithCString(url));
15cb93a386Sopenharmony_ci    canvas->drawAnnotation(bounds, "url_key", urlData.get());
16cb93a386Sopenharmony_ci}
17cb93a386Sopenharmony_ci}  // END FIDDLE
18cb93a386Sopenharmony_ci#endif  // Disabled until updated to use current API.
19