/external/skia/src/effects/ |
H A D | SkBitmapSource.cpp | 15 SkBitmapSource::SkBitmapSource(const SkBitmap& bitmap) argument 17 fBitmap(bitmap), 18 fSrcRect(SkRect::MakeWH(SkIntToScalar(bitmap.width()), 19 SkIntToScalar(bitmap.height()))), 23 SkBitmapSource::SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect) argument 25 , fBitmap(bitmap) 53 // No regions cropped out or resized; return entire bitmap.
|
/external/chromium_org/content/common/ |
H A D | common_param_traits_unittest.cc | 84 // Tests bitmap serialization. 86 SkBitmap bitmap; local 88 bitmap.allocN32Pixels(10, 5); 89 memset(bitmap.getPixels(), 'A', bitmap.getSize()); 92 IPC::ParamTraits<SkBitmap>::Write(&msg, bitmap); 98 EXPECT_EQ(bitmap.colorType(), output.colorType()); 99 EXPECT_EQ(bitmap.width(), output.width()); 100 EXPECT_EQ(bitmap.height(), output.height()); 101 EXPECT_EQ(bitmap [all...] |
/external/chromium_org/third_party/freetype/src/raster/ |
H A D | ftrend1.c | 98 /* convert a slot's glyph image into a bitmap */ 109 FT_Bitmap* bitmap; local 187 bitmap = &slot->bitmap; 190 /* release old bitmap buffer */ 193 FT_FREE( bitmap->buffer ); 202 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY; 203 bitmap->num_grays = 256; 208 bitmap->pixel_mode = FT_PIXEL_MODE_MONO; 211 bitmap [all...] |
/external/chromium_org/third_party/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 168 SkBitmap bitmap; local 171 bool success = decoder->decode(fStream, &bitmap, info.colorType(), 179 SkASSERT(bitmap.canCopyTo(info.colorType())); 180 bool copySuccess = bitmap.copyTo(&bm, info.colorType(), &allocator); 182 SkDEBUGFAIL("bitmap.copyTo(requestedConfig) failed."); 188 SkASSERT(check_alpha(info.alphaType(), bitmap.alphaType())); 192 if (kIndex_8_SkColorType != bitmap.colorType()) { 195 SkColorTable* ctable = bitmap 221 SkBitmap bitmap; local [all...] |
/external/freetype/src/raster/ |
H A D | ftrend1.c | 98 /* convert a slot's glyph image into a bitmap */ 109 FT_Bitmap* bitmap; local 187 bitmap = &slot->bitmap; 190 /* release old bitmap buffer */ 193 FT_FREE( bitmap->buffer ); 202 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY; 203 bitmap->num_grays = 256; 208 bitmap->pixel_mode = FT_PIXEL_MODE_MONO; 211 bitmap [all...] |
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/raster/ |
H A D | ftrend1.c | 98 /* convert a slot's glyph image into a bitmap */ 109 FT_Bitmap* bitmap; local 187 bitmap = &slot->bitmap; 190 /* release old bitmap buffer */ 193 FT_FREE( bitmap->buffer ); 202 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY; 203 bitmap->num_grays = 256; 208 bitmap->pixel_mode = FT_PIXEL_MODE_MONO; 211 bitmap [all...] |
/external/skia/dm/ |
H A D | DMWriteTask.cpp | 12 DEFINE_bool(writePngOnly, false, "If true, don't encode raw bitmap after .png data. " 38 WriteTask::WriteTask(const Task& parent, SkBitmap bitmap) argument 41 , fBitmap(bitmap) 62 static bool Encode(SkBitmap bitmap, const char* path) { argument 70 if (!SkImageEncoder::EncodeStream(&stream, bitmap, SkImageEncoder::kPNG_Type, 100)) { 84 SkAutoLockPixels lock(bitmap); 85 return stream.write(bitmap.getPixels(), bitmap.getSize()); 88 // This assumes bitmap already has allocated pixels of the correct size. 89 static bool Decode(const char* path, SkImageInfo info, SkBitmap* bitmap) { argument [all...] |
/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...] |
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkBitmapDevice.cpp | 60 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap) : fBitmap(bitmap) { argument 61 SkASSERT(valid_for_bitmap_device(bitmap.info(), NULL)); 65 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap, const SkDeviceProperties& deviceProperties) 67 , fBitmap(bitmap) 69 SkASSERT(valid_for_bitmap_device(bitmap.info(), NULL)); 81 SkBitmap bitmap; local 84 if (!bitmap.setInfo(info)) { 88 if (!bitmap.tryAllocPixels(info)) { 91 if (!bitmap 223 drawBitmap(const SkDraw& draw, const SkBitmap& bitmap, const SkMatrix& matrix, const SkPaint& paint) argument 228 drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap, const SkRect* src, const SkRect& dst, const SkPaint& paint, SkCanvas::DrawBitmapRectFlags flags) argument 321 drawSprite(const SkDraw& draw, const SkBitmap& bitmap, int x, int y, const SkPaint& paint) argument [all...] |
/external/chromium_org/third_party/skia/tools/ |
H A D | render_pictures_main.cpp | 121 * Write the raw encoded bitmap data to a file. 123 static bool write_image_to_file(const void* buffer, size_t size, SkBitmap* bitmap) { argument 136 // Put in a dummy bitmap. 137 return SkImageDecoder::DecodeStream(&memStream, bitmap, kUnknown_SkColorType, 280 SkBitmap* bitmap = NULL; local 286 FLAGS_validate || FLAGS_writeWholeImage ? &bitmap : NULL); 288 if (!success || ((FLAGS_validate || FLAGS_writeWholeImage) && bitmap == NULL)) { 290 SkDELETE(bitmap); 320 SkDELETE(bitmap); 325 if (success && (bitmap [all...] |
/external/skia/tools/ |
H A D | render_pictures_main.cpp | 117 * Write the raw encoded bitmap data to a file. 119 static bool write_image_to_file(const void* buffer, size_t size, SkBitmap* bitmap) { argument 132 // Put in a dummy bitmap. 133 return SkImageDecoder::DecodeStream(&memStream, bitmap, kUnknown_SkColorType, 269 SkBitmap* bitmap = NULL; local 275 FLAGS_validate || FLAGS_writeWholeImage ? &bitmap : NULL); 277 if (!success || ((FLAGS_validate || FLAGS_writeWholeImage) && bitmap == NULL)) { 279 SkDELETE(bitmap); 304 SkDELETE(bitmap); 309 if (success && (bitmap [all...] |
/external/chromium_org/cc/blink/ |
H A D | web_nine_patch_layer_impl.cc | 27 void WebNinePatchLayerImpl::setBitmap(const SkBitmap& bitmap) { argument 30 nine_patch->SetBitmap(bitmap);
|
/external/chromium_org/cc/resources/ |
H A D | image_layer_updater.h | 46 void SetBitmap(const SkBitmap& bitmap); 47 bool UsingBitmap(const SkBitmap& bitmap) const;
|
H A D | raster_worker_pool.h | 64 // Utility functions that transparently create a temporary bitmap and copy 66 static void AcquireBitmapForBuffer(SkBitmap* bitmap, 71 static void ReleaseBitmapForBuffer(SkBitmap* bitmap,
|
/external/chromium_org/content/browser/web_contents/aura/ |
H A D | overscroll_navigation_overlay_unittest.cc | 28 SkBitmap bitmap; local 29 bitmap.allocN32Pixels(1, 1); 30 bitmap.eraseColor(SK_ColorWHITE); 31 return gfx::Image::CreateFrom1xBitmap(bitmap); 35 SkBitmap bitmap; local 36 bitmap.allocN32Pixels(1, 1); 37 bitmap.eraseColor(SK_ColorWHITE); 39 gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, true, &png_data);
|
/external/chromium_org/content/renderer/pepper/ |
H A D | pepper_graphics_2d_host_unittest.cc | 74 void PaintToWebCanvas(SkBitmap* bitmap) { argument 75 scoped_ptr<WebCanvas> canvas(new WebCanvas(*bitmap)); 82 void ResetPageBitmap(SkBitmap* bitmap) { argument 86 if (bitmap->isNull() || bitmap->width() != width || 87 bitmap->height() != height) { 88 bitmap->allocN32Pixels(width, height); 90 bitmap->eraseColor(0);
|
/external/chromium_org/extensions/browser/api/ |
H A D | capture_web_contents_function.h | 45 void CopyFromBackingStoreComplete(bool succeed, const SkBitmap& bitmap); 46 void OnCaptureSuccess(const SkBitmap& bitmap);
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
H A D | GraphicsContextRecorder.cpp | 105 SkBitmap bitmap; local 106 bitmap.allocPixels(SkImageInfo::MakeN32Premul(width, height)); 108 ReplayingCanvas canvas(bitmap, fromStep, toStep); 115 if (!PNGImageEncoder::encode(bitmap, reinterpret_cast<Vector<unsigned char>*>(&encodedImage))) 125 SkBitmap bitmap; local 126 bitmap.allocPixels(SkImageInfo::MakeN32Premul(m_picture->width(), m_picture->height())); 127 OwnPtr<ProfilingCanvas> canvas = adoptPtr(new ProfilingCanvas(bitmap)); 137 canvas = adoptPtr(new ProfilingCanvas(bitmap));
|
/external/chromium_org/third_party/freetype/include/freetype/ |
H A D | ftbitmap.h | 62 /* abitmap :: A pointer to the bitmap structure. */ 74 /* Copy a bitmap into another one. */ 79 /* source :: A handle to the source bitmap. */ 82 /* target :: A handle to the target bitmap. */ 99 /* Embolden a bitmap. The new bitmap will be about `xStrength' */ 113 /* bitmap :: A handle to the target bitmap. */ 120 /* or equal to~8 if bitmap is of pixel_mode @FT_PIXEL_MODE_MONO. */ 122 /* If you want to embolden the bitmap owne [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/ |
H A D | s_bitmap.c | 44 * Render a bitmap. 52 const GLubyte *bitmap ) 63 bitmap = (const GLubyte *) _mesa_map_pbo_source(ctx, unpack, bitmap); 64 if (!bitmap) 79 bitmap, width, height, GL_COLOR_INDEX, GL_BITMAP, row, 0); 151 const GLubyte *bitmap ) 158 ASSERT(bitmap); 177 bitmap, width, height, GL_COLOR_INDEX, GL_BITMAP, row, 0);
|
/external/chromium_org/third_party/skia/dm/ |
H A D | DMUtil.cpp | 51 void AllocatePixels(SkColorType ct, int width, int height, SkBitmap* bitmap) { argument 52 bitmap->allocPixels(SkImageInfo::Make(width, height, ct, kPremul_SkAlphaType)); 53 bitmap->eraseColor(0x00000000); 56 void AllocatePixels(const SkBitmap& reference, SkBitmap* bitmap) { argument 57 AllocatePixels(reference.colorType(), reference.width(), reference.height(), bitmap); 60 void DrawPicture(const SkPicture& picture, SkBitmap* bitmap) { argument 61 SkASSERT(bitmap != NULL); 62 SkCanvas canvas(*bitmap);
|
/external/chromium_org/third_party/skia/src/pdf/ |
H A D | SkPDFImage.h | 25 * Return the mose efficient availible encoding of the given bitmap. 27 * If the bitmap has encoded JPEG data and that data can be embedded 44 /** Create a new Image XObject to represent the passed bitmap. 45 * @param bitmap The image to encode. 46 * @param srcRect The rectangle to cut out of bitmap. 51 static SkPDFImage* CreateImage(const SkBitmap& bitmap, 83 * (instead of the input bitmap) will be used as the 85 * @param bitmap The image. If a stream is not given, its color data 89 * @param srcRect The clipping applied to bitmap before generating 91 * @param encoder A function used to encode the bitmap fo [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/ |
H A D | video_unittest.py | 10 from telemetry.core import bitmap namespace 48 expected_bitmap = bitmap.Bitmap.FromPngFile(os.path.join(
|
/external/freetype/include/ |
H A D | ftbitmap.h | 62 /* abitmap :: A pointer to the bitmap structure. */ 74 /* Copy a bitmap into another one. */ 79 /* source :: A handle to the source bitmap. */ 82 /* target :: A handle to the target bitmap. */ 99 /* Embolden a bitmap. The new bitmap will be about `xStrength' */ 113 /* bitmap :: A handle to the target bitmap. */ 120 /* or equal to~8 if bitmap is of pixel_mode @FT_PIXEL_MODE_MONO. */ 122 /* If you want to embolden the bitmap owne [all...] |
/external/jemalloc/android/test/ |
H A D | run_unit.sh | 7 $test_dir/bitmap
|