Home
last modified time | relevance | path

Searched refs:bmp (Results 1 – 25 of 119) sorted by relevance

12345

/external/webkit/Source/WebCore/platform/graphics/wince/
DImageWinCE.cpp62 bool BitmapImage::getHBITMAPOfSize(HBITMAP bmp, LPSIZE size) in getHBITMAPOfSize() argument
64 if (!bmp) in getHBITMAPOfSize()
68 GetObject(bmp, sizeof(BITMAP), &bmpInfo); in getHBITMAPOfSize()
74 HGDIOBJ hOldBmp = SelectObject(hdc.get(), bmp); in getHBITMAPOfSize()
95 RefPtr<SharedBitmap> bmp = frameAtIndex(i); in drawFrameMatchingSourceSize() local
96 …if (!bmp || bmp->height() != static_cast<unsigned>(srcSize.height()) || bmp->width() != static_cas… in drawFrameMatchingSourceSize()
120 RefPtr<SharedBitmap> bmp = frameAtIndex(m_currentFrame); in draw() local
122 if (bmp->width() != m_source.size().width()) { in draw()
123 double scaleFactor = static_cast<double>(bmp->width()) / m_source.size().width(); in draw()
130 bmp->draw(ctxt, enclosingIntRect(dstRect), intSrcRect, styleColorSpace, compositeOp); in draw()
[all …]
DSharedBitmap.h104 DCHolder(SharedBitmap* bmp = 0) { setInternal(bmp); }
106 void set(SharedBitmap* bmp = 0)
109 setInternal(bmp);
120 void setInternal(SharedBitmap* bmp) in setInternal() argument
122 m_bitmap = bmp; in setInternal()
123 m_hdc = bmp ? bmp->getDC(&m_key) : 0; in setInternal()
DGraphicsContextWinCE.cpp283 …RefPtr<SharedBitmap> bmp = SharedBitmap::create(origRect.size(), alphaPaint == AlphaPaintNone ? Bi… in getTransparentLayerBitmap() local
285 if (bmp) { in getTransparentLayerBitmap()
290 SharedBitmap::DCHolder dc(bmp.get()); in getTransparentLayerBitmap()
293 if (bmp->is32bit() && (!m_bitmap || m_bitmap->is16bit())) { in getTransparentLayerBitmap()
295 unsigned* pixels = (unsigned*)bmp->bytes(); in getTransparentLayerBitmap()
296 … const unsigned* const pixelsEnd = pixels + bmp->bitmapInfo().numPixels(); in getTransparentLayerBitmap()
302 return bmp; in getTransparentLayerBitmap()
308 memset(bmp->bytes(), 0xFF, bmp->bitmapInfo().numPixels() * 4); in getTransparentLayerBitmap()
309 return bmp; in getTransparentLayerBitmap()
319 …void paintBackTransparentLayerBitmap(HDC hdc, SharedBitmap* bmp, const IntRect& origRect, AlphaPai… in paintBackTransparentLayerBitmap() argument
[all …]
DSharedBitmap.cpp358 static void drawPatternSimple(HDC hdc, const RECT& destRect, const SharedBitmap* bmp, const SIZE& b… in drawPatternSimple() argument
368 bmp->bytes(), &bmp->bitmapInfo(), DIB_RGB_COLORS, SRCCOPY); in drawPatternSimple()
557 HDC SharedBitmap::DCProvider::getDC(SharedBitmap* bmp, unsigned* key) in getDC() argument
559 if (!bmp || !bmp->ensureHandle()) in getDC()
566 *key = reinterpret_cast<unsigned>(SelectObject(hdc, bmp->getHandle())); in getDC()
567 RECT rect = { 0, 0, bmp->width(), bmp->height() }; in getDC()
/external/qemu/distrib/sdl-1.2.15/test/
Dtestvidinfo.c46 int RunBlitTests(SDL_Surface *screen, SDL_Surface *bmp, int blitcount) in RunBlitTests() argument
53 maxx = (int)screen->w - bmp->w + 1; in RunBlitTests()
54 maxy = (int)screen->h - bmp->h + 1; in RunBlitTests()
67 dst.w = bmp->w; in RunBlitTests()
68 dst.h = bmp->h; in RunBlitTests()
69 SDL_BlitSurface(bmp, NULL, screen, &dst); in RunBlitTests()
84 SDL_Surface *bmp, *bmpcc, *tmp; in RunModeTests() local
138 bmp = SDL_LoadBMP("sample.bmp"); in RunModeTests()
139 if ( ! bmp ) { in RunModeTests()
144 bmp->w, bmp->h, bmp->format->BitsPerPixel); in RunModeTests()
[all …]
Dtestblitspeed.c190 SDL_Surface *bmp = NULL; in setup_test() local
272 bmp = SDL_LoadBMP("sample.bmp"); in setup_test()
273 if (bmp == NULL) in setup_test()
348 blitCentered(src, bmp); in setup_test()
349 SDL_FreeSurface(bmp); in setup_test()
/external/webkit/Source/WebCore/platform/image-decoders/wx/
DImageDecoderWx.cpp42 wxBitmap* bmp = new wxBitmap(width(), height(), 32); in asNewNativeImage() local
46 WxPixelData data(*bmp); in asNewNativeImage()
72 bmp->UseAlpha(); in asNewNativeImage()
78 ASSERT(bmp->IsOk()); in asNewNativeImage()
81 …itmap* bitmap = new wxGraphicsBitmap(wxGraphicsRenderer::GetDefaultRenderer()->CreateBitmap(*bmp)); in asNewNativeImage()
82 delete bmp; in asNewNativeImage()
85 return bmp; in asNewNativeImage()
/external/webkit/Tools/DumpRenderTree/win/
DPixelDumpSupportWin.cpp53 BITMAPINFO bmp = {0}; in createBitmapContextFromWebView() local
54 bmp.bmiHeader.biSize = sizeof(BITMAPINFOHEADER); in createBitmapContextFromWebView()
55 bmp.bmiHeader.biWidth = frame.right - frame.left; in createBitmapContextFromWebView()
56 bmp.bmiHeader.biHeight = -(frame.bottom - frame.top); in createBitmapContextFromWebView()
57 bmp.bmiHeader.biPlanes = 1; in createBitmapContextFromWebView()
58 bmp.bmiHeader.biBitCount = 32; in createBitmapContextFromWebView()
59 bmp.bmiHeader.biCompression = BI_RGB; in createBitmapContextFromWebView()
62 HBITMAP bitmap = CreateDIBSection(0, &bmp, DIB_RGB_COLORS, &bits, 0, 0); in createBitmapContextFromWebView()
/external/skia/tests/
DShaderOpacityTest.cpp14 SkBitmap bmp; in test_bitmap() local
15 bmp.setConfig(SkBitmap::kARGB_8888_Config, 2, 2); in test_bitmap()
18 SkShader* shader = SkShader::CreateBitmapShader(bmp, in test_bitmap()
25 bmp.allocPixels(); in test_bitmap()
28 shader = SkShader::CreateBitmapShader(bmp, in test_bitmap()
35 bmp.setIsOpaque(true); in test_bitmap()
36 shader = SkShader::CreateBitmapShader(bmp, in test_bitmap()
43 bmp.setIsOpaque(false); in test_bitmap()
44 shader = SkShader::CreateBitmapShader(bmp, in test_bitmap()
DWritePixelsTest.cpp129 static SkBitmap bmp; in fillCanvas() local
130 if (bmp.isNull()) { in fillCanvas()
131 bmp.setConfig(SkBitmap::kARGB_8888_Config, DEV_W, DEV_H); in fillCanvas()
132 bool alloc = bmp.allocPixels(); in fillCanvas()
134 SkAutoLockPixels alp(bmp); in fillCanvas()
135 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels()); in fillCanvas()
138 …SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixe… in fillCanvas()
148 canvas->drawBitmap(bmp, 0, 0, &paint); in fillCanvas()
298 SkBitmap bmp; in setupCanvas() local
300 bmp.setConfig(SkBitmap::kARGB_8888_Config, DEV_W, DEV_H, rowBytes); in setupCanvas()
[all …]
DReadPixelsTest.cpp101 static SkBitmap bmp; in fillCanvas() local
102 if (bmp.isNull()) { in fillCanvas()
103 bmp.setConfig(SkBitmap::kARGB_8888_Config, DEV_W, DEV_H); in fillCanvas()
104 bool alloc = bmp.allocPixels(); in fillCanvas()
106 SkAutoLockPixels alp(bmp); in fillCanvas()
107 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels()); in fillCanvas()
110 …SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixe… in fillCanvas()
120 canvas->drawBitmap(bmp, 0, 0, &paint); in fillCanvas()
341 SkBitmap bmp; in ReadPixelsTest() local
342 init_bitmap(&bmp, srcRect, bmi); in ReadPixelsTest()
[all …]
DPremulAlphaRoundTripTest.cpp18 SkBitmap bmp; in fillCanvas() local
19 bmp.setConfig(SkBitmap::kARGB_8888_Config, 256, 256); in fillCanvas()
20 bmp.allocPixels(); in fillCanvas()
21 SkAutoLockPixels alp(bmp); in fillCanvas()
22 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels()); in fillCanvas()
29 canvas->writePixels(bmp, 0, 0, unpremulConfig); in fillCanvas()
DDeferredCanvasTest.cpp107 SkBitmap bmp; in TestDeferredCanvasFreshFrame() local
108 create(&bmp, SkBitmap::kARGB_8888_Config, 0xFFFFFFFF); in TestDeferredCanvasFreshFrame()
109 bmp.setIsOpaque(true); in TestDeferredCanvasFreshFrame()
110 SkShader* shader = SkShader::CreateBitmapShader(bmp, in TestDeferredCanvasFreshFrame()
129 SkBitmap bmp; in TestDeferredCanvasFreshFrame() local
130 create(&bmp, SkBitmap::kARGB_8888_Config, 0xFFFFFFFF); in TestDeferredCanvasFreshFrame()
131 bmp.setIsOpaque(false); in TestDeferredCanvasFreshFrame()
132 SkShader* shader = SkShader::CreateBitmapShader(bmp, in TestDeferredCanvasFreshFrame()
/external/webkit/Source/WebCore/platform/graphics/win/
DImageWin.cpp53 bool BitmapImage::getHBITMAP(HBITMAP bmp) in getHBITMAP() argument
55 return getHBITMAPOfSize(bmp, 0); in getHBITMAP()
DImageCairoWin.cpp58 bool BitmapImage::getHBITMAPOfSize(HBITMAP bmp, LPSIZE size) in getHBITMAPOfSize() argument
60 ASSERT(bmp); in getHBITMAPOfSize()
63 GetObject(bmp, sizeof(BITMAP), &bmpInfo); in getHBITMAPOfSize()
DImageCGWin.cpp62 bool BitmapImage::getHBITMAPOfSize(HBITMAP bmp, LPSIZE size) in getHBITMAPOfSize() argument
64 ASSERT(bmp); in getHBITMAPOfSize()
67 GetObject(bmp, sizeof(BITMAP), &bmpInfo); in getHBITMAPOfSize()
/external/webkit/Source/WebKit2/WebProcess/WebPage/win/
DChunkedUpdateDrawingAreaWin.cpp43 BitmapInfo bmp = BitmapInfo::createBottomUp(updateChunk->rect().size()); in paintIntoUpdateChunk() local
44 …OwnPtr<HBITMAP> hbmp(::CreateDIBSection(0, &bmp, DIB_RGB_COLORS, &bits, updateChunk->memory(), 0)); in paintIntoUpdateChunk()
/external/chromium/chrome/browser/tab_contents/
Dthumbnail_generator.cc92 const SkBitmap& bmp = temp_canvas.getTopPlatformDevice().accessBitmap(false); in GetBitmapForBackingStore() local
97 bmp, desired_width, desired_height, clip_result); in GetBitmapForBackingStore()
107 bmp, desired_width, desired_height); in GetBitmapForBackingStore()
115 if (bmp.width() == result.width() && in GetBitmapForBackingStore()
116 bmp.height() == result.height()) in GetBitmapForBackingStore()
117 bmp.copyTo(&result, SkBitmap::kARGB_8888_Config); in GetBitmapForBackingStore()
/external/skia/gm/
Dshadertext.cpp41 static SkBitmap bmp; in MakeBitmapShader() local
42 if (bmp.isNull()) { in MakeBitmapShader()
43 makebm(&bmp, SkBitmap::kARGB_8888_Config, w/2, h/4); in MakeBitmapShader()
45 return SkShader::CreateBitmapShader(bmp, tx, ty); in MakeBitmapShader()
/external/skia/samplecode/
DSampleShaderText.cpp40 static SkBitmap bmp; in MakeBitmapShader() local
41 if (bmp.isNull()) { in MakeBitmapShader()
42 makebm(&bmp, SkBitmap::kARGB_8888_Config, w/2, h/4); in MakeBitmapShader()
44 return SkShader::CreateBitmapShader(bmp, tx, ty); in MakeBitmapShader()
/external/chromium/chrome/browser/bookmarks/
Dbookmark_html_writer_unittest.cc32 void MakeTestSkBitmap(int w, int h, SkBitmap* bmp) { in MakeTestSkBitmap() argument
33 bmp->setConfig(SkBitmap::kARGB_8888_Config, w, h); in MakeTestSkBitmap()
34 bmp->allocPixels(); in MakeTestSkBitmap()
36 uint32_t* src_data = bmp->getAddr32(0, 0); in MakeTestSkBitmap()
/external/skia/src/core/
DSkDevice.cpp133 SkBitmap* bmp; in readPixels() local
140 bmp = &tmp; in readPixels()
142 bmp = bitmap; in readPixels()
148 bmp->extractSubset(&bmpSubset, subrect); in readPixels()
154 if (result && bmp == &tmp) { in readPixels()
/external/webkit/Source/WebCore/page/win/
DFrameCGWin.cpp62 BitmapInfo bmp = BitmapInfo::create(IntSize(w, h)); in imageFromRect() local
64 HBITMAP hbmp = CreateDIBSection(0, &bmp, DIB_RGB_COLORS, static_cast<void**>(&bits), 0, 0); in imageFromRect()
/external/quake/quake/src/QW/
Dmakezip1 zip -9 -r qw client server progs gas2masm Make* [qQ]* scitech dxsdk *.txt *.bmp
/external/webkit/Source/WebCore/platform/graphics/android/rendering/
DImageTexture.cpp73 ImageTexture::ImageTexture(SkBitmap* bmp, unsigned crc) in ImageTexture() argument
74 : m_image(bmp) in ImageTexture()

12345