Cast buffer width and height to int

GraphicBuffer::get{Width,Height} are going to start returning uint32_t
values soon, so add the cast now to avoid breaking the build later.

Change-Id: Ied33700fdf81e8aecbad95d66583818d15987b93
This commit is contained in:
Dan Stoza
2014-11-18 14:47:11 -08:00
parent 5e88177ecb
commit 32d2e769ea

View File

@@ -97,8 +97,8 @@ void DeferredLayerUpdater::doUpdateTexImage() {
sp<GraphicBuffer> buffer = mSurfaceTexture->getCurrentBuffer();
if (buffer != NULL) {
// force filtration if buffer size != layer size
forceFilter = mWidth != buffer->getWidth()
|| mHeight != buffer->getHeight();
forceFilter = mWidth != static_cast<int>(buffer->getWidth())
|| mHeight != static_cast<int>(buffer->getHeight());
}
#if DEBUG_RENDERER