| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.android_webview; | 5 package org.chromium.android_webview; |
| 6 | 6 |
| 7 import android.graphics.Canvas; | 7 import android.graphics.Canvas; |
| 8 import android.graphics.Picture; | 8 import android.graphics.Picture; |
| 9 import android.graphics.Rect; | 9 import android.graphics.Rect; |
| 10 | 10 |
| 11 import org.chromium.base.JNINamespace; | 11 import org.chromium.base.JNINamespace; |
| 12 import org.chromium.content.common.CleanupReference; | 12 import org.chromium.content_public.common.CleanupReference; |
| 13 | 13 |
| 14 import java.io.OutputStream; | 14 import java.io.OutputStream; |
| 15 | 15 |
| 16 // A simple wrapper around a SkPicture, that allows final rendering to be perfor
med using the | 16 // A simple wrapper around a SkPicture, that allows final rendering to be perfor
med using the |
| 17 // chromium skia library. | 17 // chromium skia library. |
| 18 @JNINamespace("android_webview") | 18 @JNINamespace("android_webview") |
| 19 class AwPicture extends Picture { | 19 class AwPicture extends Picture { |
| 20 | 20 |
| 21 private long mNativeAwPicture; | 21 private long mNativeAwPicture; |
| 22 | 22 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 throw new IllegalStateException("Unsupported in AwPicture"); | 85 throw new IllegalStateException("Unsupported in AwPicture"); |
| 86 } | 86 } |
| 87 | 87 |
| 88 private static native void nativeDestroy(long nativeAwPicture); | 88 private static native void nativeDestroy(long nativeAwPicture); |
| 89 private native int nativeGetWidth(long nativeAwPicture); | 89 private native int nativeGetWidth(long nativeAwPicture); |
| 90 private native int nativeGetHeight(long nativeAwPicture); | 90 private native int nativeGetHeight(long nativeAwPicture); |
| 91 private native void nativeDraw(long nativeAwPicture, Canvas canvas, | 91 private native void nativeDraw(long nativeAwPicture, Canvas canvas, |
| 92 int left, int top, int right, int bottom); | 92 int left, int top, int right, int bottom); |
| 93 } | 93 } |
| 94 | 94 |
| OLD | NEW |