Home | History | Annotate | Download | only in models
      1 # Graphics Models
      2 
      3 There are three components to the graphics model, each modeling EGL memory
      4 use:
      5 1. For each `android.view.TextureView` instance:
      6     2 * (4 * width * height)
      7 
      8 2. For each `android.view.Surface$HwuiContext` instance:
      9     3 * (4 * width * height)
     10 
     11 3. For each initialized `android.view.ThreadedRenderer`:
     12     3 * (4 * width * height)
     13 
     14 Note: 4 is the number of bytes per pixel. 2 or 3 is the maximum number of
     15 buffers that may be allocated.
     16 
     17 The actionable breakdown is the breakdown by `TextureView`,
     18 `Surface$HwuiContext` and `ThreadedRenderer` instance, with further details
     19 about the width and height associated with each instance.
     20 
     21 For example, an application with a single 64x256 `TextureView` instance will
     22 be shown as taking up 128 KB.
     23