Searched defs:bitmap (Results 26 - 50 of 171) sorted by path

1234567

/frameworks/base/core/jni/
H A Dandroid_view_GraphicBuffer.cpp182 SkBitmap bitmap; local
183 bitmap.setInfo(SkImageInfo::Make(buffer->getWidth(), buffer->getHeight(),
189 bitmap.setPixels(bits);
191 bitmap.setPixels(NULL);
195 nativeCanvas->setBitmap(bitmap);
H A Dandroid_view_PointerIcon.h71 SkBitmap bitmap; member in struct:android::PointerIcon
83 bitmap.reset();
95 /* Loads the bitmap associated with a pointer icon.
105 /* Loads the bitmap associated with a pointer icon by style.
H A Dandroid_view_Surface.cpp280 bitmap.setAlphaType(kOpaque_SkAlphaType) on the resulting SkBitmap
327 SkBitmap bitmap; local
329 bitmap.setInfo(info, bpr);
331 bitmap.setPixels(outBuffer.bits);
333 // be safe with an empty bitmap.
334 bitmap.setPixels(NULL);
338 nativeCanvas->setBitmap(bitmap);
H A Dandroid_view_SurfaceControl.cpp187 Bitmap* bitmap = new Bitmap( local
191 bitmap->peekAtPixelRef()->setImmutable();
193 return GraphicsJNI::createBitmap(env, bitmap,
H A Dandroid_view_TextureView.cpp157 SkBitmap bitmap; local
158 bitmap.setInfo(convertPixelFormat(buffer), bytesCount);
161 bitmap.setPixels(buffer.bits);
163 bitmap.setPixels(NULL);
167 nativeCanvas->setBitmap(bitmap);
H A Dandroid_view_ThreadedRenderer.cpp556 SkBitmap bitmap; local
557 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap);
558 return proxy->copyLayerInto(layer, bitmap);
672 SkBitmap bitmap; local
673 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap);
675 return RenderProxy::copySurfaceInto(surface, &bitmap);
/frameworks/base/graphics/java/android/graphics/
H A DBitmapShader.java22 * Shader used to draw a bitmap as a texture. The bitmap can be repeated or
37 * Call this to create a new shader that will draw with a bitmap.
39 * @param bitmap The bitmap to use inside the shader
40 * @param tileX The tiling mode for x to draw the bitmap in.
41 * @param tileY The tiling mode for y to draw the bitmap in.
43 public BitmapShader(@NonNull Bitmap bitmap, TileMode tileX, TileMode tileY) { argument
44 mBitmap = bitmap;
47 init(nativeCreate(bitmap, tile
60 nativeCreate(Bitmap bitmap, int shaderTileModeX, int shaderTileModeY) argument
[all...]
H A DCanvas.java39 * the draw calls (writing into the bitmap), a drawing primitive (e.g. Rect,
86 // Maximum bitmap size as defined in Skia's native code
104 * Construct an empty raster canvas. Use setBitmap() to specify a bitmap to
106 * this will typically be replaced when a target bitmap is set for the
111 // 0 means no native bitmap
121 * Construct a canvas with the specified bitmap to draw into. The bitmap
125 * bitmap's density.
127 * @param bitmap Specifies a mutable bitmap fo
129 Canvas(@onNull Bitmap bitmap) argument
187 setBitmap(@ullable Bitmap bitmap) argument
1269 throwIfCannotDraw(Bitmap bitmap) argument
1335 drawBitmap(@onNull Bitmap bitmap, float left, float top, @Nullable Paint paint) argument
1363 drawBitmap(@onNull Bitmap bitmap, @Nullable Rect src, @NonNull RectF dst, @Nullable Paint paint) argument
1410 drawBitmap(@onNull Bitmap bitmap, @Nullable Rect src, @NonNull Rect dst, @Nullable Paint paint) argument
1510 drawBitmap(@onNull Bitmap bitmap, @NonNull Matrix matrix, @Nullable Paint paint) argument
1550 drawBitmapMesh(@onNull Bitmap bitmap, int meshWidth, int meshHeight, @NonNull float[] verts, int vertOffset, @Nullable int[] colors, int colorOffset, @Nullable Paint paint) argument
1995 initRaster(Bitmap bitmap) argument
1996 native_setBitmap(long canvasHandle, Bitmap bitmap) argument
2088 native_drawBitmap(long nativeCanvas, Bitmap bitmap, float left, float top, long nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity) argument
2094 native_drawBitmap(long nativeCanvas, Bitmap bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, long nativePaintOrZero, int screenDensity, int bitmapDensity) argument
2103 nativeDrawBitmapMatrix(long nativeCanvas, Bitmap bitmap, long nativeMatrix, long nativePaint) argument
2107 nativeDrawBitmapMesh(long nativeCanvas, Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long nativePaint) argument
[all...]
H A DNinePatch.java20 * The NinePatch class permits drawing a bitmap in nine or more sections.
35 * Struct of inset information attached to a 9 patch bitmap.
37 * Present on a 9 patch bitmap if it optical insets were manually included,
93 * Create a drawable projection from a bitmap to nine patches.
95 * @param bitmap The bitmap describing the patches.
96 * @param chunk The 9-patch data chunk describing how the underlying bitmap
99 public NinePatch(Bitmap bitmap, byte[] chunk) { argument
100 this(bitmap, chunk, null);
104 * Create a drawable projection from a bitmap t
111 NinePatch(Bitmap bitmap, byte[] chunk, String srcName) argument
280 nativeGetTransparentRegion(Bitmap bitmap, long chunk, Rect location) argument
[all...]
H A DPicture.java199 public void setBitmap(Bitmap bitmap) { argument
/frameworks/base/graphics/java/android/graphics/drawable/
H A DBitmapDrawable.java55 * A Drawable that wraps a bitmap and can be tiled, stretched, or aligned. You can create a
58 * <p>It can be defined in an XML file with the <code>&lt;bitmap></code> element. For more
63 * transformation of raw bitmap graphics, and should be used when drawing to a
109 * instead to specify a bitmap to draw with and ensure the correct density is set.
121 * instead to specify a bitmap to draw with.
131 * Create drawable from a bitmap, not dealing with density.
136 public BitmapDrawable(Bitmap bitmap) { argument
137 this(new BitmapState(bitmap), null);
141 * Create drawable from a bitmap, setting initial target density based on
144 public BitmapDrawable(Resources res, Bitmap bitmap) { argument
224 setBitmap(Bitmap bitmap) argument
917 BitmapState(Bitmap bitmap) argument
[all...]
H A DDrawable.java113 * bitmap, allowing it to resize better in some cases.
169 * guide. For information and examples of creating drawable resources (XML or bitmap files that
1136 the pad rect, but if the bitmap does not had a ninepatch chunk,
1293 * share a unique bitmap stored in their ConstantState.
1309 * properties, such as pixel dimensions or bitmap images, will not be
1369 protected final boolean isAtlasable(@Nullable Bitmap bitmap) { argument
1370 return bitmap != null && bitmap.getConfig() == Bitmap.Config.ARGB_8888;
H A DNinePatchDrawable.java56 * A resizeable bitmap, with stretchable areas that you define. This type of image
100 public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) { argument
101 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null);
108 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, argument
110 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res);
119 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, argument
121 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding, opticalInsets),
431 Bitmap bitmap = null;
437 bitmap = BitmapFactory.decodeResourceStream(r, value, is, padding, options);
444 if (bitmap
[all...]
/frameworks/base/graphics/java/android/graphics/pdf/
H A DPdfDocument.java256 public void setBitmap(Bitmap bitmap) { argument
/frameworks/base/graphics/java/android/view/
H A DPixelCopy.java65 * The destination isn't a valid copy target. If the destination is a bitmap
66 * this can occur if the bitmap is too large for the hardware to copy to.
90 * The contents of the source will be scaled to fit exactly inside the bitmap.
92 * to fit the the bitmap's {@link Bitmap.Config}. The most recently queued buffer
97 * match the width, height, and format of this bitmap.
111 * The contents of the source will be scaled to fit exactly inside the bitmap.
113 * to fit the the bitmap's {@link Bitmap.Config}. The most recently queued buffer
118 * match the width, height, and format of this bitmap.
139 private static void validateBitmapDest(Bitmap bitmap) { argument
141 if (bitmap
[all...]
/frameworks/base/libs/hwui/
H A DBakedOpDispatcher.cpp49 const SkBitmap* bitmap = (static_cast<const BitmapOp*>(opList.states[0]->op))->bitmap; local
51 AssetAtlas::Entry* entry = renderer.renderState().assetAtlas().getEntry(bitmap->pixelRef());
52 Texture* texture = entry ? entry->texture : renderer.caches().textureCache.get(bitmap);
76 const int textureFillFlags = (bitmap->colorType() == kAlpha_8_SkColorType)
96 firstOp.bitmap->pixelRef());
108 entry, op.bitmap->width(), op.bitmap->height(),
129 entry, op.bitmap->width(), op.bitmap
[all...]
H A DBakedOpRenderer.cpp184 Texture* BakedOpRenderer::getTexture(const SkBitmap* bitmap) { argument
185 Texture* texture = mRenderState.assetAtlas().getEntryTexture(bitmap->pixelRef());
187 return mCaches.textureCache.get(bitmap);
H A DDisplayListCanvas.cpp229 void DisplayListCanvas::drawBitmap(const SkBitmap* bitmap, const SkPaint* paint) { argument
230 bitmap = refBitmap(*bitmap);
233 addDrawOp(new (alloc()) DrawBitmapOp(bitmap, paint));
236 void DisplayListCanvas::drawBitmap(const SkBitmap& bitmap, float left, float top, argument
240 drawBitmap(&bitmap, paint);
244 void DisplayListCanvas::drawBitmap(const SkBitmap& bitmap, const SkMatrix& matrix, argument
247 drawBitmap(&bitmap, paint);
254 bitmap.getBounds(&src);
256 drawBitmap(bitmap, sr
266 drawBitmap(const SkBitmap& bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) argument
312 drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument
323 drawNinePatch(const SkBitmap& bitmap, const Res_png_9patch& patch, float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) argument
[all...]
H A DDisplayListCanvas.h111 virtual void setBitmap(const SkBitmap& bitmap) override {
112 LOG_ALWAYS_FATAL("DisplayListCanvas is not backed by a bitmap.");
198 virtual void drawBitmap(const SkBitmap& bitmap, float left, float top, const SkPaint* paint) override;
199 virtual void drawBitmap(const SkBitmap& bitmap, const SkMatrix& matrix,
201 virtual void drawBitmap(const SkBitmap& bitmap, float srcLeft, float srcTop,
204 virtual void drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight,
206 virtual void drawNinePatch(const SkBitmap& bitmap, const android::Res_png_9patch& chunk,
231 void drawBitmap(const SkBitmap* bitmap, const SkPaint* paint);
319 inline const SkBitmap* refBitmap(const SkBitmap& bitmap) { argument
320 // Note that this assumes the bitmap i
[all...]
H A DDisplayListOp.h605 DrawBitmapOp(const SkBitmap* bitmap, const SkPaint* paint) argument
606 : DrawBoundedOp(0, 0, bitmap->width(), bitmap->height(), paint)
607 , mBitmap(bitmap)
629 * for each bitmap in the batch. This method is also responsible for dirtying
674 OP_LOG("Draw bitmap %p of size %dx%d%s",
703 const SkBitmap* bitmap() { return mBitmap; } function in class:android::uirenderer::DrawBitmapOp
712 DrawBitmapRectOp(const SkBitmap* bitmap, argument
716 mBitmap(bitmap), mSrc(srcLeft, srcTop, srcRight, srcBottom) {}
723 OP_LOG("Draw bitmap
741 DrawBitmapMeshOp(const SkBitmap* bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument
773 DrawPatchOp(const SkBitmap* bitmap, const Res_png_9patch* patch, float left, float top, float right, float bottom, const SkPaint* paint) argument
1117 const SkBitmap& bitmap = mTree->getBitmapUpdateIfDirty(); variable
[all...]
H A DFrameBuilder.cpp602 if (op.bitmap->isOpaque()) {
612 && op.bitmap->colorType() != kAlpha_8_SkColorType
614 mergeid_t mergeId = reinterpret_cast<mergeid_t>(op.bitmap->getGenerationID());
635 const SkBitmap& bitmap = op.vectorDrawable->getBitmapUpdateIfDirty(); local
641 &bitmap,
642 Rect(bitmap.width(), bitmap.height()));
689 mergeid_t mergeId = reinterpret_cast<mergeid_t>(op.bitmap->getGenerationID());
H A DLayerRenderer.cpp354 bool LayerRenderer::copyLayer(RenderState& renderState, Layer* layer, SkBitmap* bitmap) { argument
357 && bitmap->width() <= caches.maxTextureSize
358 && bitmap->height() <= caches.maxTextureSize) {
366 SkAutoLockPixels alp(*bitmap);
378 switch (bitmap->colorType()) {
414 glPixelStorei(GL_PACK_ALIGNMENT, bitmap->bytesPerPixel());
422 glTexImage2D(GL_TEXTURE_2D, 0, format, bitmap->width(), bitmap->height(),
430 renderer.OpenGLRenderer::prepareDirty(bitmap->width(), bitmap
[all...]
H A DOpenGLRenderer.cpp1460 void OpenGLRenderer::drawBitmaps(const SkBitmap* bitmap, AssetAtlas::Entry* entry, argument
1463 Texture* texture = entry ? entry->texture : mCaches.textureCache.get(bitmap);
1474 const int textureFillFlags = (bitmap->colorType() == kAlpha_8_SkColorType)
1488 void OpenGLRenderer::drawBitmap(const SkBitmap* bitmap, const SkPaint* paint) { argument
1489 if (quickRejectSetupScissor(0, 0, bitmap->width(), bitmap->height())) {
1494 Texture* texture = getTexture(bitmap);
1498 const int textureFillFlags = (bitmap->colorType() == kAlpha_8_SkColorType)
1511 void OpenGLRenderer::drawBitmapMesh(const SkBitmap* bitmap, int meshWidth, int meshHeight, argument
1535 Texture* texture = mRenderState.assetAtlas().getEntryTexture(bitmap
1601 drawBitmap(const SkBitmap* bitmap, Rect src, Rect dst, const SkPaint* paint) argument
1630 drawPatch(const SkBitmap* bitmap, const Patch* mesh, AssetAtlas::Entry* entry, float left, float top, float right, float bottom, const SkPaint* paint) argument
1662 drawPatches(const SkBitmap* bitmap, AssetAtlas::Entry* entry, TextureVertex* vertices, uint32_t elementCount, const SkPaint* paint) argument
2318 getTexture(const SkBitmap* bitmap) argument
[all...]
H A DPathCache.cpp149 static void initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height) { argument
150 bitmap.allocPixels(SkImageInfo::MakeA8(width, height));
151 bitmap.eraseColor(0);
166 static void drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, argument
168 initBitmap(bitmap, width, height);
173 SkCanvas canvas(bitmap);
256 // Don't even try to cache a bitmap that's bigger than the cache
282 SkBitmap bitmap; local
283 drawPath(path, paint, bitmap, left, top, offset, width, height);
287 generateTexture(entry, &bitmap, textur
292 generateTexture(const PathDescription& entry, SkBitmap* bitmap, PathTexture* texture, bool addToCache) argument
315 generateTexture(SkBitmap& bitmap, Texture* texture) argument
343 SkBitmap* bitmap = new SkBitmap(); local
397 SkBitmap* bitmap = task->getResult(); local
[all...]
H A DReadback.cpp34 Surface& surface, SkBitmap* bitmap) {
41 int destWidth = bitmap->width();
42 int destHeight = bitmap->height();
45 ALOGW("Can't copy surface into bitmap, %dx%d exceeds max texture size %d",
55 SkAutoLockPixels alp(*bitmap);
62 switch (bitmap->colorType()) {
91 glPixelStorei(GL_PACK_ALIGNMENT, bitmap->bytesPerPixel());
178 glReadPixels(0, 0, bitmap->width(), bitmap->height(), format,
179 type, bitmap
33 copySurfaceInto(renderthread::RenderThread& renderThread, Surface& surface, SkBitmap* bitmap) argument
[all...]

Completed in 716 milliseconds

1234567