/external/chromium_org/chrome/browser/android/profiles/ |
H A D | profile_downloader_android.cc | 97 const SkBitmap& bitmap) { 100 if (!bitmap.isNull() && bitmap.bytesPerPixel() != 0) 101 jbitmap = gfx::ConvertToJavaBitmap(&bitmap); 140 avatar_image.AsImageSkia().bitmap()) { 141 jbitmap = gfx::ConvertToJavaBitmap(avatar_image.AsImageSkia().bitmap()); 94 OnProfileDownloadSuccess( const std::string& account_id, const base::string16& full_name, const SkBitmap& bitmap) argument
|
/external/chromium_org/chrome/browser/android/thumbnail/ |
H A D | thumbnail.cc | 55 void Thumbnail::SetBitmap(const SkBitmap& bitmap) { argument 56 DCHECK(!bitmap.empty()); 59 gfx::ScaleSize(gfx::Size(bitmap.width(), bitmap.height()), 1.f / scale_); 61 bitmap_ = cc::UIResourceBitmap(bitmap);
|
/external/chromium_org/chrome/browser/bitmap_fetcher/ |
H A D | bitmap_fetcher_browsertest.cc | 41 const SkBitmap* bitmap) OVERRIDE { 44 if (bitmap) { 46 bitmap->deepCopyTo(&bitmap_); 62 const SkBitmap& bitmap() const { return bitmap_; } function in class:chrome::BitmapFetcherTestDelegate 95 // Put some realistic looking bitmap data into the url_fetcher. 98 // Put a real bitmap into "image". 2x2 bitmap of green 32 bit pixels. 130 // Make sure we get back the bitmap we expect. 131 const SkBitmap& found_image = delegate.bitmap(); 139 // Put a real bitmap int [all...] |
/external/chromium_org/chrome/browser/extensions/api/declarative_content/ |
H A D | content_action_unittest.cc | 163 SkBitmap bitmap; local 164 EXPECT_TRUE(bitmap.tryAllocN32Pixels(19, 19)); 165 bitmap.eraseARGB(0,0,0,0); 166 uint32_t* pixels = bitmap.getAddr32(0, 0); 170 IPC::WriteParam(&bitmap_pickle, bitmap); 206 EXPECT_TRUE(page_action->GetDeclarativeIcon(tab_id).bitmap()->empty()); 208 EXPECT_FALSE(page_action->GetDeclarativeIcon(tab_id).bitmap()->empty()); 210 EXPECT_TRUE(page_action->GetDeclarativeIcon(tab_id).bitmap()->empty());
|
/external/chromium_org/chrome/browser/media/ |
H A D | fake_desktop_media_list.cc | 54 SkBitmap bitmap; local 55 bitmap.allocN32Pixels(150, 150); 56 bitmap.eraseARGB(255, 0, 255, 0); 57 thumbnail_ = gfx::ImageSkia::CreateFrom1xBitmap(bitmap);
|
/external/chromium_org/chrome/browser/notifications/ |
H A D | notification_conversion_helper.cc | 124 const unsigned char* bitmap = local 129 gfx::ConvertSkiaToRGBA(bitmap, pixel_count, rgba_bitmap_data.get()); 169 SkBitmap bitmap; 171 if (!bitmap.tryAllocN32Pixels(width, height)) 174 // Ensure that our bitmap and our data now refer to the same number of pixels. 175 if (rgba_data_length != bitmap.getSafeSize()) 178 uint32_t* pixels = bitmap.getAddr32(0, 0); 193 gfx::ImageSkia skia(gfx::ImageSkiaRep(bitmap, 1.0f));
|
/external/chromium_org/chrome/browser/thumbnails/ |
H A D | content_based_thumbnailing_algorithm_unittest.cc | 26 const SkBitmap& bitmap) { 28 captured_bitmap_ = bitmap; 25 UiThreadCallback(const ThumbnailingContext& context, const SkBitmap& bitmap) argument
|
/external/chromium_org/chrome/browser/ui/libgtk2ui/ |
H A D | skia_utils_gtk2.cc | 90 GdkPixbuf* GdkPixbufFromSkBitmap(const SkBitmap& bitmap) { argument 91 if (bitmap.isNull()) 94 SkAutoLockPixels lock_pixels(bitmap); 96 int width = bitmap.width(); 97 int height = bitmap.height(); 112 uint32 pixel = bitmap.getAddr32(0, y)[x];
|
/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/content/browser/devtools/ |
H A D | renderer_overrides_handler_browsertest.cc | 124 SkBitmap bitmap; local 126 png.size(), &bitmap); local 127 SkColor color(bitmap.getColor(0, 0));
|
/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/test/gpu/gpu_tests/ |
H A D | cloud_storage_test_base.py | 13 from telemetry.core import bitmap namespace 37 expected_color = bitmap.RgbaColor( 139 def _UploadBitmapToCloudStorage(self, bucket, name, bitmap, public=False): 145 bitmap.WritePngFile(temp_file) 174 return bitmap.Bitmap.FromPngFile(temp_file)
|
H A D | maps.py | 17 from telemetry.core import bitmap namespace
|
H A D | pixel.py | 15 from telemetry.core import bitmap namespace 137 ref_png = bitmap.Bitmap.FromPngFile(image_path)
|
/external/chromium_org/extensions/renderer/ |
H A D | set_icon_natives.cc | 71 SkBitmap bitmap; local 72 if (!bitmap.tryAllocN32Pixels(width, height)) { 77 bitmap.eraseARGB(0, 0, 0, 0); 79 uint32_t* pixels = bitmap.getAddr32(0, 0); 95 IPC::WriteParam(&bitmap_pickle, bitmap);
|
/external/chromium_org/mojo/views/ |
H A D | native_widget_view_manager.cc | 133 const SkBitmap& bitmap) { 135 view_->SetContents(bitmap); 132 CompositorContentsChanged( const SkBitmap& bitmap) argument
|
/external/chromium_org/remoting/host/chromeos/ |
H A D | aura_desktop_capturer.cc | 24 static SkiaBitmapDesktopFrame* Create(scoped_ptr<SkBitmap> bitmap); 31 scoped_ptr<SkBitmap> bitmap); 40 scoped_ptr<SkBitmap> bitmap) { 42 webrtc::DesktopSize size(bitmap->width(), bitmap->height()); 43 DCHECK_EQ(kRGBA_8888_SkColorType, bitmap->info().colorType()) 46 uint8_t* bitmap_data = reinterpret_cast<uint8_t*>(bitmap->getPixels()); 49 size, bitmap->rowBytes(), bitmap_data, bitmap.Pass()); 57 scoped_ptr<SkBitmap> bitmap) 39 Create( scoped_ptr<SkBitmap> bitmap) argument 54 SkiaBitmapDesktopFrame(webrtc::DesktopSize size, int stride, uint8_t* data, scoped_ptr<SkBitmap> bitmap) argument 103 scoped_ptr<SkBitmap> bitmap = result->TakeBitmap(); local [all...] |
/external/chromium_org/skia/ext/ |
H A D | bitmap_platform_device_skia.cc | 12 SkBitmap bitmap; local 13 if (bitmap.tryAllocN32Pixels(width, height, is_opaque)) { 14 // Follow the logic in SkCanvas::createDevice(), initialize the bitmap if it 17 bitmap.eraseARGB(0, 0, 0, 0); 18 return new BitmapPlatformDevice(bitmap); 35 SkBitmap bitmap; local 36 bitmap.setInfo(SkImageInfo::MakeN32(width, height, 39 bitmap.setPixels(data); 40 else if (!bitmap.tryAllocPixels()) 43 return new BitmapPlatformDevice(bitmap); 46 BitmapPlatformDevice(const SkBitmap& bitmap) argument [all...] |
H A D | vector_platform_device_skia.cc | 17 SkBitmap bitmap; local 18 bitmap.setInfo(SkImageInfo::MakeUnknown(width, height)); 19 return bitmap;
|
/external/chromium_org/third_party/WebKit/Source/core/clipboard/ |
H A D | Pasteboard.cpp | 85 RefPtr<NativeImageSkia> bitmap = image->nativeImageForCurrentFrame(); local 86 if (!bitmap) 89 blink::WebImage webImage = bitmap->bitmap();
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
H A D | GraphicsContextTest.cpp | 48 #define EXPECT_PIXELS_MATCH(bitmap, opaqueRect) \ 50 SkAutoLockPixels locker(bitmap); \ 53 int alpha = *bitmap.getAddr32(x, y) >> 24; \ 58 #define EXPECT_PIXELS_MATCH_EXACT(bitmap, opaqueRect) \ 60 SkAutoLockPixels locker(bitmap); \ 61 for (int y = 0; y < bitmap.height(); ++y) \ 62 for (int x = 0; x < bitmap.width(); ++x) { \ 63 int alpha = *bitmap.getAddr32(x, y) >> 24; \ 71 SkBitmap bitmap; local 72 bitmap 129 SkBitmap bitmap; local 223 SkBitmap bitmap; local 261 SkBitmap bitmap; local 302 SkBitmap bitmap; local 359 SkBitmap bitmap; local 453 SkBitmap bitmap; local 511 SkBitmap bitmap; local 593 SkBitmap bitmap; local 649 SkBitmap bitmap; local 694 SkBitmap bitmap; local 738 SkBitmap bitmap; local 790 SkBitmap bitmap; local 842 SkBitmap bitmap; local 890 SkBitmap bitmap; local 924 SkBitmap bitmap; local 969 SkBitmap bitmap; local 1049 SkBitmap bitmap; local 1089 SkBitmap bitmap; local 1127 SkBitmap bitmap; local 1161 SkBitmap bitmap; local [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/image-encoders/skia/ |
H A D | PNGImageEncoder.cpp | 117 bool PNGImageEncoder::encode(const SkBitmap& bitmap, Vector<unsigned char>* output) argument 119 SkAutoLockPixels bitmapLock(bitmap); 121 if (bitmap.colorType() != kN32_SkColorType || !bitmap.getPixels()) 124 return encodePixels(IntSize(bitmap.width(), bitmap.height()), static_cast<unsigned char*>(bitmap.getPixels()), true, output);
|
H A D | WEBPImageEncoder.cpp | 118 bool WEBPImageEncoder::encode(const SkBitmap& bitmap, int quality, Vector<unsigned char>* output) argument 120 SkAutoLockPixels bitmapLock(bitmap); 122 if (bitmap.colorType() != kN32_SkColorType || !bitmap.getPixels()) 125 return encodePixels(IntSize(bitmap.width(), bitmap.height()), static_cast<unsigned char *>(bitmap.getPixels()), true, quality, output);
|
/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...] |
/external/chromium_org/third_party/skia/bench/ |
H A D | PictureRecordBench.cpp | 86 // create a simple bitmap 87 SkBitmap bitmap; variable 88 bitmap.allocPixels(SkImageInfo::Make(10, 10, 91 // draw a single color into the bitmap 92 SkCanvas bitmapCanvas(bitmap); 95 // draw the bitmap onto the canvas 96 canvas->drawBitmapMatrix(bitmap, matrix);
|