Home
last modified time | relevance | path

Searched refs:canvasBitmap (Results 1 – 2 of 2) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DDeferredImageDecoderTest.cpp172 SkBitmap canvasBitmap; in TEST_F() local
173 canvasBitmap.setConfig(SkBitmap::kARGB_8888_Config, 100, 100); in TEST_F()
174 ASSERT_TRUE(m_canvas->readPixels(&canvasBitmap, 0, 0)); in TEST_F()
175 SkAutoLockPixels autoLock(canvasBitmap); in TEST_F()
176 EXPECT_EQ(SkColorSetARGB(255, 255, 255, 255), canvasBitmap.getColor(0, 0)); in TEST_F()
198 SkBitmap canvasBitmap; in TEST_F() local
199 canvasBitmap.setConfig(SkBitmap::kARGB_8888_Config, 100, 100); in TEST_F()
200 ASSERT_TRUE(m_canvas->readPixels(&canvasBitmap, 0, 0)); in TEST_F()
201 SkAutoLockPixels autoLock(canvasBitmap); in TEST_F()
202 EXPECT_EQ(SkColorSetARGB(255, 255, 255, 255), canvasBitmap.getColor(0, 0)); in TEST_F()
[all …]
DGraphicsContext3D.cpp818 const SkBitmap& canvasBitmap = imageBuffer->bitmap(); in paintFramebufferToCanvas() local
820 ASSERT(canvasBitmap.config() == SkBitmap::kARGB_8888_Config); in paintFramebufferToCanvas()
821 if (canvasBitmap.width() == width && canvasBitmap.height() == height) { in paintFramebufferToCanvas()
824 readbackBitmap = &canvasBitmap; in paintFramebufferToCanvas()
849 SkCanvas canvas(canvasBitmap); in paintFramebufferToCanvas()
851 …t(SkIntToScalar(0), SkIntToScalar(0), SkIntToScalar(canvasBitmap.width()), SkIntToScalar(canvasBit… in paintFramebufferToCanvas()