| /external/chromium_org/chrome/browser/extensions/api/declarative_content/ |
| 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/extensions/ |
| favicon_downloader_unittest.cc | 22 SkBitmap& bitmap = bitmaps[i]; local 23 bitmap.allocN32Pixels(sizes[i].width(), sizes[i].height()); 24 bitmap.eraseColor(SK_ColorRED);
|
| /external/chromium_org/chrome/browser/history/ |
| select_favicon_frames_unittest.cc | 44 SkBitmap bitmap; local 45 bitmap.allocN32Pixels(w, h); 46 bitmap.eraseColor(color); 47 return bitmap; 52 const SkBitmap& bitmap = local 55 x = bitmap.width() / 2; 57 y = bitmap.width() / 2; 58 bitmap.lockPixels(); 59 SkColor color = bitmap.getColor(x, y); 60 bitmap.unlockPixels() [all...] |
| /external/chromium_org/chrome/browser/ui/ash/launcher/ |
| launcher_favicon_loader.cc | 37 const SkBitmap& bitmap() const { return bitmap_; } function in class:internal::FaviconRawBitmapHandler 62 // Current bitmap and source url. 172 return favicon_handler_->bitmap();
|
| /external/chromium_org/chrome/browser/ui/toolbar/ |
| back_forward_menu_model_unittest.cc | 36 // Creates a bitmap of the specified color. 38 SkBitmap bitmap; local 39 bitmap.allocN32Pixels(16, 16); 40 bitmap.eraseColor(color); 41 return bitmap;
|
| /external/chromium_org/chrome/browser/ui/views/apps/app_info_dialog/ |
| app_info_header_panel.cc | 154 const SkBitmap* bitmap; local 156 bitmap = &extensions::util::GetDefaultAppIcon() 160 bitmap = image.ToSkBitmap(); 163 app_icon_->SetImage(gfx::ImageSkia::CreateFrom1xBitmap(*bitmap));
|
| /external/chromium_org/chrome/browser/ui/webui/ntp/ |
| favicon_webui_handler.cc | 155 const SkBitmap& bitmap = app_icon_color_manager_->GetIcon(extension_id); local 158 if (!gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, true, &bits))
|
| /external/chromium_org/chrome/browser/web_applications/ |
| update_shortcut_worker_win.cc | 112 SkBitmap bitmap; local 115 bitmap = bitmaps[closest_index]; 118 if (!bitmap.isNull()) { 120 shortcut_info_.favicon.Add(gfx::Image::CreateFrom1xBitmap(bitmap)); 123 extensions_tab_helper->SetAppIcon(bitmap);
|
| /external/chromium_org/components/enhanced_bookmarks/ |
| image_store_unittest.cc | 19 SkBitmap bitmap; local 20 bitmap.allocN32Pixels(width, height); 21 bitmap.eraseARGB(a, r, g, b); 22 gfx::Image image(gfx::Image::CreateFrom1xBitmap(bitmap));
|
| /external/chromium_org/components/favicon_base/ |
| 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 data or decoding it. FaviconHandler stores already resize 203 SkBitmap bitmap; local 218 SkBitmap bitmap = local [all...] |
| /external/chromium_org/content/browser/android/ |
| composited_touch_handle_drawable.cc | 106 const SkBitmap& bitmap = g_selection_resources.Get().GetBitmap(orientation); local 107 layer_->SetBitmap(bitmap); 108 layer_->SetBounds(gfx::Size(bitmap.width(), bitmap.height())); 112 focal_offset_from_origin_ = gfx::Vector2dF(bitmap.width() * 0.75f, 0); 115 focal_offset_from_origin_ = gfx::Vector2dF(bitmap.width() * 0.25f, 0); 118 focal_offset_from_origin_ = gfx::Vector2dF(bitmap.width() * 0.5f, 0);
|
| content_readback_handler.cc | 33 scoped_ptr<SkBitmap> bitmap = copy_output_result->TakeBitmap(); local 34 result_callback.Run(true, *bitmap.Pass()); 109 const SkBitmap& bitmap) { 113 java_bitmap = gfx::ConvertToJavaBitmap(&bitmap);
|
| /external/chromium_org/content/browser/web_contents/aura/ |
| 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/ |
| webclipboard_impl.cc | 157 const SkBitmap& bitmap = image.getSkBitmap(); local 159 DCHECK_EQ(bitmap.colorType(), kN32_SkColorType); 161 SkAutoLockPixels locked(bitmap); 162 void *pixels = bitmap.getPixels();
|
| /external/chromium_org/content/test/gpu/gpu_tests/ |
| 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) 165 storage, returning it as a Telemetry Bitmap object.""" 174 return bitmap.Bitmap.FromPngFile(temp_file)
|
| maps.py | 17 from telemetry.core import bitmap namespace
|
| pixel.py | 15 from telemetry.core import bitmap namespace 137 ref_png = bitmap.Bitmap.FromPngFile(image_path)
|
| /external/chromium_org/content/test/ |
| mock_webclipboard_impl.cc | 101 const SkBitmap& bitmap = m_image.getSkBitmap(); local 102 SkAutoLockPixels lock(bitmap); 103 gfx::PNGCodec::Encode(static_cast<unsigned char*>(bitmap.getPixels()), 109 gfx::Size(bitmap.width(), bitmap.height()), 110 static_cast<int>(bitmap.rowBytes()),
|
| /external/chromium_org/extensions/renderer/ |
| 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/media/video/capture/ |
| fake_video_capture_device.cc | 109 SkBitmap bitmap; local 110 bitmap.installPixels(info, fake_frame_.get(), info.width()); 111 SkCanvas canvas(bitmap);
|
| /external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
| 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));
|
| 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.allocN32Pixels(400, 400) 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/freetype/src/base/ |
| 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.rows << 6 ) 516 FT_BitmapGlyph bitmap = NULL; local [all...] |
| /external/chromium_org/third_party/skia/bench/ |
| 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);
|
| /external/chromium_org/third_party/skia/experimental/Intersection/ |
| EdgeWalkerQuadratics_Test.cpp | 11 static SkBitmap bitmap; variable 21 testSimplify(path, true, out, bitmap); 32 testSimplify(path, true, out, bitmap); 43 testSimplify(path, true, out, bitmap); 54 testSimplify(path, true, out, bitmap); 68 testSimplify(path, true, out, bitmap); 82 testSimplify(path, true, out, bitmap); 96 testSimplify(path, true, out, bitmap); 110 testSimplify(path, true, out, bitmap); 124 testSimplify(path, true, out, bitmap); [all...] |