/external/skia/src/core/ |
H A D | SkDevice.cpp | 57 const SkBitmap& bitmap = this->onAccessBitmap(); local 59 bitmap.notifyPixelsChanged(); 61 return bitmap;
|
H A D | SkPixelRef.cpp | 239 bool SkPixelRef::onDecodeInto(int pow2, SkBitmap* bitmap) { argument
|
H A D | SkReadBuffer.cpp | 194 bool SkReadBuffer::readBitmap(SkBitmap* bitmap) { argument 203 this->readUInt(); // bitmap generation ID (see SkWriteBuffer::writeBitmap) 205 *bitmap = *fBitmapStorage->getBitmap(index); 209 // The bitmap was stored in a heap, but there is no way to access it. Set an error and 210 // fall through to use a place holder bitmap. 228 if (fBitmapDecoder != NULL && fBitmapDecoder(data, length, bitmap)) { 229 if (bitmap->width() == width && bitmap->height() == height) { 233 " but offset is not zero. \nInfo about the bitmap:" 252 //SkASSERT(width <= bitmap [all...] |
/external/skia/src/effects/gradients/ |
H A D | SkTwoPointRadialGradient.cpp | 183 SkBitmap* bitmap, 186 if (bitmap) { 187 this->getGradientTableBitmap(bitmap); 182 asABitmap( SkBitmap* bitmap, SkMatrix* matrix, SkShader::TileMode* xy) const argument
|
/external/skia/src/images/ |
H A D | SkDecodingImageGenerator.cpp | 88 // a bitmap described by fInfo and fRowBytes 89 const size_t fRowBytes; // rowbytes for the destination bitmap 173 SkBitmap bitmap; local 176 bool success = decoder->decode(fStream, &bitmap, info.colorType(), 184 SkASSERT(bitmap.canCopyTo(info.colorType())); 185 bool copySuccess = bitmap.copyTo(&bm, info.colorType(), &allocator); 187 SkDEBUGFAIL("bitmap.copyTo(requestedConfig) failed."); 193 SkASSERT(check_alpha(info.alphaType(), bitmap.alphaType())); 197 if (kIndex_8_SkColorType != bitmap.colorType()) { 200 SkColorTable* ctable = bitmap 226 SkBitmap bitmap; local [all...] |
H A D | SkImageDecoder.cpp | 140 bool SkImageDecoder::allocPixelRef(SkBitmap* bitmap, argument 142 return bitmap->allocPixels(fAllocator, ctable); 190 // pass a temporary bitmap, so that if we return false, we are assured of 191 // leaving the caller's bitmap untouched. 240 SkDEBUGF(("failed to allocate pixels needed to crop the bitmap")); 248 SkDEBUGF(("SkImageDecoder::cropBitmap does not have a large enough bitmap.\n"));
|
/external/skia/src/utils/ |
H A D | SkCanvasStateUtils.cpp | 221 // we currently only work for bitmap backed devices 222 const SkBitmap& bitmap = layer.device()->accessBitmap(true/*changePixels*/); local 223 if (bitmap.empty() || bitmap.isNull() || !bitmap.lockPixelsAreWritable()) { 232 layerState->width = bitmap.width(); 233 layerState->height = bitmap.height(); 235 switch (bitmap.colorType()) { 245 layerState->raster.rowBytes = bitmap.rowBytes(); 246 layerState->raster.pixels = bitmap 292 SkBitmap bitmap; local [all...] |
H A D | SkNinePatch.cpp | 104 const SkBitmap& bitmap, 108 if (bounds.isEmpty() || bitmap.width() == 0 || bitmap.height() == 0) { 113 SkAutoLockPixels alp(bitmap); 115 if (!bitmap.readyToDraw()) { 128 for (i = numYDivs - 1; i >= 0 && yDivs[i] == bitmap.height(); --i) { 139 canvas->drawBitmapRect(bitmap, NULL, bounds, paint); 160 const SkScalar fixed = SkIntToScalar(bitmap.width() - stretchSize); 172 const SkScalar fixed = SkIntToScalar(bitmap.height() - stretchSize); 181 bitmap 103 DrawMesh(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const int32_t xDivs[], int numXDivs, const int32_t yDivs[], int numYDivs, const SkPaint* paint) argument 254 drawNineViaRects(SkCanvas* canvas, const SkRect& dst, const SkBitmap& bitmap, const SkIRect& margins, const SkPaint* paint) argument 301 DrawNine(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const SkIRect& margins, const SkPaint* paint) argument [all...] |
H A D | SkTextureCompressor.cpp | 320 SkData *CompressBitmapToFormat(const SkBitmap &bitmap, Format format) { argument 321 SkAutoLockPixels alp(bitmap); 323 int compressedDataSize = get_compressed_data_size(format, bitmap.width(), bitmap.height()); 324 const uint8_t* src = reinterpret_cast<const uint8_t*>(bitmap.getPixels()); 326 if (CompressBufferToFormat(dst, src, bitmap.colorType(), bitmap.width(), bitmap.height(), 327 bitmap.rowBytes(), format)) {
|
/external/skia/src/utils/debugger/ |
H A D | SkObjectParser.cpp | 21 SkString* SkObjectParser::BitmapToString(const SkBitmap& bitmap) { argument 24 mBitmap->appendS32(bitmap.width()); 26 mBitmap->appendS32(bitmap.height()); 34 mBitmap->append(gColorTypeStrings[bitmap.colorType()]); 36 if (bitmap.isOpaque()) { 42 if (bitmap.isImmutable()) { 48 if (bitmap.isVolatile()) { 55 mBitmap->appendS32(bitmap.getGenerationID());
|
/external/skia/src/utils/mac/ |
H A D | SkCreateCGImageRef.cpp | 47 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(info); local 48 delete bitmap; 122 SkBitmap* bitmap = prepareForImageRef(bm, &bitsPerComponent, &info); local 123 if (NULL == bitmap) { 127 const int w = bitmap->width(); 128 const int h = bitmap->height(); 129 const size_t s = bitmap->getSize(); 131 // our provider "owns" the bitmap*, and will take care of deleting it 132 // we initially lock it, so we can access the pixels. The bitmap will be deleted in the release 134 bitmap 223 SkBitmap bitmap; local [all...] |
/external/skia/src/views/unix/ |
H A D | SkOSWindow_Unix.cpp | 375 static bool convertBitmapToXImage(XImage& image, const SkBitmap& bitmap) { argument 378 int bitsPerPixel = bitmap.bytesPerPixel() * 8; 379 image.width = bitmap.width(); 380 image.height = bitmap.height(); 382 image.data = (char*) bitmap.getPixels(); 388 image.bytes_per_line = bitmap.rowBytes() - bitmap.width() * 4; 401 // Draw the bitmap to the screen. 402 const SkBitmap& bitmap = getBitmap(); local 403 int width = bitmap [all...] |
/external/skia/src/xml/ |
H A D | SkJSDisplayable.cpp | 366 void SkJS::InitializeDisplayables(const SkBitmap& bitmap, JSContext *cx, JSObject *obj, JSObject *proto) { argument 367 SkJSDisplayable::gCanvas = new SkCanvas(bitmap);
|
/external/skia/tests/ |
H A D | PDFPrimitivesTest.cpp | 43 static SkData* encode_to_dct_data(size_t* pixelRefOffset, const SkBitmap& bitmap) { argument 244 // Create a bitmap that would be very eficiently compressed in a ZIP. 245 static void setup_bitmap(SkBitmap* bitmap, int width, int height) { argument 246 bitmap->allocN32Pixels(width, height); 247 bitmap->eraseColor(SK_ColorWHITE); 250 static void TestImage(skiatest::Reporter* reporter, const SkBitmap& bitmap, argument 252 SkISize pageSize = SkISize::Make(bitmap.width(), bitmap.height()); 260 c.drawBitmap(bitmap, 0, 0, NULL); 272 SkBitmap bitmap; local 289 SkBitmap bitmap; local 304 SkBitmap bitmap; local [all...] |
H A D | SerializationTest.cpp | 248 // Try to render a small bitmap using the invalid deserialized filter 251 SkBitmap bitmap; local 252 bitmap.allocN32Pixels(24, 24); 253 SkCanvas canvas(bitmap); 258 canvas.drawBitmap(bitmap, 0, 0, &paint); 262 static bool setup_bitmap_for_canvas(SkBitmap* bitmap) { argument 265 return bitmap->allocPixels(info); 268 static bool make_checkerboard_bitmap(SkBitmap& bitmap) { argument 269 bool success = setup_bitmap_for_canvas(&bitmap); 271 SkCanvas canvas(bitmap); 296 SkBitmap bitmap; local [all...] |
/external/skia/tools/ |
H A D | image_expectations.cpp | 45 const static char kJsonValue_Image_ChecksumAlgorithm_Bitmap64bitMD5[] = "bitmap-64bitMD5"; 55 ImageDigest::ImageDigest(const SkBitmap &bitmap) { argument 56 if (!SkBitmapHasher::ComputeDigest(bitmap, &fHashValue)) { 81 BitmapAndDigest::BitmapAndDigest(const SkBitmap &bitmap) : fBitmap(bitmap) { argument
|
H A D | skdiff_utils.cpp | 77 static void force_all_opaque(const SkBitmap& bitmap) { argument 78 SkAutoLockPixels lock(bitmap); 79 for (int y = 0; y < bitmap.height(); y++) { 80 for (int x = 0; x < bitmap.width(); x++) { 81 *bitmap.getAddr32(x, y) |= (SK_A32_MASK << SK_A32_SHIFT); 86 bool write_bitmap(const SkString& path, const SkBitmap& bitmap) { argument 88 bitmap.copyTo(©, kN32_SkColorType);
|
/external/valgrind/main/include/vki/ |
H A D | vki-xen.h | 76 VKI_XEN_GUEST_HANDLE_64(vki_uint8) bitmap; member in struct:vki_xenctl_bitmap
|
/external/chromium_org/chrome/browser/android/ |
H A D | most_visited_sites.cc | 465 ScopedJavaGlobalRef<jobject>* bitmap, 469 if (bitmap->obj()) { 475 env, j_callback->obj(), bitmap->obj()); 492 const SkBitmap* bitmap) { 498 if (bitmap) { 502 gfx::ConvertToJavaBitmap(bitmap).obj()); 464 OnObtainedThumbnail( ScopedJavaGlobalRef<jobject>* bitmap, ScopedJavaGlobalRef<jobject>* j_callback) argument 489 OnSuggestionsThumbnailAvailable( ScopedJavaGlobalRef<jobject>* j_callback, const GURL& url, const SkBitmap* bitmap) argument
|
/external/chromium_org/chrome/browser/ |
H A D | jumplist_win.cc | 63 bool CreateIconFile(const SkBitmap& bitmap, argument 76 image_family.Add(gfx::Image::CreateFrom1xBitmap(bitmap));
|
/external/chromium_org/chrome/browser/ui/ |
H A D | metro_pin_tab_helper_win.cc | 69 bool CreateSiteSpecificLogo(const SkBitmap& bitmap, argument 80 if (bitmap.isNull()) 83 // Fill the tile logo with the dominant color of the favicon bitmap. 84 SkColor dominant_color = color_utils::CalculateKMeanColorOfBitmap(bitmap); 100 int left = (kLogoWidth - bitmap.width()) / 2; 101 int top = (kLogoHeight - kCaptionHeight - bitmap.height()) / 2; 102 canvas.DrawImageInt(gfx::ImageSkia::CreateFrom1xBitmap(bitmap), left, top); 306 // If the new bitmap is too big, ignore it. 381 // Only the 1x bitmap data is needed.
|
/external/chromium_org/chrome/browser/ui/views/ |
H A D | create_application_shortcut_view.cc | 181 const SkBitmap& bitmap = *icon->ToSkBitmap(); local 182 if (bitmap.width() == kIconPreviewSizePixels && 183 bitmap.height() == kIconPreviewSizePixels) { 184 icon_->SetImage(gfx::ImageSkia::CreateFrom1xBitmap(bitmap)); 188 bitmap, skia::ImageOperations::RESIZE_LANCZOS3, 456 SkBitmap bitmap = icon ? icon->AsBitmap() : SkBitmap(); local 457 extensions::TabHelper::FromWebContents(web_contents_)->SetAppIcon(bitmap);
|
/external/chromium_org/chrome/browser/web_applications/ |
H A D | web_app_win.cc | 45 SkBitmap bitmap = it->AsBitmap(); local 47 SkAutoLockPixels image_lock(bitmap); 49 reinterpret_cast<const char*>(bitmap.getPixels()), bitmap.getSize());
|
/external/chromium_org/content/renderer/media/ |
H A D | video_capture_impl.cc | 261 static void NullReadPixelsCB(const SkBitmap& bitmap) { NOTIMPLEMENTED(); } argument
|
/external/chromium_org/mojo/services/html_viewer/ |
H A D | weblayertreeview_impl.cc | 140 void WebLayerTreeViewImpl::setOverhangBitmap(const SkBitmap& bitmap) { argument 141 layer_tree_host_->SetOverhangBitmap(bitmap);
|