Merge "Explicitly construct all Rects"

This commit is contained in:
Pablo Ceballos
2015-08-25 22:13:01 +00:00
committed by Android (Google) Code Review
3 changed files with 3 additions and 3 deletions

View File

@@ -158,7 +158,7 @@ static jboolean android_view_GraphicBuffer_lockCanvas(JNIEnv* env, jobject,
sp<GraphicBuffer> buffer(wrapper->buffer);
Rect rect;
Rect rect(Rect::EMPTY_RECT);
if (dirtyRect) {
rect.left = GET_INT(dirtyRect, gRectClassInfo.left);
rect.top = GET_INT(dirtyRect, gRectClassInfo.top);

View File

@@ -292,7 +292,7 @@ static jlong nativeLockCanvas(JNIEnv* env, jclass clazz,
return 0;
}
Rect dirtyRect;
Rect dirtyRect(Rect::EMPTY_RECT);
Rect* dirtyRectPtr = NULL;
if (dirtyRectObj) {

View File

@@ -142,7 +142,7 @@ static jboolean android_view_TextureView_lockCanvas(JNIEnv* env, jobject,
ANativeWindow_Buffer buffer;
Rect rect;
Rect rect(Rect::EMPTY_RECT);
if (dirtyRect) {
rect.left = GET_INT(dirtyRect, gRectClassInfo.left);
rect.top = GET_INT(dirtyRect, gRectClassInfo.top);