Searched defs:bitmap (Results 51 - 75 of 826) sorted by relevance

1234567891011>>

/external/chromium_org/chrome/browser/thumbnails/
H A Dsimple_thumbnail_crop_unittest.cc27 SkBitmap bitmap; local
28 EXPECT_DOUBLE_EQ(1.0, SimpleThumbnailCrop::CalculateBoringScore(bitmap));
37 SkBitmap bitmap = local
40 EXPECT_DOUBLE_EQ(1.0, SimpleThumbnailCrop::CalculateBoringScore(bitmap));
53 SkBitmap bitmap = local
55 ASSERT_EQ(kSize.width(), bitmap.width());
56 ASSERT_EQ(kSize.height(), bitmap.height());
58 EXPECT_DOUBLE_EQ(0.5, SimpleThumbnailCrop::CalculateBoringScore(bitmap));
62 // The input bitmap is vertically long.
64 SkBitmap bitmap local
81 SkBitmap bitmap = local
98 SkBitmap bitmap = local
115 SkBitmap bitmap = local
132 SkBitmap bitmap = local
[all...]
/external/chromium_org/chrome/browser/ui/views/frame/
H A Dtaskbar_decorator_win.cc34 void SetOverlayIcon(HWND hwnd, scoped_ptr<SkBitmap> bitmap) { argument
42 if (bitmap.get()) {
43 DCHECK_GE(bitmap.get()->width(), bitmap.get()->height());
47 bitmap.get()->height() * kOverlayIconSize / bitmap.get()->width();
51 *bitmap.get(),
87 scoped_ptr<SkBitmap> bitmap;
89 bitmap.reset(new SkBitmap(
93 FROM_HERE, base::Bind(&SetOverlayIcon, hwnd, Passed(&bitmap)),
[all...]
/external/chromium_org/chrome/utility/
H A Dchrome_content_utility_client_unittest.cc17 SkBitmap bitmap; local
18 bitmap.allocN32Pixels(width, height);
19 bitmap.eraseColor(color);
23 static_cast<const unsigned char*>(bitmap.getPixels()),
27 bitmap.rowBytes(),
30 LOG(ERROR) << "Unable to encode " << width << "x" << height << " bitmap";
60 SkBitmap bitmap = ChromeContentUtilityClient::DecodeImage(jpg, true); local
63 EXPECT_LT(bitmap.computeSize64() + base_msg_size,
68 EXPECT_EQ(widths[i] >> i, bitmap.width());
69 EXPECT_EQ(heights[i] >> i, bitmap
[all...]
/external/chromium_org/components/user_manager/user_image/
H A Duser_image.cc24 const SkBitmap& bitmap = *image.bitmap(); local
25 SkAutoLockPixels lock_image(bitmap);
27 reinterpret_cast<unsigned char*>(bitmap.getAddr32(0, 0)),
29 bitmap.width(),
30 bitmap.height(),
31 bitmap.width() * bitmap.bytesPerPixel(),
/external/chromium_org/content/common/
H A Dcommon_param_traits_unittest.cc84 // Tests bitmap serialization.
86 SkBitmap bitmap; local
88 bitmap.allocN32Pixels(10, 5);
89 memset(bitmap.getPixels(), 'A', bitmap.getSize());
92 IPC::ParamTraits<SkBitmap>::Write(&msg, bitmap);
98 EXPECT_EQ(bitmap.colorType(), output.colorType());
99 EXPECT_EQ(bitmap.width(), output.width());
100 EXPECT_EQ(bitmap.height(), output.height());
101 EXPECT_EQ(bitmap
[all...]
/external/chromium_org/content/renderer/fetchers/
H A Dimage_resource_fetcher.cc52 SkBitmap bitmap; local
56 bitmap = decoder.Decode(
66 callback.Run(this, bitmap);
/external/chromium_org/skia/tools/filter_fuzz_stub/
H A Dfilter_fuzz_stub.cc26 void RunTestCase(std::string& ipc_filter_message, SkBitmap& bitmap, argument
46 canvas->drawBitmap(bitmap, 0, 0, &paint);
55 bool ReadAndRunTestCase(const char* filename, SkBitmap& bitmap, argument
65 RunTestCase(ipc_filter_message, bitmap, canvas);
75 SkBitmap bitmap; local
76 bitmap.allocN32Pixels(BitmapSize, BitmapSize);
77 SkCanvas canvas(bitmap);
81 if (!ReadAndRunTestCase(argv[i], bitmap, &canvas))
/external/chromium_org/third_party/WebKit/Source/platform/
H A DDragImageTest.cpp65 SkBitmap bitmap; local
66 bitmap.allocN32Pixels(size.width(), size.height());
67 m_nativeImage = NativeImageSkia::create(bitmap);
140 SkAutoLockPixels lock1(dragImage->bitmap()), lock2(testImage->nativeImageForCurrentFrame()->bitmap());
141 EXPECT_NE(dragImage->bitmap().getPixels(), testImage->nativeImageForCurrentFrame()->bitmap().getPixels());
/external/chromium_org/third_party/WebKit/Source/platform/graphics/skia/
H A DNativeImageSkia.h65 static PassRefPtr<NativeImageSkia> create(const SkBitmap& bitmap) argument
67 return adoptRef(new NativeImageSkia(bitmap));
73 bool isDataComplete() const { return bitmap().isImmutable(); }
76 const SkBitmap& bitmap() const { return m_bitmap; } function in class:blink::NativeImageSkia
78 // We can keep a resized version of the bitmap cached on this object.
138 // what's required. On the other hand, resampling the entire bitmap is
139 // better if we're going to be using it more than once (like a bitmap
149 // The cached bitmap fragment. This is a subset of the scaled version of
/external/chromium_org/third_party/WebKit/public/platform/
H A DWebImage.h49 // A container for an ARGB bitmap.
87 WebImage(const SkBitmap& bitmap) : m_bitmap(bitmap) { } argument
89 WebImage& operator=(const SkBitmap& bitmap) argument
91 m_bitmap = bitmap;
/external/chromium_org/third_party/skia/dm/
H A DDMGpuGMTask.cpp43 SkBitmap bitmap; local
44 bitmap.setInfo(info);
45 canvas->readPixels(&bitmap, 0, 0);
47 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, "GM", bitmap)));
H A DDMPipeTask.cpp9 DEFINE_bool(pipe, true, "If true, check several pipe variants against the reference bitmap.");
47 SkBitmap bitmap; local
48 AllocatePixels(fReference, &bitmap);
50 SkCanvas canvas(bitmap);
56 bitmap.width(),
57 bitmap.height());
63 if (!BitmapsEqual(bitmap, fReference)) {
65 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, "GM", bitmap)));
H A DDMSerializeTask.cpp37 SkBitmap bitmap; local
38 AllocatePixels(fReference, &bitmap);
39 DrawPicture(*reconstructed, &bitmap);
40 if (!BitmapsEqual(bitmap, fReference)) {
42 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, "GM", bitmap)));
/external/chromium_org/third_party/skia/experimental/Intersection/
H A DEdgeWalkerQuadralaterals_Test.cpp11 static SkBitmap bitmap; variable
25 testSimplify(path, true, out, bitmap);
40 testSimplify(path, true, out, bitmap);
55 testSimplify(path, true, out, bitmap);
70 testSimplify(path, true, out, bitmap);
85 testSimplify(path, true, out, bitmap);
100 testSimplify(path, true, out, bitmap);
H A DEdgeWalker_Test.h15 extern int comparePaths(const SkPath& one, const SkPath& two, SkBitmap& bitmap);
24 SkBitmap& bitmap);
47 SkBitmap bitmap; member in struct:State4
/external/chromium_org/third_party/skia/gm/
H A Dbitmappremul.cpp14 * This GM checks that bitmap pixels are unpremultiplied before being exported
18 * This tests both the ARGB4444 and ARGB8888 bitmap configurations.
25 static void init_bitmap(SkColorType ct, SkBitmap* bitmap) { argument
26 bitmap->allocPixels(SkImageInfo::Make(SLIDE_SIZE, SLIDE_SIZE, ct,
28 bitmap->eraseColor(SK_ColorWHITE);
32 SkBitmap bitmap; local
33 init_bitmap(kN32_SkColorType, &bitmap);
36 uint32_t* dst = bitmap.getAddr32(0, y);
45 return bitmap;
49 SkBitmap bitmap; local
66 SkBitmap bitmap; local
85 SkBitmap bitmap; local
[all...]
H A Dextractbitmap.cpp17 static void create_bitmap(SkBitmap* bitmap) { argument
20 bitmap->allocN32Pixels(W, H);
22 SkCanvas canvas(*bitmap);
44 SkBitmap bitmap; variable
45 create_bitmap(&bitmap); variable
46 int x = bitmap.width() / 2;
47 int y = bitmap.height() / 2;
51 canvas->drawBitmap(bitmap, 0, 0);
56 // Draw the bottom right fourth of the bitmap over the top left
58 bitmap
[all...]
H A Dpeekpixels.cpp42 SkBitmap bitmap; variable
49 if (addr && bitmap.installPixels(info, const_cast<void*>(addr), rowBytes)) {
50 canvas->drawBitmap(bitmap, 0, 0, NULL);
57 if (ropixels.asROBitmap(&bitmap)) {
58 canvas->drawBitmap(bitmap, 0, 0, NULL);
/external/chromium_org/third_party/skia/include/effects/
H A DSkBitmapSource.h16 static SkBitmapSource* Create(const SkBitmap& bitmap) { argument
17 return SkNEW_ARGS(SkBitmapSource, (bitmap));
19 static SkBitmapSource* Create(const SkBitmap& bitmap, const SkRect& srcRect, argument
21 return SkNEW_ARGS(SkBitmapSource, (bitmap, srcRect, dstRect));
28 explicit SkBitmapSource(const SkBitmap& bitmap);
29 SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect);
/external/chromium_org/third_party/skia/samplecode/
H A DSampleWritePixels.cpp19 static void create_bitmap(SkBitmap* bitmap) { argument
22 bitmap->allocN32Pixels(W, H);
24 SkCanvas canvas(*bitmap);
47 SkBitmap bitmap; local
48 create_bitmap(&bitmap);
49 int x = bitmap.width() / 2;
50 int y = bitmap.height() / 2;
53 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y));
57 canvas->writePixels(bitmap, 0, 0);
/external/chromium_org/third_party/skia/src/utils/
H A DSkBitmapHasher.cpp33 /*static*/ bool SkBitmapHasher::ComputeDigestInternal(const SkBitmap& bitmap, uint64_t *result) { argument
37 write_int32_to_buffer(SkToU32(bitmap.width()), &out);
38 write_int32_to_buffer(SkToU32(bitmap.height()), &out);
42 if (!enc->encodeStream(&out, bitmap, SkImageEncoder::kDefaultQuality)) {
52 /*static*/ bool SkBitmapHasher::ComputeDigest(const SkBitmap& bitmap, uint64_t *result) { argument
53 if (ComputeDigestInternal(bitmap, result)) {
58 // version of the bitmap it will work better?
60 if (!bitmap.copyTo(&copyBitmap, kN32_SkColorType)) {
/external/chromium_org/third_party/skia/tests/
H A DPathOpsOpLoopThreadedTest.cpp93 SkBitmap bitmap; local
94 state.fBitmap = &bitmap;
H A DPipeTest.cpp16 // Ensures that the pipe gracefully handles drawing an invalid bitmap.
45 SkBitmap bitmap; local
46 bitmap.setInfo(SkImageInfo::MakeN32Premul(64, 64));
47 SkCanvas canvas(bitmap);
/external/chromium_org/third_party/skia/tools/
H A Ddump_record.cpp27 SkBitmap bitmap; local
28 bitmap.allocN32Pixels(w, h);
29 SkCanvas canvas(bitmap);
/external/chromium_org/third_party/webrtc/modules/desktop_capture/
H A Ddesktop_frame_win.cc21 HBITMAP bitmap)
23 bitmap_(bitmap),
37 // Describe a device independent bitmap (DIB) that is the size of the desktop.
50 HBITMAP bitmap = CreateDIBSection(hdc, &bmi, DIB_RGB_COLORS, &data, local
52 if (!bitmap) {
60 shared_memory, bitmap);
17 DesktopFrameWin(DesktopSize size, int stride, uint8_t* data, SharedMemory* shared_memory, HBITMAP bitmap) argument

Completed in 7120 milliseconds

1234567891011>>