Methods Summary |
---|
public void | acquireReference()
mRefCount++;
|
public int | getByteCount()
return bmp.getByteCount();
|
public int | getLogicalHeight()
return mHeight;
|
public int | getLogicalWidth()
return mWidth;
|
public int | getOrientation()
return mOrientation;
|
public int | getRefCount()
return mRefCount;
|
public boolean | isEligibleForPooling()
return mReusable;
|
public void | releaseReference()
if (mRefCount == 0) {
throw new IllegalStateException();
}
mRefCount--;
|
public void | setLogicalHeight(int h)
mHeight = h;
|
public void | setLogicalWidth(int w)
mWidth = w;
|
public void | setOrientation(int orientation)
mOrientation = orientation;
|
public java.lang.String | toString()
final StringBuilder sb = new StringBuilder("[");
sb.append(super.toString());
sb.append(" refCount=");
sb.append(mRefCount);
sb.append(" mReusable=");
sb.append(mReusable);
sb.append(" bmp=");
sb.append(bmp);
sb.append(" logicalW/H=");
sb.append(mWidth);
sb.append("/");
sb.append(mHeight);
if (bmp != null) {
sb.append(" sz=");
sb.append(bmp.getByteCount() >> 10);
sb.append("KB");
}
sb.append("]");
return sb.toString();
|