Pass FlatViewGroup to DrawCommand.draw()

Summary: @public To render `View`s inside `FlatViewGroup`, we need to pass the parent to `DrawCommand.draw()` method. Used in a followup diff.

Reviewed By: sriramramani

Differential Revision: D2564478
This commit is contained in:
Denis Koroskin
2015-12-13 09:54:25 -08:00
committed by Ahmed El-Helw
parent f19acaed4b
commit 7db444c9ae
6 changed files with 6 additions and 6 deletions

View File

@@ -80,7 +80,7 @@ import com.facebook.react.views.image.ImageResizeMode;
}
@Override
public void draw(Canvas canvas) {
public void draw(FlatViewGroup parent, Canvas canvas) {
Bitmap bitmap = Assertions.assumeNotNull(mBitmapRequestHelper).getBitmap();
if (bitmap == null) {
return;