Home
last modified time | relevance | path

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

/frameworks/layoutlib/bridge/src/android/graphics/
DCanvas_Delegate.java118 Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(canvas); in nSetBitmap() local
120 if (canvasDelegate == null || bitmapDelegate == null) { in nSetBitmap()
123 canvasDelegate.mBitmap = bitmapDelegate; in nSetBitmap()
124 canvasDelegate.mSnapshot = GcSnapshot.createDefaultSnapshot(bitmapDelegate); in nSetBitmap()
130 Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(nativeCanvas); in nIsOpaque() local
131 if (canvasDelegate == null) { in nIsOpaque()
135 return canvasDelegate.mBitmap.getConfig() == Config.RGB_565; in nIsOpaque()
141 Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(nativeCanvas); in nGetWidth() local
142 if (canvasDelegate == null) { in nGetWidth()
146 return canvasDelegate.mBitmap.getImage().getWidth(); in nGetWidth()
[all …]
DBaseCanvas_Delegate.java141 BaseCanvas_Delegate canvasDelegate = sManager.getDelegate(nativeCanvas); in nDrawColor() local
142 if (canvasDelegate == null) { in nDrawColor()
146 final int w = canvasDelegate.mBitmap.getImage().getWidth(); in nDrawColor()
147 final int h = canvasDelegate.mBitmap.getImage().getHeight(); in nDrawColor()
457 Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(nativeCanvas); in nDrawNinePatch() local
458 if (canvasDelegate == null) { in nDrawNinePatch()
465 canvasDelegate.getSnapshot().draw(new GcSnapshot.Drawable() { in nDrawNinePatch()
480 BaseCanvas_Delegate canvasDelegate = sManager.getDelegate(nCanvas); in nDrawBitmapMatrix() local
481 if (canvasDelegate == null) { in nDrawBitmapMatrix()
503 canvasDelegate.getSnapshot().draw((graphics, paint) -> { in nDrawBitmapMatrix()
[all …]