Home
last modified time | relevance | path

Searched refs:dataSurface (Results 1 – 25 of 149) sorted by relevance

123456

/dports/www/firefox-legacy/firefox-52.8.0esr/image/
H A DimgTools.cpp169 RefPtr<DataSourceSurface> dataSurface;
172 dataSurface = frame->GetDataSurface();
175 dataSurface = gfxUtils::
180 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE);
220 RefPtr<DataSourceSurface> dataSurface =
222 if (NS_WARN_IF(!dataSurface)) {
234 dataSurface->GetSize(),
249 dataSurface->Unmap();
297 RefPtr<DataSourceSurface> dataSurface =
301 if (NS_WARN_IF(!dataSurface)) {
[all …]
/dports/lang/spidermonkey60/firefox-60.9.0/image/
H A DimgTools.cpp331 RefPtr<DataSourceSurface> dataSurface; in EncodeImage() local
334 dataSurface = frame->GetDataSurface(); in EncodeImage()
337 dataSurface = gfxUtils::CopySurfaceToDataSourceSurfaceWithFormat( in EncodeImage()
341 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in EncodeImage()
378 RefPtr<DataSourceSurface> dataSurface = in EncodeScaledImage() local
380 if (NS_WARN_IF(!dataSurface)) { in EncodeScaledImage()
385 if (!dataSurface->Map(DataSourceSurface::MapType::WRITE, &map)) { in EncodeScaledImage()
403 dataSurface->Unmap(); in EncodeScaledImage()
449 if (NS_WARN_IF(!dataSurface)) { in EncodeCroppedImage()
454 if (!dataSurface->Map(DataSourceSurface::MapType::WRITE, &map)) { in EncodeCroppedImage()
[all …]
/dports/lang/spidermonkey78/firefox-78.9.0/widget/windows/
H A DnsWindowGfx.cpp493 RefPtr<DataSourceSurface> dataSurface; in CreateIcon() local
499 dataSurface = in CreateIcon()
501 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
521 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
524 dataSurface = surface->GetDataSurface(); in CreateIcon()
525 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
528 NS_ENSURE_TRUE(dataSurface && mappedOK, NS_ERROR_FAILURE); in CreateIcon()
529 MOZ_ASSERT(dataSurface->GetFormat() == SurfaceFormat::B8G8R8A8); in CreateIcon()
542 dataSurface->Unmap(); in CreateIcon()
545 autoDeleteArray = SurfaceToPackedBGRA(dataSurface); in CreateIcon()
[all …]
H A DnsDragService.cpp83 RefPtr<DataSourceSurface> dataSurface = Factory::CreateDataSourceSurface( in CreateDragImage() local
85 NS_ENSURE_TRUE(dataSurface, false); in CreateDragImage()
88 if (!dataSurface->Map(DataSourceSurface::MapType::READ_WRITE, &map)) { in CreateDragImage()
93 BackendType::CAIRO, map.mData, dataSurface->GetSize(), map.mStride, in CreateDragImage()
94 dataSurface->GetFormat()); in CreateDragImage()
96 dataSurface->Unmap(); in CreateDragImage()
102 Rect(0, 0, dataSurface->GetSize().width, dataSurface->GetSize().height), in CreateDragImage()
128 dataSurface->GetSize(), map.mStride, in CreateDragImage()
129 BytesPerPixel(dataSurface->GetFormat())); in CreateDragImage()
143 dataSurface->Unmap(); in CreateDragImage()
/dports/lang/spidermonkey60/firefox-60.9.0/widget/windows/
H A DnsWindowGfx.cpp467 RefPtr<DataSourceSurface> dataSurface; in CreateIcon() local
473 dataSurface = in CreateIcon()
475 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
495 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
498 dataSurface = surface->GetDataSurface(); in CreateIcon()
499 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
502 NS_ENSURE_TRUE(dataSurface && mappedOK, NS_ERROR_FAILURE); in CreateIcon()
503 MOZ_ASSERT(dataSurface->GetFormat() == SurfaceFormat::B8G8R8A8); in CreateIcon()
516 dataSurface->Unmap(); in CreateIcon()
519 autoDeleteArray = SurfaceToPackedBGRA(dataSurface); in CreateIcon()
[all …]
H A DnsDragService.cpp86 RefPtr<DataSourceSurface> dataSurface = Factory::CreateDataSourceSurface( in CreateDragImage() local
88 NS_ENSURE_TRUE(dataSurface, false); in CreateDragImage()
91 if (!dataSurface->Map(DataSourceSurface::MapType::READ_WRITE, &map)) { in CreateDragImage()
96 BackendType::CAIRO, map.mData, dataSurface->GetSize(), map.mStride, in CreateDragImage()
97 dataSurface->GetFormat()); in CreateDragImage()
99 dataSurface->Unmap(); in CreateDragImage()
105 Rect(0, 0, dataSurface->GetSize().width, dataSurface->GetSize().height), in CreateDragImage()
131 dataSurface->GetSize(), map.mStride, in CreateDragImage()
132 BytesPerPixel(dataSurface->GetFormat())); in CreateDragImage()
146 dataSurface->Unmap(); in CreateDragImage()
/dports/www/firefox-legacy/firefox-52.8.0esr/widget/windows/
H A DnsWindowGfx.cpp485 RefPtr<DataSourceSurface> dataSurface; in CreateIcon() local
491 dataSurface = Factory::CreateDataSourceSurface(iconSize, in CreateIcon()
493 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
514 dataSurface = gfxUtils:: in CreateIcon()
517 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
520 dataSurface = surface->GetDataSurface(); in CreateIcon()
521 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
524 NS_ENSURE_TRUE(dataSurface && mappedOK, NS_ERROR_FAILURE); in CreateIcon()
538 dataSurface->Unmap(); in CreateIcon()
541 autoDeleteArray = SurfaceToPackedBGRA(dataSurface); in CreateIcon()
[all …]
H A DnsDragService.cpp95 RefPtr<DataSourceSurface> dataSurface =
98 NS_ENSURE_TRUE(dataSurface, false);
101 if (!dataSurface->Map(DataSourceSurface::MapType::READ_WRITE, &map)) {
108 dataSurface->GetSize(),
110 dataSurface->GetFormat());
112 dataSurface->Unmap();
117 Rect(0, 0, dataSurface->GetSize().width, dataSurface->GetSize().height),
144 dataSurface->GetSize(), map.mStride,
145 BytesPerPixel(dataSurface->GetFormat()));
159 dataSurface->Unmap();
/dports/mail/thunderbird/thunderbird-91.8.0/widget/windows/
H A DnsWindowGfx.cpp455 RefPtr<DataSourceSurface> dataSurface; in CreateIcon() local
461 dataSurface = in CreateIcon()
463 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
483 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
486 dataSurface = surface->GetDataSurface(); in CreateIcon()
487 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
490 NS_ENSURE_TRUE(dataSurface && mappedOK, NS_ERROR_FAILURE); in CreateIcon()
491 MOZ_ASSERT(dataSurface->GetFormat() == SurfaceFormat::B8G8R8A8); in CreateIcon()
504 dataSurface->Unmap(); in CreateIcon()
507 autoDeleteArray = SurfaceToPackedBGRA(dataSurface); in CreateIcon()
[all …]
H A DnsDragService.cpp83 RefPtr<DataSourceSurface> dataSurface = Factory::CreateDataSourceSurface( in CreateDragImage() local
85 NS_ENSURE_TRUE(dataSurface, false); in CreateDragImage()
88 if (!dataSurface->Map(DataSourceSurface::MapType::READ_WRITE, &map)) { in CreateDragImage()
93 BackendType::CAIRO, map.mData, dataSurface->GetSize(), map.mStride, in CreateDragImage()
94 dataSurface->GetFormat()); in CreateDragImage()
96 dataSurface->Unmap(); in CreateDragImage()
102 Rect(0, 0, dataSurface->GetSize().width, dataSurface->GetSize().height), in CreateDragImage()
128 dataSurface->GetSize(), map.mStride, in CreateDragImage()
129 BytesPerPixel(dataSurface->GetFormat())); in CreateDragImage()
143 dataSurface->Unmap(); in CreateDragImage()
/dports/www/firefox-esr/firefox-91.8.0/widget/windows/
H A DnsWindowGfx.cpp455 RefPtr<DataSourceSurface> dataSurface; in CreateIcon() local
461 dataSurface = in CreateIcon()
463 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
483 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
486 dataSurface = surface->GetDataSurface(); in CreateIcon()
487 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
490 NS_ENSURE_TRUE(dataSurface && mappedOK, NS_ERROR_FAILURE); in CreateIcon()
491 MOZ_ASSERT(dataSurface->GetFormat() == SurfaceFormat::B8G8R8A8); in CreateIcon()
504 dataSurface->Unmap(); in CreateIcon()
507 autoDeleteArray = SurfaceToPackedBGRA(dataSurface); in CreateIcon()
[all …]
H A DnsDragService.cpp83 RefPtr<DataSourceSurface> dataSurface = Factory::CreateDataSourceSurface( in CreateDragImage() local
85 NS_ENSURE_TRUE(dataSurface, false); in CreateDragImage()
88 if (!dataSurface->Map(DataSourceSurface::MapType::READ_WRITE, &map)) { in CreateDragImage()
93 BackendType::CAIRO, map.mData, dataSurface->GetSize(), map.mStride, in CreateDragImage()
94 dataSurface->GetFormat()); in CreateDragImage()
96 dataSurface->Unmap(); in CreateDragImage()
102 Rect(0, 0, dataSurface->GetSize().width, dataSurface->GetSize().height), in CreateDragImage()
128 dataSurface->GetSize(), map.mStride, in CreateDragImage()
129 BytesPerPixel(dataSurface->GetFormat())); in CreateDragImage()
143 dataSurface->Unmap(); in CreateDragImage()
/dports/www/firefox-esr/firefox-91.8.0/image/
H A DimgTools.cpp483 RefPtr<DataSourceSurface> dataSurface; in EncodeImage() local
487 dataSurface = frame->GetDataSurface(); in EncodeImage()
490 dataSurface = gfxUtils::CopySurfaceToDataSourceSurfaceWithFormat( in EncodeImage()
494 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in EncodeImage()
496 return EncodeImageData(dataSurface, aMimeType, aOutputOptions, aStream); in EncodeImage()
535 RefPtr<DataSourceSurface> dataSurface = frame->GetDataSurface(); in EncodeScaledImage() local
536 if (dataSurface) { in EncodeScaledImage()
542 RefPtr<DataSourceSurface> dataSurface = in EncodeScaledImage() local
544 if (NS_WARN_IF(!dataSurface)) { in EncodeScaledImage()
609 RefPtr<DataSourceSurface> dataSurface = Factory::CreateDataSourceSurface( in EncodeCroppedImage() local
[all …]
/dports/lang/spidermonkey78/firefox-78.9.0/image/
H A DimgTools.cpp479 RefPtr<DataSourceSurface> dataSurface; in EncodeImage() local
483 dataSurface = frame->GetDataSurface(); in EncodeImage()
486 dataSurface = gfxUtils::CopySurfaceToDataSourceSurfaceWithFormat( in EncodeImage()
490 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in EncodeImage()
492 return EncodeImageData(dataSurface, aMimeType, aOutputOptions, aStream); in EncodeImage()
531 RefPtr<DataSourceSurface> dataSurface = frame->GetDataSurface(); in EncodeScaledImage() local
532 if (dataSurface) { in EncodeScaledImage()
538 RefPtr<DataSourceSurface> dataSurface = in EncodeScaledImage() local
540 if (NS_WARN_IF(!dataSurface)) { in EncodeScaledImage()
605 RefPtr<DataSourceSurface> dataSurface = Factory::CreateDataSourceSurface( in EncodeCroppedImage() local
[all …]
/dports/www/firefox/firefox-99.0/image/
H A DimgTools.cpp483 RefPtr<DataSourceSurface> dataSurface; in EncodeImage() local
487 dataSurface = frame->GetDataSurface(); in EncodeImage()
490 dataSurface = gfxUtils::CopySurfaceToDataSourceSurfaceWithFormat( in EncodeImage()
494 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in EncodeImage()
496 return EncodeImageData(dataSurface, aMimeType, aOutputOptions, aStream); in EncodeImage()
535 RefPtr<DataSourceSurface> dataSurface = frame->GetDataSurface(); in EncodeScaledImage() local
536 if (dataSurface) { in EncodeScaledImage()
542 RefPtr<DataSourceSurface> dataSurface = in EncodeScaledImage() local
544 if (NS_WARN_IF(!dataSurface)) { in EncodeScaledImage()
609 RefPtr<DataSourceSurface> dataSurface = Factory::CreateDataSourceSurface( in EncodeCroppedImage() local
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/image/
H A DimgTools.cpp483 RefPtr<DataSourceSurface> dataSurface; in EncodeImage() local
487 dataSurface = frame->GetDataSurface(); in EncodeImage()
490 dataSurface = gfxUtils::CopySurfaceToDataSourceSurfaceWithFormat( in EncodeImage()
494 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in EncodeImage()
496 return EncodeImageData(dataSurface, aMimeType, aOutputOptions, aStream); in EncodeImage()
535 RefPtr<DataSourceSurface> dataSurface = frame->GetDataSurface(); in EncodeScaledImage() local
536 if (dataSurface) { in EncodeScaledImage()
542 RefPtr<DataSourceSurface> dataSurface = in EncodeScaledImage() local
544 if (NS_WARN_IF(!dataSurface)) { in EncodeScaledImage()
609 RefPtr<DataSourceSurface> dataSurface = Factory::CreateDataSourceSurface( in EncodeCroppedImage() local
[all …]
/dports/www/firefox/firefox-99.0/widget/windows/
H A DnsWindowGfx.cpp511 RefPtr<DataSourceSurface> dataSurface; in CreateIcon() local
517 dataSurface = in CreateIcon()
519 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
539 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
542 dataSurface = surface->GetDataSurface(); in CreateIcon()
543 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in CreateIcon()
546 NS_ENSURE_TRUE(dataSurface && mappedOK, NS_ERROR_FAILURE); in CreateIcon()
547 MOZ_ASSERT(dataSurface->GetFormat() == SurfaceFormat::B8G8R8A8); in CreateIcon()
560 dataSurface->Unmap(); in CreateIcon()
563 autoDeleteArray = SurfaceToPackedBGRA(dataSurface); in CreateIcon()
[all …]
H A DnsDragService.cpp84 RefPtr<DataSourceSurface> dataSurface = Factory::CreateDataSourceSurface( in CreateDragImage() local
86 NS_ENSURE_TRUE(dataSurface, false); in CreateDragImage()
89 if (!dataSurface->Map(DataSourceSurface::MapType::READ_WRITE, &map)) { in CreateDragImage()
94 BackendType::CAIRO, map.mData, dataSurface->GetSize(), map.mStride, in CreateDragImage()
95 dataSurface->GetFormat()); in CreateDragImage()
97 dataSurface->Unmap(); in CreateDragImage()
103 Rect(0, 0, dataSurface->GetSize().width, dataSurface->GetSize().height), in CreateDragImage()
129 dataSurface->GetSize(), map.mStride, in CreateDragImage()
130 BytesPerPixel(dataSurface->GetFormat())); in CreateDragImage()
144 dataSurface->Unmap(); in CreateDragImage()
/dports/www/firefox-legacy/firefox-52.8.0esr/widget/
H A DnsDragServiceProxy.cpp53 RefPtr<mozilla::gfx::DataSourceSurface> dataSurface = in InvokeDragSessionImpl() local
55 if (dataSurface) { in InvokeDragSessionImpl()
59 nsContentUtils::GetSurfaceData(dataSurface, &length, &stride, child, in InvokeDragSessionImpl()
69 stride, static_cast<uint8_t>(dataSurface->GetFormat()), in InvokeDragSessionImpl()
/dports/lang/spidermonkey78/firefox-78.9.0/widget/android/
H A DImageDecoderSupport.cpp86 RefPtr<DataSourceSurface> dataSurface = surface->GetDataSurface(); in SendBitmap() local
88 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in SendBitmap()
90 int32_t width = dataSurface->GetSize().width; in SendBitmap()
91 int32_t height = dataSurface->GetSize().height; in SendBitmap()
93 DataSourceSurface::ScopedMap sourceMap(dataSurface, in SendBitmap()
99 Factory::CreateDataSourceSurfaceWithStride(dataSurface->GetSize(), in SendBitmap()
/dports/mail/thunderbird/thunderbird-91.8.0/widget/android/
H A DImageDecoderSupport.cpp91 RefPtr<DataSourceSurface> dataSurface = surface->GetDataSurface(); in SendBitmap() local
93 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in SendBitmap()
94 int32_t width = dataSurface->GetSize().width; in SendBitmap()
95 int32_t height = dataSurface->GetSize().height; in SendBitmap()
97 DataSourceSurface::ScopedMap sourceMap(dataSurface, in SendBitmap()
103 Factory::CreateDataSourceSurfaceWithStride(dataSurface->GetSize(), in SendBitmap()
/dports/www/firefox/firefox-99.0/widget/android/
H A DImageDecoderSupport.cpp93 RefPtr<DataSourceSurface> dataSurface = surface->GetDataSurface(); in SendBitmap() local
95 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in SendBitmap()
96 int32_t width = dataSurface->GetSize().width; in SendBitmap()
97 int32_t height = dataSurface->GetSize().height; in SendBitmap()
99 DataSourceSurface::ScopedMap sourceMap(dataSurface, in SendBitmap()
105 Factory::CreateDataSourceSurfaceWithStride(dataSurface->GetSize(), in SendBitmap()
/dports/www/firefox-esr/firefox-91.8.0/widget/android/
H A DImageDecoderSupport.cpp91 RefPtr<DataSourceSurface> dataSurface = surface->GetDataSurface(); in SendBitmap() local
93 NS_ENSURE_TRUE(dataSurface, NS_ERROR_FAILURE); in SendBitmap()
94 int32_t width = dataSurface->GetSize().width; in SendBitmap()
95 int32_t height = dataSurface->GetSize().height; in SendBitmap()
97 DataSourceSurface::ScopedMap sourceMap(dataSurface, in SendBitmap()
103 Factory::CreateDataSourceSurfaceWithStride(dataSurface->GetSize(), in SendBitmap()
/dports/lang/spidermonkey78/firefox-78.9.0/widget/
H A DnsDragServiceProxy.cpp57 RefPtr<DataSourceSurface> dataSurface = surface->GetDataSurface(); in InvokeDragSessionImpl() local
58 if (dataSurface) { in InvokeDragSessionImpl()
62 dataSurface, &length, &stride, child); in InvokeDragSessionImpl()
77 dataSurface->GetFormat(), dragRect, principal, csp); in InvokeDragSessionImpl()
/dports/lang/spidermonkey60/firefox-60.9.0/widget/
H A DnsDragServiceProxy.cpp64 RefPtr<mozilla::gfx::DataSourceSurface> dataSurface = in InvokeDragSessionImpl() local
66 if (dataSurface) { in InvokeDragSessionImpl()
70 dataSurface, &length, &stride, child); in InvokeDragSessionImpl()
85 static_cast<uint8_t>(dataSurface->GetFormat()), dragRect, in InvokeDragSessionImpl()

123456