/external/skia/gm/ |
H A D | offsetimagefilter.cpp | 66 void drawClippedBitmap(SkCanvas* canvas, const SkBitmap& bitmap, const SkPaint& paint, SkScalar scale, const SkIRect& cropRect) { argument 69 SkIntToScalar(bitmap.width()), SkIntToScalar(bitmap.height())); 72 canvas->drawBitmap(bitmap, 0, 0, &paint); 98 SkBitmap* bitmap = (i & 0x01) ? &fCheckerboard : &fBitmap; local 101 bitmap->width() - i * 8, 102 bitmap->height() - i * 12); 104 SkAutoTUnref<SkImageFilter> tileInput(SkBitmapSource::Create(*bitmap)); 110 drawClippedBitmap(canvas, *bitmap, paint, SK_Scalar1, cropRect); 111 canvas->translate(SkIntToScalar(bitmap [all...] |
H A D | xfermodeimagefilter.cpp | 68 static void drawClippedBitmap(SkCanvas* canvas, const SkBitmap& bitmap, const SkPaint& paint, argument 73 SkIntToScalar(bitmap.width()), SkIntToScalar(bitmap.height()))); 74 canvas->drawBitmap(bitmap, 0, 0, &paint);
|
/external/skia/samplecode/ |
H A D | SamplePath.cpp | 75 SkBitmap bitmap; local 76 bitmap.allocN32Pixels(300, 200); 78 SkCanvas canvas(bitmap);
|
/external/skia/src/core/ |
H A D | SkRecords.h | 168 explicit ImmutableBitmap(const SkBitmap& bitmap) { argument 169 if (bitmap.isImmutable()) { 170 fBitmap = bitmap; 172 bitmap.copyTo(&fBitmap); 203 ImmutableBitmap, bitmap, 206 RECORD3(DrawBitmapMatrix, Optional<SkPaint>, paint, ImmutableBitmap, bitmap, SkMatrix, matrix); 208 ImmutableBitmap, bitmap, 212 ImmutableBitmap, bitmap, 232 RECORD4(DrawSprite, Optional<SkPaint>, paint, ImmutableBitmap, bitmap, int, left, int, top);
|
/external/skia/src/image/ |
H A D | SkImage.cpp | 54 bool SkImage::readPixels(SkBitmap* bitmap, const SkIRect* subset) const { argument 55 if (NULL == bitmap) { 61 // trim against the bitmap, if its already been allocated 62 if (bitmap->pixelRef()) { 63 bounds.fRight = SkMin32(bounds.fRight, bitmap->width()); 64 bounds.fBottom = SkMin32(bounds.fBottom, bitmap->height()); 71 // perhaps we could return true + empty-bitmap? 74 return as_IB(this)->onReadPixels(bitmap, bounds); 105 bool SkImage_Base::onReadPixels(SkBitmap* bitmap, const SkIRect& subset) const { argument 106 if (bitmap [all...] |
/external/skia/src/images/ |
H A D | SkImageDecoder_ktx.cpp | 79 // Determine the alpha of the bitmap... 193 // This encoder takes a best guess at how to encode the bitmap passed to it. If 198 // data specified by the bitmap based on the config. (i.e. kAlpha8_Config will 211 bool SkKTXImageEncoder::onEncode(SkWStream* stream, const SkBitmap& bitmap, int) { argument 212 SkAutoDataUnref data(bitmap.pixelRef()->refEncodedData()); 230 return SkKTXFile::WriteBitmapToKTX(stream, bitmap);
|
/external/skia/src/utils/ |
H A D | SkGatherPixelRefsAndRects.h | 117 virtual void drawBitmap(const SkDraw& draw, const SkBitmap& bitmap, 122 SkRect bitmapRect = SkRect::MakeWH(SkIntToScalar(bitmap.width()), 123 SkIntToScalar(bitmap.height())); 126 fPRCont->add(bitmap.pixelRef(), mappedRect); 133 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, 139 SkRect bitmapRect = SkRect::MakeWH(SkIntToScalar(bitmap.width()), 140 SkIntToScalar(bitmap.height())); 143 fPRCont->add(bitmap.pixelRef(), mappedRect); 150 virtual void drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap, 154 SkRect bitmapRect = SkRect::MakeWH(SkIntToScalar(bitmap 163 SkBitmap bitmap; variable 205 SkBitmap bitmap; variable 252 SkBitmap bitmap; variable 301 GetBitmapFromPaint(const SkPaint &paint, SkBitmap* bitmap) argument [all...] |
/external/skia/src/views/sdl/ |
H A D | SkOSWindow_SDL.cpp | 94 SkBitmap bitmap; local 96 if (skia_setBitmapFromSurface(&bitmap, fSurface)) { 97 SkCanvas canvas(bitmap);
|
/external/skia/tests/ |
H A D | CanvasStateTest.cpp | 192 SkBitmap bitmap; local 193 bitmap.allocN32Pixels(10, 10); 194 SkCanvas canvas(bitmap); 216 SkBitmap bitmap; local 217 bitmap.allocN32Pixels(10, 10); 218 SkCanvas canvas(bitmap); 241 SkBitmap bitmap; local 242 bitmap.allocN32Pixels(WIDTH, HEIGHT); 243 SkCanvas canvas(bitmap);
|
H A D | DeviceLooperTest.cpp | 43 SkBitmap bitmap; local 44 make_bm(&bitmap, gRec[i].fDevSize.width(), gRec[i].fDevSize.height()); 49 SkDeviceLooper looper(bitmap, rc, gRec[i].fRect, SkToBool(aa)); 54 REPORTER_ASSERT(reporter, looper.getBitmap().width() == bitmap.width()); 55 REPORTER_ASSERT(reporter, looper.getBitmap().height() == bitmap.height()); 65 SkDeviceLooper looper(bitmap, rc, r, false); 112 SkBitmap bitmap; local 113 make_bm(&bitmap, w, h); 128 SkDeviceLooper looper(bitmap, rc, rect, gRec[i].fAA);
|
H A D | PathOpsThreadedCommon.h | 81 SkBitmap bitmap; variable 82 fState.fBitmap = &bitmap;
|
/external/skia/tools/ |
H A D | render_pdfs_main.cpp | 86 static SkData* encode_to_dct_data(size_t*, const SkBitmap& bitmap) { argument 91 SkBitmap bm = bitmap; 96 bitmap.deepCopyTo(©);
|
/external/chromium_org/cc/debug/ |
H A D | rasterize_and_record_benchmark_impl.cc | 53 SkBitmap bitmap; variable 54 bitmap.allocPixels(SkImageInfo::MakeN32Premul(content_rect_.width(), 56 SkCanvas canvas(bitmap);
|
/external/chromium_org/cc/resources/ |
H A D | raster_worker_pool.cc | 198 void RasterWorkerPool::AcquireBitmapForBuffer(SkBitmap* bitmap, argument 205 bitmap->allocN32Pixels(size.width(), size.height()); 213 bitmap->installPixels(info, buffer, stride); 226 void RasterWorkerPool::ReleaseBitmapForBuffer(SkBitmap* bitmap, argument 230 if (buffer_color_type != bitmap->colorType()) { 231 SkImageInfo dst_info = bitmap->info(); 234 // bitmap data. There will be no need to call SkAlign4 once crbug.com/293728 238 bool success = bitmap->readPixels(dst_info, buffer, dst_row_bytes, 0, 0); 241 bitmap->reset();
|
/external/chromium_org/cc/test/ |
H A D | layer_tree_json_parser.cc | 71 SkBitmap bitmap; local 72 bitmap.allocN32Pixels(image_width, image_height); 73 bitmap.setImmutable(); 74 nine_patch_layer->SetBitmap(bitmap);
|
H A D | layer_tree_pixel_test.cc | 179 const gfx::Rect& rect, const SkBitmap& bitmap) { 188 bitmap, &texture_mailbox, &release_callback); 270 scoped_ptr<SkBitmap> bitmap(new SkBitmap); 271 bitmap->allocN32Pixels(size.width(), size.height()); 273 uint8* out_pixels = static_cast<uint8*>(bitmap->getPixels()); 289 return bitmap.Pass(); 306 const SkBitmap& bitmap, 309 DCHECK_GT(bitmap.width(), 0); 310 DCHECK_GT(bitmap.height(), 0); 323 DCHECK_EQ(kN32_SkColorType, bitmap 178 CreateTextureLayer( const gfx::Rect& rect, const SkBitmap& bitmap) argument 305 CopyBitmapToTextureMailboxAsTexture( const SkBitmap& bitmap, TextureMailbox* texture_mailbox, scoped_ptr<SingleReleaseCallback>* release_callback) argument [all...] |
/external/chromium_org/cc/trees/ |
H A D | layer_tree_host_unittest_copyrequest.cc | 85 // The child was copied to a bitmap and passed back twice. 88 // The root was copied to a bitmap and passed back also. 98 scoped_ptr<SkBitmap> bitmap = result->TakeBitmap().Pass(); local 100 gfx::Size(bitmap->width(), bitmap->height()).ToString()); 188 // Should callback with a NULL bitmap. 214 // We should get another callback with a NULL bitmap.
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/ |
H A D | NavigationPopup.java | 137 private void updateBitmapForTextView(TextView view, Bitmap bitmap) { argument 139 if (bitmap != null) { 140 faviconDrawable = new BitmapDrawable(mContext.getResources(), bitmap);
|
/external/chromium_org/chrome/browser/bookmarks/ |
H A D | bookmark_html_writer_unittest.cc | 158 SkBitmap bitmap; local 159 MakeTestSkBitmap(kIconWidth, kIconHeight, &bitmap); 161 gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, false, &icon_data); 208 gfx::Image::CreateFrom1xBitmap(bitmap));
|
/external/chromium_org/chrome/browser/chromeos/login/users/wallpaper/ |
H A D | wallpaper_manager_policy_browsertest.cc | 80 // Compute the average ARGB color of |bitmap|. 81 SkColor ComputeAverageColor(const SkBitmap& bitmap) { argument 82 if (bitmap.empty() || bitmap.width() < 1 || bitmap.height() < 1) { 83 ADD_FAILURE() << "Empty or invalid bitmap."; 86 if (bitmap.isNull()) { 90 if (bitmap.colorType() == kUnknown_SkColorType) { 95 bitmap.lockPixels(); 96 for (int x = 0; x < bitmap 125 const SkBitmap& bitmap = representation.sk_bitmap(); local [all...] |
/external/chromium_org/chrome/browser/extensions/ |
H A D | bookmark_app_helper_unittest.cc | 75 SkBitmap bitmap; local 76 bitmap.allocN32Pixels(size, size); 77 bitmap.eraseColor(color); 78 return bitmap; 81 void ValidateBitmapSizeAndColor(SkBitmap bitmap, int size, SkColor color) { argument 83 SkAutoLockPixels lock(bitmap); 84 EXPECT_EQ(color, bitmap.getColor(0, 0)); 85 EXPECT_EQ(size, bitmap.width()); 86 EXPECT_EQ(size, bitmap.height());
|
H A D | extension_action.cc | 174 SkBitmap bitmap; local 175 if (!IPC::ReadParam(&pickle, &iter, &bitmap)) 177 CHECK(!bitmap.isNull()); 179 icon->AddRepresentation(gfx::ImageSkiaRep(bitmap, scale));
|
H A D | extension_action_icon_factory_unittest.cc | 57 SkBitmap bitmap; local 58 bitmap.allocN32Pixels(static_cast<int>(size_dip * scale), 60 bitmap.eraseColor(SkColorSetARGB(0, 0, 0, 0)); 61 return gfx::ImageSkiaRep(bitmap, scale); 74 SkBitmap bitmap; local 75 gfx::PNGCodec::Decode(data, file_contents.length(), &bitmap); 77 return gfx::Image::CreateFrom1xBitmap(bitmap);
|
H A D | extension_action_storage_manager.cc | 64 bool StringToSkBitmap(const std::string& str, SkBitmap* bitmap) { argument 73 bitmap); 79 SkBitmap bitmap = image.GetRepresentation(scale).sk_bitmap(); local 80 SkAutoLockPixels lock_image(bitmap); 82 bool success = gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, false, &data); 99 SkBitmap bitmap; local 144 StringToSkBitmap(str_value, &bitmap)) { 145 CHECK(!bitmap.isNull()); 147 icon.AddRepresentation(gfx::ImageSkiaRep(bitmap, scale));
|
/external/chromium_org/chrome/browser/profiles/ |
H A D | profile_info_cache_unittest.cc | 564 // Put a real bitmap into "bitmap". 2x2 bitmap of green 32 bit pixels. 565 SkBitmap bitmap; local 566 bitmap.allocN32Pixels(2, 2); 567 bitmap.eraseColor(SK_ColorGREEN); 570 GURL("http://www.google.com/avatar.png"), &bitmap);
|