summaryrefslogtreecommitdiffstats
path: root/gfx/layers
diff options
context:
space:
mode:
authorAndrew Osmond <aosmond@mozilla.com>2018-04-10 09:40:02 -0400
committerwolfbeast <mcwerewolf@gmail.com>2018-04-19 11:58:39 +0200
commite7189e33f533f9b974b22c2110b522a13bc4c7f6 (patch)
tree8e6b6f1e0929d73f3b0568c30b99415e825866a6 /gfx/layers
parentd66d343e1b6a5c3be08f82a0ac2489a91c647d65 (diff)
downloadUXP-e7189e33f533f9b974b22c2110b522a13bc4c7f6.tar
UXP-e7189e33f533f9b974b22c2110b522a13bc4c7f6.tar.gz
UXP-e7189e33f533f9b974b22c2110b522a13bc4c7f6.tar.lz
UXP-e7189e33f533f9b974b22c2110b522a13bc4c7f6.tar.xz
UXP-e7189e33f533f9b974b22c2110b522a13bc4c7f6.zip
Bug 1388020. r=nical, a=RyanVM
Diffstat (limited to 'gfx/layers')
-rw-r--r--gfx/layers/composite/TextureHost.cpp3
-rw-r--r--gfx/layers/opengl/TextureHostOGL.cpp4
2 files changed, 2 insertions, 5 deletions
diff --git a/gfx/layers/composite/TextureHost.cpp b/gfx/layers/composite/TextureHost.cpp
index e7d87e238..c93037384 100644
--- a/gfx/layers/composite/TextureHost.cpp
+++ b/gfx/layers/composite/TextureHost.cpp
@@ -888,8 +888,7 @@ BufferTextureHost::Upload(nsIntRegion *aRegion)
mFirstSource = mCompositor->CreateDataTextureSource(mFlags|TextureFlags::RGB_FROM_YCBCR);
mFirstSource->SetOwner(this);
}
- mFirstSource->Update(surf, aRegion);
- return true;
+ return mFirstSource->Update(surf, aRegion);
}
RefPtr<DataTextureSource> srcY;
diff --git a/gfx/layers/opengl/TextureHostOGL.cpp b/gfx/layers/opengl/TextureHostOGL.cpp
index 02c398b51..ec6ba9131 100644
--- a/gfx/layers/opengl/TextureHostOGL.cpp
+++ b/gfx/layers/opengl/TextureHostOGL.cpp
@@ -161,9 +161,7 @@ TextureImageTextureSourceOGL::Update(gfx::DataSourceSurface* aSurface,
}
}
- mTexImage->UpdateFromDataSource(aSurface, aDestRegion, aSrcOffset);
-
- return true;
+ return mTexImage->UpdateFromDataSource(aSurface, aDestRegion, aSrcOffset);
}
void