package com.google.android.m4b.maps.bp;

import com.google.android.m4b.maps.bo.e;
import java.nio.ByteBuffer;
import javax.microedition.khronos.opengles.GL11;

public final class b extends a
{
  private final int[] f = new int[1];
  private volatile long g = -1L;

  public b(int paramInt)
  {
    super(paramInt);
  }

  public b(int paramInt, boolean paramBoolean)
  {
    super(paramInt, true);
  }

  public final void a(e parame)
  {
    if (this.f[0] != 0)
    {
      e locale = e.b(this.g);
      if ((locale == parame) && (locale != null))
        ((GL11)locale.x()).glDeleteBuffers(1, this.f, 0);
      this.f[0] = 0;
      this.d = 0;
    }
    this.g = e.a(parame);
  }

  public final int b()
  {
    int i = 56;
    if (this.e != null)
      i = 56 + this.e.b();
    while (this.a == null)
      return i;
    return 56 + (16 + this.a.length);
  }

  public final void c(e parame)
  {
    this.g = e.a(parame);
    if (!parame.F())
      super.c(parame);
    GL11 localGL11;
    do
    {
      return;
      localGL11 = (GL11)parame.x();
      if (this.f[0] != 0)
        break;
      if (this.c == null)
        d(parame);
    }
    while (this.c.limit() == 0);
    localGL11.glGenBuffers(1, this.f, 0);
    localGL11.glBindBuffer(34962, this.f[0]);
    this.d = this.c.limit();
    localGL11.glBufferData(34962, this.d, this.c, 35044);
    this.c = null;
    localGL11.glBindBuffer(34962, this.f[0]);
    localGL11.glColorPointer(4, 5121, 0, 0);
    localGL11.glBindBuffer(34962, 0);
  }

  protected final void d(e parame)
  {
    if (parame.F())
    {
      int i = 4 * this.b;
      this.c = parame.J().a();
      if (!com.google.android.m4b.maps.am.b.a);
      for (boolean bool = true; ; bool = false)
      {
        a(i, bool);
        return;
      }
    }
    super.d(parame);
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.google.android.m4b.maps.bp.b
 * JD-Core Version:    0.6.2
 */