blob: 6035cbebb03236155cd8699617e8874c5a568bbd [file] [log] [blame]
John Reck5c6397e2018-11-14 15:14:44 -08001/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.view;
18
Artur Satayevad9254c2019-12-10 17:47:54 +000019import android.compat.annotation.UnsupportedAppUsage;
John Reck5c6397e2018-11-14 15:14:44 -080020import android.graphics.BaseRecordingCanvas;
21import android.graphics.CanvasProperty;
22import android.graphics.Paint;
23
24/**
25 * This class exists temporarily to workaround broken apps
26 *
27 * b/119066174
28 *
29 * @hide
30 */
31public abstract class DisplayListCanvas extends BaseRecordingCanvas {
32
33 /** @hide */
34 protected DisplayListCanvas(long nativeCanvas) {
35 super(nativeCanvas);
36 }
37
John Reck6e069402019-04-03 16:47:42 -070038 /**
39 * TODO: Public API alternative
40 * @hide
41 */
42 @UnsupportedAppUsage
John Reck5c6397e2018-11-14 15:14:44 -080043 public abstract void drawRoundRect(CanvasProperty<Float> left, CanvasProperty<Float> top,
44 CanvasProperty<Float> right, CanvasProperty<Float> bottom, CanvasProperty<Float> rx,
45 CanvasProperty<Float> ry, CanvasProperty<Paint> paint);
46
John Reck6e069402019-04-03 16:47:42 -070047 /**
48 * TODO: Public API alternative
49 * @hide
50 */
51 @UnsupportedAppUsage
John Reck5c6397e2018-11-14 15:14:44 -080052 public abstract void drawCircle(CanvasProperty<Float> cx, CanvasProperty<Float> cy,
53 CanvasProperty<Float> radius, CanvasProperty<Paint> paint);
54}