/external/skia/src/core/ |
SkDevice.cpp | 49 const SkBitmap& bitmap = this->onAccessBitmap(); local 51 bitmap.notifyPixelsChanged(); 53 return bitmap; 148 // Default impl : turns everything into raster bitmap 158 // Default impl : turns everything into raster bitmap 175 void SkBaseDevice::drawBitmapNine(const SkDraw& draw, const SkBitmap& bitmap, const SkIRect& center, 177 SkNinePatchIter iter(bitmap.width(), bitmap.height(), center, dst); 181 this->drawBitmapRect(draw, bitmap, &srcR, dstR, paint, SkCanvas::kStrict_SrcRectConstraint); 406 void SkBaseDevice::drawBitmapAsSprite(const SkDraw& draw, const SkBitmap& bitmap, int x, int y [all...] |
SkPixmap.cpp | 262 SkBitmap bitmap; local 263 if (!bitmap.installPixels(*this)) { 266 bitmap.setIsVolatile(true); // so we don't try to cache it 277 surface->getCanvas()->drawBitmapRect(bitmap, SkRect::MakeIWH(dst.width(), dst.height()),
|
/external/skia/src/gpu/ |
SkGr.cpp | 76 // Does the data match the dimensions of the bitmap? If not, 94 // Does the data match the dimensions of the bitmap? If not, 111 * based bitmap. [palette (colortable) + indices]. 121 static void build_index8_data(void* buffer, const SkBitmap& bitmap) { 122 SkASSERT(kIndex_8_SkColorType == bitmap.colorType()); 124 SkAutoLockPixels alp(bitmap); 125 if (!bitmap.readyToDraw()) { 126 SkDEBUGFAIL("bitmap not ready to draw!"); 130 SkColorTable* ctable = bitmap.getColorTable(); 152 if ((unsigned)bitmap.width() == bitmap.rowBytes()) 222 const SkBitmap* bitmap = &bmp; local [all...] |
/external/skia/src/utils/ |
SkCanvasStateUtils.cpp | 226 // we currently only work for bitmap backed devices 292 SkBitmap bitmap; local 302 bitmap.installPixels(SkImageInfo::Make(layerState.width, layerState.height, 306 SkASSERT(!bitmap.empty()); 307 SkASSERT(!bitmap.isNull()); 309 SkAutoTUnref<SkCanvas> canvas(new SkCanvas(bitmap));
|
/external/skia/src/views/ |
SkWidgets.cpp | 508 bool SkBitmapView::getBitmap(SkBitmap* bitmap) const 510 if (bitmap) 511 *bitmap = fBitmap; 515 void SkBitmapView::setBitmap(const SkBitmap* bitmap, bool viewOwnsPixels) 517 if (bitmap) 519 fBitmap = *bitmap; 526 SkBitmap bitmap; local 528 if (SkImageDecoder::DecodeFile(path, &bitmap)) 530 this->setBitmap(&bitmap, true); 531 bitmap.setOwnsPixels(false) [all...] |
/external/skia/src/views/unix/ |
SkOSWindow_Unix.cpp | 408 static bool convertBitmapToXImage(XImage& image, const SkBitmap& bitmap) { 411 int bitsPerPixel = bitmap.bytesPerPixel() * 8; 412 image.width = bitmap.width(); 413 image.height = bitmap.height(); 415 image.data = (char*) bitmap.getPixels(); 421 image.bytes_per_line = bitmap.rowBytes() - bitmap.width() * 4; 434 // Draw the bitmap to the screen. 435 const SkBitmap& bitmap = getBitmap(); local 436 int width = bitmap.width() [all...] |
/external/skia/tests/ |
CachedDecodingPixelRefTest.cpp | 22 * Fill this bitmap with some color. 39 * encode this bitmap into some data via SkImageEncoder 93 original bitmap */ 333 SkBitmap bitmap; local 334 bitmap.allocN32Pixels(TestImageGenerator::Width(), TestImageGenerator::Height()); 335 SkCanvas canvas(bitmap); 341 r, TestImageGenerator::Color() == bitmap.getColor(0, 0)); 344 REPORTER_ASSERT(r, kDefaultColor == bitmap.getColor(0, 0));
|
PathOpsBuilderConicTest.cpp | 64 SkBitmap bitmap; local 65 comparePaths(reporter, __FUNCTION__ , regionResult, builderResult, bitmap); 66 comparePaths(reporter, __FUNCTION__ , regionResult, opResult, bitmap); 133 SkBitmap bitmap; local 134 failed = !!comparePaths(reporter, __FUNCTION__, path, dummy, bitmap); [all...] |
PathOpsConicIntersectionTest.cpp | 87 SkBitmap bitmap; local 91 bitmap.tryAllocPixels(SkImageInfo::MakeN32Premul( 93 SkCanvas canvas(bitmap); 113 SkImageEncoder::EncodeFile(filename.c_str(), bitmap, 122 SkBitmap bitmap; local 129 bitmap.tryAllocPixels(SkImageInfo::MakeN32Premul( 132 SkCanvas canvas(bitmap); 155 SkImageEncoder::EncodeFile(filename.c_str(), bitmap, 264 SkBitmap bitmap; local 265 bitmap.tryAllocPixels(SkImageInfo::MakeN32Premul [all...] |
SerializationTest.cpp | 256 // Try to render a small bitmap using the invalid deserialized filter 259 SkBitmap bitmap; local 260 bitmap.allocN32Pixels(24, 24); 261 SkCanvas canvas(bitmap); 266 canvas.drawBitmap(bitmap, 0, 0, &paint); 294 SkBitmap bitmap; local 295 bitmap.allocN32Pixels(SkScalarCeilToInt(picture.cullRect().width()), 297 SkCanvas canvas(bitmap); 299 return bitmap; 384 static void setup_bitmap_for_canvas(SkBitmap* bitmap) { 414 SkBitmap bitmap; local [all...] |
/external/v8/src/heap/ |
spaces-inl.h | 20 // Bitmap 22 void Bitmap::Clear(MemoryChunk* chunk) { 23 Bitmap* bitmap = chunk->markbits(); local 24 for (int i = 0; i < bitmap->CellsCount(); i++) bitmap->cells()[i] = 0;
|
/external/valgrind/include/vki/ |
vki-xen.h | 103 VKI_XEN_GUEST_HANDLE_64(vki_uint8) bitmap; member in struct:vki_xenctl_bitmap
|
/frameworks/av/media/libmedia/ |
IMediaMetadataRetriever.cpp | 273 sp<IMemory> bitmap = getFrameAtTime(timeUs, option); local 274 if (bitmap != 0) { // Don't send NULL across the binder interface 276 reply->writeStrongBinder(IInterface::asBinder(bitmap));
|
/frameworks/base/core/java/android/gesture/ |
Gesture.java | 19 import android.graphics.Bitmap; 176 * Creates a bitmap of the gesture with a transparent background. 178 * @param width width of the target bitmap 179 * @param height height of the target bitmap 183 * @return the bitmap 185 public Bitmap toBitmap(int width, int height, int edge, int numSample, int color) { 186 final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) local 221 final Bitmap bitmap = Bitmap.createBitmap(width, height, local [all...] |
/frameworks/base/core/java/android/transition/ |
Crossfade.java | 25 import android.graphics.Bitmap; 39 * This transition captures bitmap representations of target views before and 49 // a given target view. This would save bitmap comparisons in this transition, for example. 53 private static final String PROPNAME_BITMAP = "android:crossfade:bitmap"; 178 Bitmap startBitmap = (Bitmap) startVals.get(PROPNAME_BITMAP); 179 Bitmap endBitmap = (Bitmap) endVals.get(PROPNAME_BITMAP); 271 Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight() local [all...] |
TransitionUtils.java | 22 import android.graphics.Bitmap; 81 * Creates a View using the bitmap copy of <code>view</code>. If <code>view</code> is large, 82 * the copy will use a scaled bitmap of the given view. 102 Bitmap bitmap = createViewBitmap(view, matrix, bounds); local 103 if (bitmap != null) { 104 copy.setImageBitmap(bitmap); 114 * Get a copy of bitmap of given drawable, return null if intrinsic size is zero 116 public static Bitmap createDrawableBitmap(Drawable drawable) { 124 // return same bitmap if scale down not neede 129 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); local 156 Bitmap bitmap = null; local [all...] |
/frameworks/base/core/jni/android/graphics/pdf/ |
PdfRenderer.cpp | 161 static void renderPageBitmap(FPDF_BITMAP bitmap, FPDF_PAGE page, int destLeft, int destTop, 178 fxgeDevice->Attach((CFX_DIBitmap*) bitmap, 0, TRUE); 258 FPDF_BITMAP bitmap = FPDFBitmap_CreateEx(skBitmap.width(), skBitmap.height(), local 261 if (!bitmap) { 262 ALOGE("Erorr creating bitmap"); 279 renderPageBitmap(bitmap, page, destLeft, destTop, destRight, 290 {"nativeRenderPage", "(JJLandroid/graphics/Bitmap;IIIIJI)V", (void*) nativeRenderPage},
|
/frameworks/base/libs/hwui/ |
PathCache.cpp | 149 static void initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height) { 150 bitmap.allocPixels(SkImageInfo::MakeA8(width, height)); 151 bitmap.eraseColor(0); 166 static void drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, 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, texture) 343 SkBitmap* bitmap = new SkBitmap(); local 397 SkBitmap* bitmap = task->getResult(); local [all...] |
/frameworks/base/libs/hwui/tests/common/ |
TestUtils.h | 137 SkBitmap bitmap; local 140 bitmap.setInfo(info); 141 bitmap.allocPixels(info); 142 return bitmap;
|
/frameworks/base/media/jni/ |
android_media_MediaMetadataRetriever.cpp | 298 ALOGE("getFrameAtTime: create Bitmap failed!"); 302 SkBitmap bitmap; local 303 GraphicsJNI::getSkBitmap(env, jBitmap, &bitmap); 305 bitmap.lockPixels(); 306 rotate((uint16_t*)bitmap.getPixels(), 311 bitmap.unlockPixels(); 321 ALOGV("Bitmap dimension is scaled from %dx%d to %dx%d", 419 jclass bitmapClazz = env->FindClass("android/graphics/Bitmap"); 429 "(IILandroid/graphics/Bitmap$Config;)" 430 "Landroid/graphics/Bitmap;"); [all...] |
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
ObjectViewer.java | 22 import android.graphics.Bitmap; 154 Bitmap bitmap = BitmapFactory.decodeByteArray(thumbnail, 0, thumbnail.length); local 155 if (bitmap != null) { 157 thumbView.setImageBitmap(bitmap);
|
/frameworks/base/services/core/java/com/android/server/policy/ |
IconUtilities.java | 23 import android.graphics.Bitmap; 87 Bitmap scaled = createIconBitmap(src); 102 * Returns a bitmap suitable for the all apps view. The bitmap will be a power 103 * of two sized ARGB_8888 bitmap that can be used as a gl texture. 105 public Bitmap createIconBitmap(Drawable icon) { 114 // Ensure the bitmap has a density. 116 Bitmap bitmap = bitmapDrawable.getBitmap(); local 117 if (bitmap.getDensity() == Bitmap.DENSITY_NONE) 145 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, local [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
SurfaceHolderTarget.java | 19 import android.graphics.Bitmap; 165 Bitmap bitmap = image.toBitmap(); local 166 Rect sourceRect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()); 172 canvas.drawBitmap(bitmap, sourceRect, targetRect, new Paint());
|
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
DpiTestActivity.java | 24 import android.graphics.Bitmap; 89 addLabelToRoot(root, "Prescaled bitmap in drawable"); 96 addLabelToRoot(root, "Autoscaled bitmap in drawable"); 118 addLabelToRoot(root, "Prescaled bitmap"); 125 addLabelToRoot(root, "Autoscaled bitmap"); 165 Bitmap bitmap; local 166 bitmap = loadAndPrintDpi(resource, scale); 170 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap); 191 Bitmap bitmap local 215 Bitmap bitmap; local [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
ViewGroup_Delegate.java | 22 import android.graphics.Bitmap; 78 Bitmap bitmap = Bitmap_Delegate.createBitmap(shadow, false, local 84 canvas.drawBitmap(bitmap, 0, 0, null);
|