Home | History | Annotate | Download | only in tab_contents

Lines Matching refs:bitmap

58   // Indicates what bitmap should be sent with the paint message. _OTHER will
85 params.bitmap = transport_dib_->id();
91 TransportType ClassifyFirstPixel(const SkBitmap& bitmap) {
92 // Returns the color of the first pixel of the bitmap. The bitmap must be
94 SkAutoLockPixels lock(bitmap);
95 uint32 pixel = *bitmap.getAddr32(0, 0);
186 SkBitmap bitmap;
187 EXPECT_DOUBLE_EQ(1.0, ThumbnailGenerator::CalculateBoringScore(&bitmap));
197 SkBitmap bitmap = canvas.getTopPlatformDevice().accessBitmap(false);
199 EXPECT_DOUBLE_EQ(1.0, ThumbnailGenerator::CalculateBoringScore(&bitmap));
213 SkBitmap bitmap = canvas.getTopPlatformDevice().accessBitmap(false);
214 ASSERT_EQ(kSize.width(), bitmap.width());
215 ASSERT_EQ(kSize.height(), bitmap.height());
217 EXPECT_DOUBLE_EQ(0.5, ThumbnailGenerator::CalculateBoringScore(&bitmap));
221 // The input bitmap is vertically long.
223 const SkBitmap bitmap = canvas.getTopPlatformDevice().accessBitmap(false);
228 bitmap, 10, 10, &clip_result);
229 // The clipped bitmap should be square.
237 // The input bitmap is horizontally long.
239 const SkBitmap bitmap = canvas.getTopPlatformDevice().accessBitmap(false);
244 bitmap, 10, 10, &clip_result);
245 // The clipped bitmap should be square.
253 // The input bitmap is square.
255 const SkBitmap bitmap = canvas.getTopPlatformDevice().accessBitmap(false);
260 bitmap, 10, 10, &clip_result);
261 // The clipped bitmap should be square.
269 // The input bitmap is square.
271 const SkBitmap bitmap = canvas.getTopPlatformDevice().accessBitmap(false);
276 bitmap, 20, 10, &clip_result);
277 // The clipped bitmap should have the same aspect ratio of the desired size.