diff options
author | 2015-08-07 14:47:20 -0700 | |
---|---|---|
committer | 2015-08-24 10:50:52 -0700 | |
commit | 60d6922a011fe18c111b8d30fb6ef1f655b6b15e (patch) | |
tree | 4618ad5fc60b4e25c76c9f5d1e80ad3223baff31 /libs/gui/BufferQueueProducer.cpp | |
parent | 72f314a50f34de593686661b0a99906125d18bfd (diff) |
libsgui: Change Rect default constructor
The current Rect default constructor initializes to all zeroes. Change
it to initialize to an invalid Rect.
Modify all of the existing invocations of the default constructor to
maintain the existing behavior.
Bug 18173359
Change-Id: Ibbad076f1550a94f56d7b1cf5350071f2022e09a
Diffstat (limited to 'libs/gui/BufferQueueProducer.cpp')
-rw-r--r-- | libs/gui/BufferQueueProducer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/gui/BufferQueueProducer.cpp b/libs/gui/BufferQueueProducer.cpp index 87e5b4d279..a440f6e1de 100644 --- a/libs/gui/BufferQueueProducer.cpp +++ b/libs/gui/BufferQueueProducer.cpp @@ -547,7 +547,7 @@ status_t BufferQueueProducer::queueBuffer(int slot, int64_t timestamp; bool isAutoTimestamp; android_dataspace dataSpace; - Rect crop; + Rect crop(Rect::EMPTY_RECT); int scalingMode; uint32_t transform; uint32_t stickyTransform; @@ -619,7 +619,7 @@ status_t BufferQueueProducer::queueBuffer(int slot, const sp<GraphicBuffer>& graphicBuffer(mSlots[slot].mGraphicBuffer); Rect bufferRect(graphicBuffer->getWidth(), graphicBuffer->getHeight()); - Rect croppedRect; + Rect croppedRect(Rect::EMPTY_RECT); crop.intersect(bufferRect, &croppedRect); if (croppedRect != crop) { BQ_LOGE("queueBuffer: crop rect is not contained within the " |