[tv] Set up the GPU caching parameters for emulator device

Default texture cache is way too small to be able to handle
large background images; this causes huge performance issues
in the emulator;
This CL tweaks the caching parameters to be on par with physical
devices

Bug=https://b.corp.google.com/u/0/issues/28752126

Change-Id: Ia6a023db7bc0452c82a837e687c0ffb8451ee7cb
diff --git a/init.goldfish.rc b/init.goldfish.rc
index 0ec6f1b..48663bc 100644
--- a/init.goldfish.rc
+++ b/init.goldfish.rc
@@ -20,6 +20,19 @@
     setprop status.battery.level_raw  50
     setprop status.battery.level_scale 9
 
+# set up the GPU caching
+    setprop ro.hwui.texture_cache_size 72
+    setprop ro.hwui.layer_cache_size 48
+    setprop ro.hwui.r_buffer_cache_size 8
+    setprop ro.hwui.path_cache_size 32
+    setprop ro.hwui.gradient_cache_size 1
+    setprop ro.hwui.drop_shadow_cache_size 6
+    setprop ro.hwui.texture_cache_flushrate 0.4
+    setprop ro.hwui.text_small_cache_width 1024
+    setprop ro.hwui.text_small_cache_height 1024
+    setprop ro.hwui.text_large_cache_width 2048
+    setprop ro.hwui.text_large_cache_height 1024
+
 # disable some daemons the emulator doesn't want
     stop dund
     stop akmd
diff --git a/init.ranchu.rc b/init.ranchu.rc
index 1cae141..5baf9ed 100644
--- a/init.ranchu.rc
+++ b/init.ranchu.rc
@@ -24,6 +24,19 @@
     setprop status.battery.level_raw  50
     setprop status.battery.level_scale 9
 
+# set up the GPU caching
+    setprop ro.hwui.texture_cache_size 72
+    setprop ro.hwui.layer_cache_size 48
+    setprop ro.hwui.r_buffer_cache_size 8
+    setprop ro.hwui.path_cache_size 32
+    setprop ro.hwui.gradient_cache_size 1
+    setprop ro.hwui.drop_shadow_cache_size 6
+    setprop ro.hwui.texture_cache_flushrate 0.4
+    setprop ro.hwui.text_small_cache_width 1024
+    setprop ro.hwui.text_small_cache_height 1024
+    setprop ro.hwui.text_large_cache_width 2048
+    setprop ro.hwui.text_large_cache_height 1024
+
 # disable some daemons the emulator doesn't want
     stop dund
     stop akmd