test-hwc2: set layer visible region

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: I0e620fa6763d258d7875da9bf85d41c182e015d2
diff --git a/services/surfaceflinger/tests/hwc2/Hwc2TestLayers.h b/services/surfaceflinger/tests/hwc2/Hwc2TestLayers.h
index 1625352..b246823 100644
--- a/services/surfaceflinger/tests/hwc2/Hwc2TestLayers.h
+++ b/services/surfaceflinger/tests/hwc2/Hwc2TestLayers.h
@@ -37,9 +37,14 @@
 
     void reset();
 
-    uint32_t getZOrder(hwc2_layer_t layer) const;
+    bool advanceVisibleRegions();
+
+    hwc_region_t    getVisibleRegion(hwc2_layer_t layer) const;
+    uint32_t        getZOrder(hwc2_layer_t layer) const;
 
 private:
+    void setVisibleRegions();
+
     std::map<hwc2_layer_t, Hwc2TestLayer> mTestLayers;
 };