Home
last modified time | relevance | path

Searched refs:mOffscreenBuffer (Results 1 – 2 of 2) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureTrailsDrawingPreview.java42 private Bitmap mOffscreenBuffer; field in GestureTrailsDrawingPreview
76 if (mOffscreenBuffer != null) { in freeOffscreenBuffer()
77 mOffscreenBuffer.recycle(); in freeOffscreenBuffer()
78 mOffscreenBuffer = null; in freeOffscreenBuffer()
83 if (mOffscreenBuffer != null && mOffscreenBuffer.getWidth() == mOffscreenWidth in mayAllocateOffscreenBuffer()
84 && mOffscreenBuffer.getHeight() == mOffscreenHeight) { in mayAllocateOffscreenBuffer()
88 mOffscreenBuffer = Bitmap.createBitmap( in mayAllocateOffscreenBuffer()
90 mOffscreenCanvas.setBitmap(mOffscreenBuffer); in mayAllocateOffscreenBuffer()
146 canvas.drawBitmap(mOffscreenBuffer, mOffscreenSrcRect, mDirtyRect, null); in drawPreview()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardView.java117 private Bitmap mOffscreenBuffer; field in KeyboardView
246 if (bufferNeedsUpdates || mOffscreenBuffer == null) { in onDraw()
250 mOffscreenCanvas.setBitmap(mOffscreenBuffer); in onDraw()
254 canvas.drawBitmap(mOffscreenBuffer, 0.0f, 0.0f, null); in onDraw()
263 if (mOffscreenBuffer != null && mOffscreenBuffer.getWidth() == width in maybeAllocateOffscreenBuffer()
264 && mOffscreenBuffer.getHeight() == height) { in maybeAllocateOffscreenBuffer()
268 mOffscreenBuffer = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in maybeAllocateOffscreenBuffer()
275 if (mOffscreenBuffer != null) { in freeOffscreenBuffer()
276 mOffscreenBuffer.recycle(); in freeOffscreenBuffer()
277 mOffscreenBuffer = null; in freeOffscreenBuffer()