зеркало из https://github.com/mozilla/gecko-dev.git
Bug 719136: Don't attempt to upload when there's nothing to upload. r=jrmuizel
This commit is contained in:
Родитель
0ba547cb7b
Коммит
614c2ee69d
|
@ -1985,6 +1985,12 @@ DrawTargetD2D::CreatePartialBitmapForSurface(SourceSurfaceD2D *aSurface, Matrix
|
||||||
// surface.
|
// surface.
|
||||||
uploadRect = uploadRect.Intersect(rect);
|
uploadRect = uploadRect.Intersect(rect);
|
||||||
|
|
||||||
|
if (uploadRect.IsEmpty()) {
|
||||||
|
// This bitmap does not cover anything on the screen. XXX -
|
||||||
|
// we need to deal with EXTEND modes here!
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (uploadRect.width <= mRT->GetMaximumBitmapSize() &&
|
if (uploadRect.width <= mRT->GetMaximumBitmapSize() &&
|
||||||
uploadRect.height <= mRT->GetMaximumBitmapSize()) {
|
uploadRect.height <= mRT->GetMaximumBitmapSize()) {
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче