OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.content.browser; | 5 package org.chromium.content.browser; |
6 | 6 |
7 import android.graphics.Bitmap; | 7 import android.graphics.Bitmap; |
8 import android.graphics.Rect; | 8 import android.graphics.Rect; |
9 import android.util.SparseArray; | 9 import android.util.SparseArray; |
10 | 10 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 } | 115 } |
116 | 116 |
117 /** | 117 /** |
118 * Implemented by the owner of this class to signal whether readback is poss
ible or not. | 118 * Implemented by the owner of this class to signal whether readback is poss
ible or not. |
119 * @return Whether readback is possible or not. | 119 * @return Whether readback is possible or not. |
120 */ | 120 */ |
121 protected abstract boolean readyForReadback(); | 121 protected abstract boolean readyForReadback(); |
122 | 122 |
123 private native long nativeInit(); | 123 private native long nativeInit(); |
124 private native void nativeDestroy(long nativeContentReadbackHandler); | 124 private native void nativeDestroy(long nativeContentReadbackHandler); |
125 private native void nativeGetContentBitmap(long nativeContentReadbackHandler
, int readback_id, | 125 private native void nativeGetContentBitmap(long nativeContentReadbackHandler
, int readbackId, |
126 float scale, Bitmap.Config config, float x, float y, float width, fl
oat height, | 126 float scale, Bitmap.Config config, float x, float y, float width, fl
oat height, |
127 Object contentViewCore); | 127 Object contentViewCore); |
128 private native void nativeGetCompositorBitmap(long nativeContentReadbackHand
ler, | 128 private native void nativeGetCompositorBitmap(long nativeContentReadbackHand
ler, |
129 int readback_id, long nativeWindowAndroid); | 129 int readbackId, long nativeWindowAndroid); |
130 } | 130 } |
OLD | NEW |