/*
 * Copyright 2014-present Facebook, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.view;

import android.graphics.Rect;

public abstract class HardwareCanvas {
  public void drawRenderNode(RenderNode renderNode) {
    throw new RuntimeException("Stub!");
  }

  public abstract int drawDisplayList(DisplayList displayList, Rect dirty, int flags);

  public void setViewport(int width, int height) {
    throw new RuntimeException("Stub!");
  }

  public abstract int onPreDraw(Rect dirty);

  public abstract void onPostDraw();
}

@@ -621,16 +621,87 @@
 .view;%0A%0A
+import android.graphics.CanvasProperty;%0Aimport android.graphics.Paint;%0A
 import a
@@ -1129,11 +1129,534 @@
 tDraw();
+%0A%0A  public void drawCircle(%0A      CanvasProperty%3CFloat%3E cx,%0A      CanvasProperty%3CFloat%3E cy,%0A      CanvasProperty%3CFloat%3E radius,%0A      CanvasProperty%3CPaint%3E paint) %7B%0A    throw new RuntimeException(%22Stub!%22);%0A  %7D%0A%0A  public void drawRoundRect(%0A      CanvasProperty%3CFloat%3E left,%0A      CanvasProperty%3CFloat%3E top,%0A      CanvasProperty%3CFloat%3E right,%0A      CanvasProperty%3CFloat%3E bottom,%0A      CanvasProperty%3CFloat%3E rx,%0A      CanvasProperty%3CFloat%3E ry,%0A      CanvasProperty%3CPaint%3E paint) %7B%0A    throw new RuntimeException(%22Stub!%22);%0A  %7D
 %0A%7D%0A

Use HardwareCanvas instead of DisplayListCanvas prior to API 23