/external/skia/experimental/PdfViewer/ |
H A D | SkNulCanvas.h | 26 explicit SkNulCanvas(const SkBitmap& bitmap) : SkCanvas(bitmap) {} argument 38 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, 40 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, 44 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, 46 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, 48 virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
|
/external/skia/samplecode/ |
H A D | SampleDitherBitmap.cpp | 109 SkBitmap bitmap(bm); 111 setBitmapOpaque(&bitmap, false); 113 canvas->drawBitmap(bitmap, 0, 0, &paint); 115 canvas->drawBitmap(bitmap, 0, SkIntToScalar(bm.height() + 10), &paint); 117 setBitmapOpaque(&bitmap, true); 120 canvas->drawBitmap(bitmap, x, 0, &paint); 122 canvas->drawBitmap(bitmap, x, SkIntToScalar(bm.height() + 10), &paint);
|
/external/skia/src/ports/ |
H A D | SkFontHost_FreeType_common.cpp | 78 static void copyFT2LCD16(const FT_Bitmap& bitmap, const SkMask& mask, int lcdIsBGR, argument 82 if (FT_PIXEL_MODE_LCD != bitmap.pixel_mode) { 83 SkASSERT(mask.fBounds.width() == bitmap.width); 85 if (FT_PIXEL_MODE_LCD_V != bitmap.pixel_mode) { 86 SkASSERT(mask.fBounds.height() == bitmap.rows); 89 const uint8_t* src = bitmap.buffer; 96 switch (bitmap.pixel_mode) { 103 src += bitmap.pitch; 112 src += bitmap.pitch; 116 SkASSERT(3 * mask.fBounds.width() == bitmap [all...] |
/external/chromium_org/third_party/skia/src/utils/ |
H A D | SkCanvasStateUtils.cpp | 226 // we currently only work for bitmap backed devices 227 const SkBitmap& bitmap = layer.device()->accessBitmap(true/*changePixels*/); local 228 if (bitmap.empty() || bitmap.isNull() || !bitmap.lockPixelsAreWritable()) { 237 layerState->width = bitmap.width(); 238 layerState->height = bitmap.height(); 240 switch (bitmap.colorType()) { 250 layerState->raster.rowBytes = bitmap.rowBytes(); 251 layerState->raster.pixels = bitmap 297 SkBitmap bitmap; local [all...] |
/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...] |
/external/skia/tests/ |
H A D | ImageFilterTest.cpp | 77 static void make_small_bitmap(SkBitmap& bitmap) { argument 78 bitmap.allocN32Pixels(kBitmapSize, kBitmapSize); 79 SkCanvas canvas(bitmap); 190 SkBitmap bitmap, result; local 191 make_small_bitmap(bitmap); 203 SkAutoTUnref<SkImageFilter> bmSrc(SkBitmapSource::Create(bitmap)); 218 SkAutoTUnref<SkImageFilter> bmSrc(SkBitmapSource::Create(bitmap)); 221 SkBitmapDevice device(bitmap); 228 !bicubic->filterImage(&proxy, bitmap, ctx, &result, &loc)); 237 SkBitmap bitmap; local 295 SkBitmap bitmap; local 552 SkBitmap bitmap; local 589 SkBitmap bitmap; local 642 SkBitmap bitmap; local 665 SkBitmap bitmap; local 714 SkBitmap bitmap; local [all...] |
/external/valgrind/main/drd/ |
H A D | drd_bitmap.c | 60 = VG_(OSetGen_Create_With_Pool)(0, 0, VG_(malloc), "drd.bitmap.bn.2", 71 struct bitmap* DRD_(bm_new)() 73 struct bitmap* bm; 79 bm = VG_(malloc)("drd.bitmap.bn.1", sizeof(*bm)); 85 void DRD_(bm_delete)(struct bitmap* const bm) 94 void DRD_(bm_init)(struct bitmap* const bm) 115 void DRD_(bm_cleanup)(struct bitmap* const bm) 122 * bitmap bm. 129 void DRD_(bm_access_range)(struct bitmap* const bm, 141 void DRD_(bm_access_range_load)(struct bitmap* cons [all...] |
/external/chromium_org/components/favicon_base/ |
H A D | favicon_util.cc | 30 // or decoding the bitmap data. 55 // create a bitmap with given pixel size. 81 // Returns a resampled bitmap of 83 // bitmap out of |input_bitmaps|. ResizeBitmapByDownsamplingIfPossible() is 118 SkBitmap bitmap; local 119 bitmap.allocN32Pixels(desired_size_in_pixel, desired_size_in_pixel); 121 bitmap.eraseARGB(0, 0, 0, 0); 123 SkCanvas canvas(bitmap); 126 return bitmap; 165 // the bitmap dat 203 SkBitmap bitmap; local 218 SkBitmap bitmap = local [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i915/ |
H A D | intel_pixel_bitmap.c | 67 const GLubyte *bitmap ) 73 INT_MAX, (const GLvoid *) bitmap)) { 86 return ADD_POINTERS(buf, bitmap); 99 /* Extract a rectangle's worth of data from the bitmap. Called 100 * per chunk of HW-sized bitmap. 104 const GLubyte *bitmap, 119 DBG("%s %d,%d %dx%d bitmap %dx%d skip %d src_offset %d mask %d\n", 136 const GLubyte *rowsrc = _mesa_image_address2d(unpack, bitmap, 169 * Render a bitmap. 176 const GLubyte *bitmap ) 102 get_bitmap_rect(GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLubyte *bitmap, GLuint x, GLuint y, GLuint w, GLuint h, GLubyte *dest, GLuint row_align, bool invert) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/ |
H A D | intel_pixel_bitmap.c | 67 const GLubyte *bitmap ) 73 INT_MAX, (const GLvoid *) bitmap)) { 86 return ADD_POINTERS(buf, bitmap); 99 /* Extract a rectangle's worth of data from the bitmap. Called 100 * per chunk of HW-sized bitmap. 104 const GLubyte *bitmap, 119 DBG("%s %d,%d %dx%d bitmap %dx%d skip %d src_offset %d mask %d\n", 136 const GLubyte *rowsrc = _mesa_image_address2d(unpack, bitmap, 169 * Render a bitmap. 176 const GLubyte *bitmap ) 102 get_bitmap_rect(GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLubyte *bitmap, GLuint x, GLuint y, GLuint w, GLuint h, GLubyte *dest, GLuint row_align, bool invert) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/intel/ |
H A D | intel_pixel_bitmap.c | 67 const GLubyte *bitmap ) 73 INT_MAX, (const GLvoid *) bitmap)) { 86 return ADD_POINTERS(buf, bitmap); 99 /* Extract a rectangle's worth of data from the bitmap. Called 100 * per chunk of HW-sized bitmap. 104 const GLubyte *bitmap, 119 DBG("%s %d,%d %dx%d bitmap %dx%d skip %d src_offset %d mask %d\n", 136 const GLubyte *rowsrc = _mesa_image_address2d(unpack, bitmap, 169 * Render a bitmap. 176 const GLubyte *bitmap ) 102 get_bitmap_rect(GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLubyte *bitmap, GLuint x, GLuint y, GLuint w, GLuint h, GLubyte *dest, GLuint row_align, bool invert) argument [all...] |
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkWriteBuffer.cpp | 154 void SkWriteBuffer::writeBitmap(const SkBitmap& bitmap) { argument 155 // Record the width and height. This way if readBitmap fails a dummy bitmap can be drawn at the 157 this->writeInt(bitmap.width()); 158 this->writeInt(bitmap.height()); 160 // Record information about the bitmap in one of three ways, in order of priority: 162 // bitmap entirely or serialize it later as desired. A boolean value of true will be written 165 // bitmap. After writing a boolean value of false, signifying that a heap was not used, write 171 // SkBitmapHeapReader to read the SkBitmap. False if the bitmap was serialized another way. 175 int32_t slot = fBitmapHeap->insert(bitmap); 182 // bitmap hea [all...] |
/external/chromium_org/ui/gfx/ |
H A D | blit.cc | 160 SkBitmap& bitmap = const_cast<SkBitmap&>( local 162 SkAutoLockPixels lock(bitmap); 166 in_clip, gfx::Rect(0, 0, bitmap.width(), bitmap.height())); 180 memcpy(bitmap.getAddr32(dest_rect.x(), dest_rect.y() + y), 181 bitmap.getAddr32(src_rect.x(), src_rect.y() + y), 187 memcpy(bitmap.getAddr32(dest_rect.x(), dest_rect.y() + y), 188 bitmap.getAddr32(src_rect.x(), src_rect.y() + y), 196 memmove(bitmap.getAddr32(dest_rect.x(), dest_rect.y() + y), 197 bitmap [all...] |
H A D | blit_unittest.cc | 23 SkBitmap& bitmap = const_cast<SkBitmap&>( local 25 SkAutoLockPixels lock(bitmap); 26 ASSERT_EQ(w, bitmap.width()); 27 ASSERT_EQ(h, bitmap.height()); 32 *bitmap.getAddr32(x, y) = 40 // bitmap (see SetToCanvas above). 43 SkBitmap& bitmap = const_cast<SkBitmap&>( local 45 SkAutoLockPixels lock(bitmap); 46 ASSERT_EQ(w, bitmap.width()); 47 ASSERT_EQ(h, bitmap [all...] |
/external/mesa3d/src/mesa/drivers/dri/i915/ |
H A D | intel_pixel_bitmap.c | 67 const GLubyte *bitmap ) 73 INT_MAX, (const GLvoid *) bitmap)) { 86 return ADD_POINTERS(buf, bitmap); 99 /* Extract a rectangle's worth of data from the bitmap. Called 100 * per chunk of HW-sized bitmap. 104 const GLubyte *bitmap, 119 DBG("%s %d,%d %dx%d bitmap %dx%d skip %d src_offset %d mask %d\n", 136 const GLubyte *rowsrc = _mesa_image_address2d(unpack, bitmap, 169 * Render a bitmap. 176 const GLubyte *bitmap ) 102 get_bitmap_rect(GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLubyte *bitmap, GLuint x, GLuint y, GLuint w, GLuint h, GLubyte *dest, GLuint row_align, bool invert) argument [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | intel_pixel_bitmap.c | 67 const GLubyte *bitmap ) 73 INT_MAX, (const GLvoid *) bitmap)) { 86 return ADD_POINTERS(buf, bitmap); 99 /* Extract a rectangle's worth of data from the bitmap. Called 100 * per chunk of HW-sized bitmap. 104 const GLubyte *bitmap, 119 DBG("%s %d,%d %dx%d bitmap %dx%d skip %d src_offset %d mask %d\n", 136 const GLubyte *rowsrc = _mesa_image_address2d(unpack, bitmap, 169 * Render a bitmap. 176 const GLubyte *bitmap ) 102 get_bitmap_rect(GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLubyte *bitmap, GLuint x, GLuint y, GLuint w, GLuint h, GLubyte *dest, GLuint row_align, bool invert) argument [all...] |
/external/mesa3d/src/mesa/drivers/dri/intel/ |
H A D | intel_pixel_bitmap.c | 67 const GLubyte *bitmap ) 73 INT_MAX, (const GLvoid *) bitmap)) { 86 return ADD_POINTERS(buf, bitmap); 99 /* Extract a rectangle's worth of data from the bitmap. Called 100 * per chunk of HW-sized bitmap. 104 const GLubyte *bitmap, 119 DBG("%s %d,%d %dx%d bitmap %dx%d skip %d src_offset %d mask %d\n", 136 const GLubyte *rowsrc = _mesa_image_address2d(unpack, bitmap, 169 * Render a bitmap. 176 const GLubyte *bitmap ) 102 get_bitmap_rect(GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLubyte *bitmap, GLuint x, GLuint y, GLuint w, GLuint h, GLubyte *dest, GLuint row_align, bool invert) argument [all...] |
/external/skia/src/core/ |
H A D | SkWriteBuffer.cpp | 154 void SkWriteBuffer::writeBitmap(const SkBitmap& bitmap) { argument 155 // Record the width and height. This way if readBitmap fails a dummy bitmap can be drawn at the 157 this->writeInt(bitmap.width()); 158 this->writeInt(bitmap.height()); 160 // Record information about the bitmap in one of three ways, in order of priority: 162 // bitmap entirely or serialize it later as desired. A boolean value of true will be written 165 // bitmap. After writing a boolean value of false, signifying that a heap was not used, write 171 // SkBitmapHeapReader to read the SkBitmap. False if the bitmap was serialized another way. 175 int32_t slot = fBitmapHeap->insert(bitmap); 182 // bitmap hea [all...] |
/external/chromium_org/third_party/freetype/src/base/ |
H A D | ftlcdfil.c | 5 /* FreeType API for color filtering of subpixel bitmap glyphs (body). */ 34 _ft_lcd_filter_fir( FT_Bitmap* bitmap, argument 39 FT_UInt width = (FT_UInt)bitmap->width; 40 FT_UInt height = (FT_UInt)bitmap->rows; 46 FT_Byte* line = bitmap->buffer; 49 for ( ; height > 0; height--, line += bitmap->pitch ) 103 FT_Byte* column = bitmap->buffer; 104 FT_Int pitch = bitmap->pitch; 168 _ft_lcd_filter_legacy( FT_Bitmap* bitmap, argument 172 FT_UInt width = (FT_UInt)bitmap [all...] |
H A D | ftglyph.c | 80 glyph->bitmap = slot->bitmap; 85 FT_Bitmap_New( &glyph->bitmap ); 86 error = FT_Bitmap_Copy( library, &slot->bitmap, &glyph->bitmap ); 106 return FT_Bitmap_Copy( library, &source->bitmap, &target->bitmap ); 117 FT_Bitmap_Done( library, &glyph->bitmap ); 129 cbox->xMax = cbox->xMin + ( glyph->bitmap.width << 6 ); 131 cbox->yMin = cbox->yMax - ( glyph->bitmap 516 FT_BitmapGlyph bitmap = NULL; local [all...] |
/external/freetype/src/base/ |
H A D | ftlcdfil.c | 5 /* FreeType API for color filtering of subpixel bitmap glyphs (body). */ 34 _ft_lcd_filter_fir( FT_Bitmap* bitmap, argument 39 FT_UInt width = (FT_UInt)bitmap->width; 40 FT_UInt height = (FT_UInt)bitmap->rows; 46 FT_Byte* line = bitmap->buffer; 52 for ( ; height > 0; height--, line += bitmap->pitch ) 105 FT_Byte* column = bitmap->buffer; 106 FT_Int pitch = bitmap->pitch; 169 _ft_lcd_filter_legacy( FT_Bitmap* bitmap, argument 173 FT_UInt width = (FT_UInt)bitmap [all...] |
H A D | ftglyph.c | 80 glyph->bitmap = slot->bitmap; 85 FT_Bitmap_New( &glyph->bitmap ); 86 error = FT_Bitmap_Copy( library, &slot->bitmap, &glyph->bitmap ); 106 return FT_Bitmap_Copy( library, &source->bitmap, &target->bitmap ); 117 FT_Bitmap_Done( library, &glyph->bitmap ); 129 cbox->xMax = cbox->xMin + ( glyph->bitmap.width << 6 ); 131 cbox->yMin = cbox->yMax - ( glyph->bitmap 512 FT_BitmapGlyph bitmap = NULL; local [all...] |
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/base/ |
H A D | fxft_ftlcdfil.c | 6 /* FreeType API for color filtering of subpixel bitmap glyphs (body). */ 35 _ft_lcd_filter_fir( FT_Bitmap* bitmap, argument 40 FT_UInt width = (FT_UInt)bitmap->width; 41 FT_UInt height = (FT_UInt)bitmap->rows; 47 FT_Byte* line = bitmap->buffer; 50 for ( ; height > 0; height--, line += bitmap->pitch ) 104 FT_Byte* column = bitmap->buffer; 105 FT_Int pitch = bitmap->pitch; 169 _ft_lcd_filter_legacy( FT_Bitmap* bitmap, argument 173 FT_UInt width = (FT_UInt)bitmap [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
H A D | DeferredImageDecoderTest.cpp | 154 EXPECT_EQ(1, image->bitmap().width()); 155 EXPECT_EQ(1, image->bitmap().height()); 156 EXPECT_FALSE(image->bitmap().isNull()); 157 EXPECT_TRUE(image->bitmap().isImmutable()); 161 tempCanvas->drawBitmap(image->bitmap(), 0, 0); 184 tempCanvas->drawBitmap(image->bitmap(), 0, 0); 192 tempCanvas->drawBitmap(image->bitmap(), 0, 0); 212 EXPECT_EQ(1, image->bitmap().width()); 213 EXPECT_EQ(1, image->bitmap().height()); 214 EXPECT_FALSE(image->bitmap() [all...] |
/external/chromium_org/third_party/freetype/src/smooth/ |
H A D | ftsmooth.c | 97 /* convert a slot's glyph image into a bitmap */ 112 FT_Bitmap* bitmap = &slot->bitmap; local 185 /* release old bitmap buffer */ 188 FT_FREE( bitmap->buffer ); 247 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY; 248 bitmap->num_grays = 256; 249 bitmap->width = width; 250 bitmap->rows = height; 251 bitmap [all...] |