test-hwc2: set layer buffer

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: Ie42d1fd4c2d0248c4a3ecf09a9b5871d501f6172
diff --git a/services/surfaceflinger/tests/hwc2/Hwc2TestProperties.h b/services/surfaceflinger/tests/hwc2/Hwc2TestProperties.h
index 6f3bd0f..048d6e9 100644
--- a/services/surfaceflinger/tests/hwc2/Hwc2TestProperties.h
+++ b/services/surfaceflinger/tests/hwc2/Hwc2TestProperties.h
@@ -96,6 +96,7 @@
 };
 
 
+class Hwc2TestBuffer;
 class Hwc2TestSourceCrop;
 class Hwc2TestSurfaceDamage;
 
@@ -105,6 +106,7 @@
 
     std::string dump() const override;
 
+    void setDependent(Hwc2TestBuffer* buffer);
     void setDependent(Hwc2TestSourceCrop* sourceCrop);
     void setDependent(Hwc2TestSurfaceDamage* surfaceDamage);
 
@@ -119,6 +121,7 @@
 
     Area mDisplayArea;
 
+    Hwc2TestBuffer* mBuffer = nullptr;
     Hwc2TestSourceCrop* mSourceCrop = nullptr;
     Hwc2TestSurfaceDamage* mSurfaceDamage = nullptr;