Lines Matching refs:canvas
39 private static native int nativeLockCanvas(int nativeObject, Canvas canvas, Rect dirty)
41 private static native void nativeUnlockCanvasAndPost(int nativeObject, Canvas canvas);
227 * @return A canvas for drawing into the surface.
230 * @throws OutOfResourcesException If the canvas cannot be locked.
252 * @param canvas The canvas previously obtained from {@link #lockCanvas}.
254 public void unlockCanvasAndPost(Canvas canvas) {
255 if (canvas != mCanvas) {
256 throw new IllegalArgumentException("canvas object must be the same instance that "
270 nativeUnlockCanvasAndPost(mLockedObject, canvas);
280 public void unlockCanvas(Canvas canvas) {
285 * Sets the translator used to scale canvas's width/height in compatibility
458 * native. For example, the canvas returns 320x480 even if an app is running