/external/chromium_org/third_party/skia/experimental/Intersection/ |
H A D | 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...] |
/external/chromium_org/third_party/skia/experimental/PdfViewer/ |
H A D | pdf_viewer_main.cpp | 98 static void setup_bitmap(SkBitmap* bitmap, int width, int height, SkColor color) { argument 99 bitmap->allocN32Pixels(width, height); 100 bitmap->eraseColor(color); 123 SkBitmap bitmap; local 124 SkAutoTUnref<SkBaseDevice> device(SkNEW_ARGS(SkBitmapDevice, (bitmap))); 131 SkBitmap bitmap; 140 setup_bitmap(&bitmap, 3 * (int)SkScalarToDouble(width), 3 * (int)SkScalarToDouble(height), 143 setup_bitmap(&bitmap, (int)SkScalarToDouble(width), (int)SkScalarToDouble(height), 148 device.reset(SkNEW_ARGS(SkBitmapDevice, (bitmap))); 156 gDumpBitmap = &bitmap; [all...] |
/external/chromium_org/third_party/skia/gm/ |
H A D | displacement.cpp | 47 void make_checkerboard(SkBitmap* bitmap, int w, int h) { argument 48 bitmap->allocN32Pixels(w, h); 49 SkCanvas canvas(*bitmap); 210 // and color should use the same bitmap, given to SkCanvas::drawBitmap()
|
H A D | gm_expectations.h | 41 explicit GmResultDigest(const SkBitmap &bitmap); 46 * ["bitmap-64bitMD5", 12345]. 64 * such as ["bitmap-64bitMD5", 12345]. 69 * Returns the hashtype, such as "bitmap-64bitMD5", as an SkString. 88 explicit BitmapAndDigest(const SkBitmap &bitmap) : fBitmap(bitmap), fDigest(bitmap) {} argument 108 explicit Expectations(const SkBitmap& bitmap, bool ignoreFailure=kDefaultIgnoreFailure); 150 * than a single bitmap), returns NULL.
|
H A D | ninepatchstretch.cpp | 10 static void make_bitmap(SkBitmap* bitmap, SkIRect* center) { argument 15 bitmap->allocN32Pixels(kSize, kSize); 16 SkCanvas canvas(*bitmap);
|
H A D | resizeimagefilter.cpp | 98 SkBitmap bitmap; local 99 bitmap.allocN32Pixels(16, 16); 100 bitmap.eraseARGB(0x00, 0x00, 0x00, 0x00); 102 SkBitmapDevice bitmapDevice(bitmap); 112 SkAutoTUnref<SkBitmapSource> source(SkBitmapSource::Create(bitmap, inRect, outRect));
|
H A D | tileimagefilter.cpp | 79 SkBitmap* bitmap = (i & 0x01) ? &fCheckerboard : &fBitmap; local 80 SkRect srcRect = SkRect::MakeXYWH(SkIntToScalar(bitmap->width()/4), 81 SkIntToScalar(bitmap->height()/4), 82 SkIntToScalar(bitmap->width()/(i+1)), 83 SkIntToScalar(bitmap->height()/(i+1))); 86 SkIntToScalar(bitmap->width() - i * 12), 87 SkIntToScalar(bitmap->height()) - i * 12); 88 SkAutoTUnref<SkImageFilter> tileInput(SkBitmapSource::Create(*bitmap)); 97 x += bitmap->width() + MARGIN; 98 if (x + bitmap [all...] |
/external/chromium_org/third_party/skia/samplecode/ |
H A D | SampleAARects.cpp | 16 SkBitmap bitmap; local 17 bitmap.allocN32Pixels(n, n); 18 bitmap.eraseColor(SK_ColorGREEN); 20 SkCanvas canvas(bitmap); 34 return bitmap;
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkBlitBWMaskTemplate.h | 19 SK_BLITBWMASK_NAME name of function(const SkBitmap& bitmap, const SkMask& mask, const SkIRect& clip, SK_BLITBWMASK_ARGS) 26 static void SK_BLITBWMASK_NAME(const SkBitmap& bitmap, const SkMask& srcMask, const SkIRect& clip SK_BLITBWMASK_ARGS) argument 34 size_t bitmap_rowBytes = bitmap.rowBytes(); 42 SK_BLITBWMASK_DEVTYPE* device = bitmap.SK_BLITBWMASK_GETADDR(cx, cy);
|
/external/chromium_org/third_party/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) 46 SkBitmap bitmap; local 47 if (!buffer.readBitmap(&bitmap)) { 50 return SkBitmapSource::Create(bitmap, src, dst); 65 // No regions cropped out or resized; return entire bitmap [all...] |
/external/chromium_org/third_party/skia/src/image/ |
H A D | SkImage_Gpu.cpp | 44 SkImage_Gpu::SkImage_Gpu(const SkBitmap& bitmap) argument 45 : INHERITED(bitmap.width(), bitmap.height()) 46 , fBitmap(bitmap) { 83 SkImage* SkImage::NewTexture(const SkBitmap& bitmap) { argument 84 if (NULL == bitmap.getTexture()) { 88 return SkNEW_ARGS(SkImage_Gpu, (bitmap));
|
/external/chromium_org/third_party/skia/src/images/ |
H A D | SkImageEncoder_argb.cpp | 89 bool SkARGBImageEncoder::onEncode(SkWStream* stream, const SkBitmap& bitmap, int) { argument 90 const ScanlineImporter scanline_import = ChooseImporter(bitmap.colorType()); 95 SkAutoLockPixels alp(bitmap); 96 const uint8_t* src = (uint8_t*)bitmap.getPixels(); 97 if (NULL == bitmap.getPixels()) { 102 const SkPMColor* colors = ctLocker.lockColors(bitmap); 104 const int argbStride = bitmap.width() * 4; 107 for (int y = 0; y < bitmap.height(); ++y) { 108 scanline_import(src + y * bitmap.rowBytes(), argb, bitmap [all...] |
/external/chromium_org/third_party/skia/src/pipe/utils/ |
H A D | SamplePipeControllers.cpp | 43 TiledPipeController::TiledPipeController(const SkBitmap& bitmap, argument 49 int32_t height = bitmap.height() / NumberOfTiles; 52 bottom = i + 1 == NumberOfTiles ? bitmap.height() : top + height; 53 rect.setLTRB(0, top, bitmap.width(), bottom); 56 SkDEBUGCODE(bool extracted = )bitmap.extractSubset(&fBitmaps[i], rect);
|
/external/chromium_org/third_party/skia/src/utils/ |
H A D | SkPathUtils.cpp | 99 const char* bitmap, 101 // loop for every line in bitmap 104 //l2p_fn(path, &bitmap[i*stride], i, w); 105 Line2path_span(path, &bitmap[i*stride], i, w); 111 const char* bitmap, 119 const char* line = &bitmap[y * stride]; 98 BitsToPath_Path(SkPath* path, const char* bitmap, int w, int h, int stride) argument 110 BitsToPath_Region(SkPath* path, const char* bitmap, int w, int h, int stride) argument
|
/external/chromium_org/third_party/skia/tests/ |
H A D | SkResourceCacheTest.cpp | 28 // Draw a scaled bitmap, then return true iff it has been cached. 32 SkBitmap bitmap; local 33 bitmap.allocN32Pixels(kBitmapSize, kBitmapSize); 34 bitmap.eraseColor(0xFFFFFFFF); 41 canvas->drawBitmapRect(bitmap, 45 return is_in_scaled_image_cache(bitmap, scale, scale); 81 static void make_bitmap(SkBitmap* bitmap, const SkImageInfo& info, SkBitmap::Allocator* allocator) { argument 83 bitmap->setInfo(info); 84 allocator->allocPixelRef(bitmap, 0); 86 bitmap [all...] |
H A D | TextureCompressionTest.cpp | 45 SkBitmap bitmap; local 58 bool setInfoSuccess = bitmap.setInfo(info); 61 bitmap.allocPixels(info); 62 bitmap.unlockPixels(); 69 SkAutoDataUnref data(SkTextureCompressor::CompressBitmapToFormat(bitmap, fmt)); 75 * Make sure that we properly fail when we don't have the correct bitmap type. 79 SkBitmap bitmap; local 91 bool setInfoSuccess = bitmap.setInfo(info); 94 bitmap.allocPixels(info); 95 bitmap 112 SkBitmap bitmap; local 207 SkBitmap bitmap; local [all...] |
/external/chromium_org/third_party/skia/tools/skpdiff/ |
H A D | SkCLImageDiffer.cpp | 87 bool SkCLImageDiffer::makeImage2D(SkBitmap* bitmap, cl_mem* image) const { argument 90 switch (bitmap->colorType()) { 108 // Upload the bitmap data to OpenCL 109 bitmap->lockPixels(); 111 &bitmapFormat, bitmap->width(), bitmap->height(), 112 bitmap->rowBytes(), bitmap->getPixels(), 114 bitmap->unlockPixels();
|
/external/chromium_org/tools/perf/metrics/ |
H A D | speedindex.py | 8 from telemetry.core import bitmap namespace 132 tab.Highlight(bitmap.WHITE) 144 histograms = [(time, bmp.ColorHistogram(ignore_color=bitmap.WHITE,
|
/external/chromium_org/tools/telemetry/telemetry/core/backends/webdriver/ |
H A D | webdriver_tab_backend.py | 7 from telemetry.core import bitmap namespace 54 return bitmap.Bitmap.FromPng(snap)
|
/external/chromium_org/tools/telemetry/telemetry/core/ |
H A D | bitmap_unittest.py | 10 from telemetry.core import bitmap namespace 30 ValueError, lambda: bitmap.HistogramDistance(hist1, hist2)) 35 ValueError, lambda: bitmap.HistogramDistance(hist1, hist2)) 41 ValueError, lambda: bitmap.HistogramDistance(hist1, hist2)) 46 self.assertEqual(bitmap.HistogramDistance(hist1, hist2), 0) 51 self.assertEqual(bitmap.HistogramDistance(hist1, hist2), 2) 52 self.assertEqual(bitmap.HistogramDistance(hist2, hist1), 2) 57 self.assertEqual(bitmap.HistogramDistance(hist1, hist2), 1) 58 self.assertEqual(bitmap.HistogramDistance(hist2, hist1), 1) 62 self.assertEqual(bitmap [all...] |
/external/chromium_org/ui/base/clipboard/ |
H A D | clipboard.cc | 21 // Valides a shared bitmap on the clipboard. 23 // bitmap. 32 PLOG(ERROR) << "Failed to map bitmap memory"; 154 SkBitmap bitmap; local 159 if (!bitmap.setInfo(SkImageInfo::MakeN32Premul( 165 if (!sk_64_isS32(bitmap.computeSize64())) 176 if (!ValidateAndMapSharedBitmap(bitmap.getSize(), bitmap_data.get())) 178 bitmap.setPixels(bitmap_data->memory()); 180 WriteBitmap(bitmap); 207 // The code currently only accepts sending a single bitmap ove [all...] |
/external/chromium_org/ui/base/cursor/ |
H A D | cursor_loader_x11.cc | 157 SkBitmap bitmap; local 160 GetImageCursorBitmap(resource_id, scale(), rotation(), &hotspot, &bitmap); 161 XcursorImage* x_image = SkBitmapToXcursorImage(&bitmap, hotspot);
|
/external/chromium_org/ui/base/cursor/ozone/ |
H A D | bitmap_cursor_factory_ozone.cc | 24 SkBitmap bitmap; local 26 if (GetCursorBitmap(type, &bitmap, &hotspot)) 27 return new BitmapCursorOzone(bitmap, hotspot); 33 BitmapCursorOzone::BitmapCursorOzone(const SkBitmap& bitmap, argument 36 bitmaps_.push_back(bitmap); 54 const SkBitmap& BitmapCursorOzone::bitmap() { function in class:ui::BitmapCursorOzone 81 const SkBitmap& bitmap, 83 BitmapCursorOzone* cursor = new BitmapCursorOzone(bitmap, hotspot); 113 // Create new image cursor from default aura bitmap for this type. We hold a 118 DCHECK(cursor.get()) << "Failed to load default cursor bitmap"; 80 CreateImageCursor( const SkBitmap& bitmap, const gfx::Point& hotspot) argument [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...] |
/external/chromium_org/ui/ozone/platform/test/ |
H A D | test_window_manager.cc | 23 void WriteDataToFile(const base::FilePath& location, const SkBitmap& bitmap) { argument 26 gfx::PNGCodec::FastEncodeBGRASkBitmap(bitmap, true, &png_data); 48 SkBitmap bitmap; 49 bitmap.setInfo(surface_->getCanvas()->imageInfo()); 53 if (surface_->getCanvas()->readPixels(&bitmap, 0, 0)) { 55 FROM_HERE, base::Bind(&WriteDataToFile, location_, bitmap), true);
|