Searched refs:bitmap (Results 26 - 50 of 998) sorted by relevance

1234567891011>>

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
H A DBitmapFactoryTest.java22 Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an_image);
23 assertEquals("Bitmap for resource:drawable/an_image", shadowOf(bitmap).getDescription());
24 assertEquals(100, bitmap.getWidth());
25 assertEquals(100, bitmap.getHeight());
31 Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an_image, opts);
32 assertEquals("Bitmap for resource:drawable/an_image", shadowOf(bitmap).getDescription());
33 assertEquals(100, bitmap.getWidth());
34 assertEquals(100, bitmap.getHeight());
41 Bitmap bitmap = BitmapFactory.decodeFile("/some/file.jpg");
42 assertEquals("Bitmap for file:/some/file.jpg", shadowOf(bitmap)
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
H A DScaledImageFragment.h46 static PassOwnPtr<ScaledImageFragment> createComplete(const SkISize& scaledSize, size_t index, const SkBitmap& bitmap) argument
48 return adoptPtr(new ScaledImageFragment(scaledSize, index, CompleteImage, bitmap));
51 static PassOwnPtr<ScaledImageFragment> createPartial(const SkISize& scaledSize, size_t index, size_t generation, const SkBitmap& bitmap) argument
53 return adoptPtr(new ScaledImageFragment(scaledSize, index, generation, bitmap));
63 const SkBitmap& bitmap() const { return m_bitmap; } function in class:WebCore::ScaledImageFragment
64 SkBitmap& bitmap() { return m_bitmap; } function in class:WebCore::ScaledImageFragment
H A DScaledImageFragment.cpp36 ScaledImageFragment::ScaledImageFragment(const SkISize& scaledSize, size_t index, size_t generation, const SkBitmap& bitmap) argument
40 , m_bitmap(bitmap)
/external/chromium_org/ui/gfx/ozone/dri/
H A Ddri_skbitmap.cc101 virtual bool allocPixelRef(SkBitmap* bitmap,
105 bool AllocatePixels(DriSkBitmap* bitmap, SkColorTable* color_table);
116 bool DriAllocator::allocPixelRef(SkBitmap* bitmap, argument
118 return AllocatePixels(static_cast<DriSkBitmap*>(bitmap), color_table);
121 bool DriAllocator::AllocatePixels(DriSkBitmap* bitmap, argument
124 request.width = bitmap->width();
125 request.height = bitmap->height();
126 request.bpp = bitmap->bytesPerPixel() << 3;
129 if (drmIoctl(bitmap->get_fd(), DRM_IOCTL_MODE_CREATE_DUMB, &request) < 0) {
135 CHECK(request.size == bitmap
[all...]
/external/chromium_org/skia/ext/
H A Dbitmap_platform_device_skia.cc12 SkBitmap bitmap; local
13 bitmap.setConfig(SkBitmap::kARGB_8888_Config, width, height, 0,
15 if (bitmap.allocPixels()) {
16 // Follow the logic in SkCanvas::createDevice(), initialize the bitmap if it
19 bitmap.eraseARGB(0, 0, 0, 0);
20 return new BitmapPlatformDevice(bitmap);
37 SkBitmap bitmap; local
38 bitmap.setConfig(SkBitmap::kARGB_8888_Config, width, height, 0,
41 bitmap.setPixels(data);
42 else if (!bitmap
48 BitmapPlatformDevice(const SkBitmap& bitmap) argument
[all...]
/external/chromium_org/ui/snapshot/
H A Dsnapshot_aura.cc57 SkBitmap bitmap; local
58 if (!compositor->ReadPixels(&bitmap, read_pixels_bounds_in_pixel))
67 bitmap = SkBitmapOperations::Rotate(
68 bitmap, SkBitmapOperations::ROTATION_270_CW);
71 bitmap = SkBitmapOperations::Rotate(
72 bitmap, SkBitmapOperations::ROTATION_180_CW);
75 bitmap = SkBitmapOperations::Rotate(
76 bitmap, SkBitmapOperations::ROTATION_90_CW);
81 bitmap.pixelRef()->pixels());
84 gfx::Size(bitmap
[all...]
/external/chromium_org/cc/resources/
H A Dscoped_ui_resource.cc15 const UIResourceBitmap& bitmap) {
16 return make_scoped_ptr(new ScopedUIResource(host, bitmap));
20 const UIResourceBitmap& bitmap)
21 : bitmap_(bitmap), host_(host) {
13 Create( LayerTreeHost* host, const UIResourceBitmap& bitmap) argument
19 ScopedUIResource(LayerTreeHost* host, const UIResourceBitmap& bitmap) argument
/external/chromium_org/third_party/skia/include/effects/
H A DSkBitmapAlphaThresholdShader.h16 * Creates a shader that samples a bitmap and a region. If the sample is inside the region
17 * the alpha of the bitmap color is boosted up to a threshold value. If it is
18 * outside the region then the bitmap alpha is decreased to the threshold value.
19 * The 0,0 point of the region corresponds to the upper left corner of the bitmap
20 * Currently, this only has a GPU implementation, doesn't respect the paint's bitmap
23 static SkShader* Create(const SkBitmap& bitmap, const SkRegion& region, U8CPU threshold);
/external/chromium_org/ui/gfx/image/
H A Dimage_png_rep.cc32 SkBitmap bitmap; local
34 &bitmap)) {
38 return gfx::Size(bitmap.width(), bitmap.height());
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowBitmapDrawable.java20 private Bitmap bitmap; field in class:ShadowBitmapDrawable
29 public void __constructor__(Bitmap bitmap) { argument
30 this.bitmap = bitmap;
33 public void __constructor__(Resources resources, Bitmap bitmap) { argument
34 this.bitmap = bitmap;
38 * Draws the contained bitmap onto the canvas at 0,0 with a default {@code Paint}
56 return bitmap;
61 * your tests assert that the bitmap i
[all...]
/external/skia/include/effects/
H A DSkBitmapAlphaThresholdShader.h16 * Creates a shader that samples a bitmap and a region. If the sample is inside the region
17 * the alpha of the bitmap color is boosted up to a threshold value. If it is
18 * outside the region then the bitmap alpha is decreased to the threshold value.
19 * The 0,0 point of the region corresponds to the upper left corner of the bitmap
20 * Currently, this only has a GPU implementation, doesn't respect the paint's bitmap
23 static SkShader* Create(const SkBitmap& bitmap, const SkRegion& region, U8CPU threshold);
/external/skia/tools/
H A DLazyDecodeBitmap.h20 bool LazyDecodeBitmap(const void* buffer, size_t size, SkBitmap* bitmap);
/external/chromium_org/skia/tools/filter_fuzz_stub/
H A Dfilter_fuzz_stub.cc27 void RunTestCase(std::string& ipc_filter_message, SkBitmap& bitmap, argument
47 canvas->drawBitmap(bitmap, 0, 0, &paint);
56 bool ReadAndRunTestCase(const char* filename, SkBitmap& bitmap, argument
66 RunTestCase(ipc_filter_message, bitmap, canvas);
76 SkBitmap bitmap; local
77 bitmap.setConfig(SkBitmap::kARGB_8888_Config, BitmapSize, BitmapSize);
78 bitmap.allocPixels();
79 SkBitmapDevice device(bitmap);
84 if (!ReadAndRunTestCase(argv[i], bitmap, &canvas))
/external/skia/dm/
H A DDMSerializeTask.cpp22 static SkData* trivial_bitmap_encoder(size_t* pixelRefOffset, const SkBitmap& bitmap) { argument
23 if (NULL == bitmap.pixelRef()) {
26 SkData* data = bitmap.pixelRef()->refEncodedData();
27 *pixelRefOffset = bitmap.pixelRefOffset();
40 SkBitmap bitmap; local
41 SetupBitmap(fReference.config(), fGM.get(), &bitmap);
42 DrawPicture(reconstructed, &bitmap);
43 if (!BitmapsEqual(bitmap, fReference)) {
45 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap)));
H A DDMExpectationsTask.cpp8 SkBitmap bitmap)
12 , fBitmap(bitmap)
6 ExpectationsTask(const Task& parent, const Expectations& expectations, SkBitmap bitmap) argument
H A DDMReplayTask.cpp29 SkBitmap bitmap; local
30 SetupBitmap(fReference.config(), fGM.get(), &bitmap);
31 DrawPicture(&recorded, &bitmap);
32 if (!BitmapsEqual(bitmap, fReference)) {
34 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap)));
/external/chromium/net/disk_cache/
H A Dbitmap_unittest.cc5 #include "net/disk_cache/bitmap.h"
18 // Verify that the default constructor doesn't allocate a bitmap.
26 disk_cache::Bitmap bitmap(80, true);
30 EXPECT_EQ(80, bitmap.Size());
31 EXPECT_EQ(3, bitmap.ArraySize());
34 EXPECT_EQ(0U, bitmap.GetMapElement(1));
35 bitmap.SetMapElement(1, kValue);
36 EXPECT_EQ(kValue, bitmap.GetMapElement(1));
39 EXPECT_TRUE(bitmap.Get(48));
40 EXPECT_FALSE(bitmap
[all...]
/external/chromium_org/net/disk_cache/
H A Dbitmap_unittest.cc5 #include "net/disk_cache/bitmap.h"
18 // Verify that the default constructor doesn't allocate a bitmap.
26 disk_cache::Bitmap bitmap(80, true);
30 EXPECT_EQ(80, bitmap.Size());
31 EXPECT_EQ(3, bitmap.ArraySize());
34 EXPECT_EQ(0U, bitmap.GetMapElement(1));
35 bitmap.SetMapElement(1, kValue);
36 EXPECT_EQ(kValue, bitmap.GetMapElement(1));
39 EXPECT_TRUE(bitmap.Get(48));
40 EXPECT_FALSE(bitmap
[all...]
/external/chromium_org/cc/test/
H A Dpixel_test_utils.h15 // Encodes a bitmap into a PNG and write to disk. Returns true on success. The
17 bool WritePNGFile(const SkBitmap& bitmap, const base::FilePath& file_path,
20 // Reads and decodes a PNG image to a bitmap. Returns true on success. The PNG
22 bool ReadPNGFile(const base::FilePath& file_path, SkBitmap* bitmap);
/external/chromium_org/chrome/browser/chromeos/login/
H A Duser_image.cc36 const SkBitmap& bitmap = *image.bitmap(); local
37 SkAutoLockPixels lock_image(bitmap);
39 reinterpret_cast<unsigned char*>(bitmap.getAddr32(0, 0)),
41 bitmap.width(),
42 bitmap.height(),
43 bitmap.width() * bitmap.bytesPerPixel(),
/external/chromium_org/ui/gfx/
H A Dskbitmap_operations.h30 // Create a bitmap that is an inverted image of the passed in image.
35 // Create a bitmap that is a superimposition of the second bitmap on top of
41 // Create a bitmap that is a blend of two others. The alpha argument
42 // specifies the opacity of the second bitmap. The provided bitmaps must
48 // Create a bitmap that is the original bitmap masked out by the mask defined
49 // in the alpha bitmap. The images must use the kARGB_8888_Config config and
63 // Shift a bitmap's HSL values. The shift values are in the range of 0-1,
78 static SkBitmap CreateHSLShiftedBitmap(const SkBitmap& bitmap,
[all...]
/external/oprofile/libdb/
H A Ddb_debug.c21 unsigned char * bitmap = malloc(data->descr->current_size); local
22 memset(bitmap, '\0', data->descr->current_size);
29 if (bitmap[index])
32 bitmap[index] = 1;
41 memset(bitmap, '\0', data->descr->current_size);
46 if (bitmap[index])
49 bitmap[index] = 1;
59 bitmap[index] = 1;
64 free(bitmap);
73 unsigned char * bitmap local
[all...]
/external/chromium_org/third_party/skia/src/core/
H A DSkDevice.cpp69 const SkBitmap& bitmap = this->onAccessBitmap(); local
71 bitmap.notifyPixelsChanged();
73 return bitmap;
76 bool SkBaseDevice::readPixels(SkBitmap* bitmap, int x, int y, argument
78 if (SkBitmap::kARGB_8888_Config != bitmap->config() ||
79 NULL != bitmap->getTexture()) {
85 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bitmap->width(),
86 bitmap->height());
94 if (bitmap->isNull()) {
95 tmp.setConfig(SkBitmap::kARGB_8888_Config, bitmap
[all...]
/external/chromium_org/webkit/renderer/compositor_bindings/
H A Dweb_external_texture_layer_impl.cc74 WebExternalBitmapImpl* bitmap = NULL; local
77 bitmap = AllocateBitmap();
78 if (!client_->prepareMailbox(&client_mailbox, bitmap)) {
79 if (bitmap)
80 free_bitmaps_.push_back(bitmap);
85 if (bitmap)
86 *mailbox = cc::TextureMailbox(bitmap->shared_memory(), bitmap->size());
95 bitmap));
114 WebExternalBitmapImpl* bitmap,
111 DidReleaseMailbox( base::WeakPtr<WebExternalTextureLayerImpl> layer, const blink::WebExternalTextureMailbox& mailbox, WebExternalBitmapImpl* bitmap, unsigned sync_point, bool lost_resource) argument
[all...]
/external/skia/src/core/
H A DSkDevice.cpp69 const SkBitmap& bitmap = this->onAccessBitmap(); local
71 bitmap.notifyPixelsChanged();
73 return bitmap;
76 bool SkBaseDevice::readPixels(SkBitmap* bitmap, int x, int y, argument
78 if (SkBitmap::kARGB_8888_Config != bitmap->config() ||
79 NULL != bitmap->getTexture()) {
85 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bitmap->width(),
86 bitmap->height());
94 if (bitmap->isNull()) {
95 tmp.setConfig(SkBitmap::kARGB_8888_Config, bitmap
[all...]

Completed in 794 milliseconds

1234567891011>>