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.java119 Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(canvas); in nSetBitmap() local
121 if (canvasDelegate == null || bitmapDelegate == null) { in nSetBitmap()
124 canvasDelegate.mBitmap = bitmapDelegate; in nSetBitmap()
125 canvasDelegate.mSnapshot = GcSnapshot.createDefaultSnapshot(bitmapDelegate); in nSetBitmap()
131 Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(nativeCanvas); in nIsOpaque() local
132 if (canvasDelegate == null) { in nIsOpaque()
136 return canvasDelegate.mBitmap.getConfig() == Config.RGB_565; in nIsOpaque()
142 Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(nativeCanvas); in nGetWidth() local
143 if (canvasDelegate == null) { in nGetWidth()
147 return canvasDelegate.mBitmap.getImage().getWidth(); in nGetWidth()
[all …]
DBaseCanvas_Delegate.java137 BaseCanvas_Delegate canvasDelegate = sManager.getDelegate(nativeCanvas); in nDrawColor() local
138 if (canvasDelegate == null) { in nDrawColor()
142 final int w = canvasDelegate.mBitmap.getImage().getWidth(); in nDrawColor()
143 final int h = canvasDelegate.mBitmap.getImage().getHeight(); in nDrawColor()
453 Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(nativeCanvas); in nDrawNinePatch() local
454 if (canvasDelegate == null) { in nDrawNinePatch()
461 canvasDelegate.getSnapshot().draw(new GcSnapshot.Drawable() { in nDrawNinePatch()
476 BaseCanvas_Delegate canvasDelegate = sManager.getDelegate(nCanvas); in nDrawBitmapMatrix() local
477 if (canvasDelegate == null) { in nDrawBitmapMatrix()
499 canvasDelegate.getSnapshot().draw((graphics, paint) -> { in nDrawBitmapMatrix()
[all …]