blob: 3e749f4ba16f58dc4ba958f73b4c58cd273c91af [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
19import android.annotation.UnsupportedAppUsage;
20import android.graphics.BaseRecordingCanvas;
21import android.graphics.CanvasProperty;
22import android.graphics.Paint;
John Reck01053cd2018-11-15 14:12:24 -080023import android.os.Build;
John Reck5c6397e2018-11-14 15:14:44 -080024
25/**
26 * This class exists temporarily to workaround broken apps
27 *
28 * b/119066174
29 *
30 * @hide
31 */
32public abstract class DisplayListCanvas extends BaseRecordingCanvas {
33
34 /** @hide */
35 protected DisplayListCanvas(long nativeCanvas) {
36 super(nativeCanvas);
37 }
38
39 /** @hide */
Mathew Inwood0106c5d2019-02-06 13:45:40 +000040 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.O)
John Reck5c6397e2018-11-14 15:14:44 -080041 public abstract void drawRoundRect(CanvasProperty<Float> left, CanvasProperty<Float> top,
42 CanvasProperty<Float> right, CanvasProperty<Float> bottom, CanvasProperty<Float> rx,
43 CanvasProperty<Float> ry, CanvasProperty<Paint> paint);
44
45 /** @hide */
John Reck01053cd2018-11-15 14:12:24 -080046 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
John Reck5c6397e2018-11-14 15:14:44 -080047 public abstract void drawCircle(CanvasProperty<Float> cx, CanvasProperty<Float> cy,
48 CanvasProperty<Float> radius, CanvasProperty<Paint> paint);
49}