text: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  <!--NewPage-->
  <HTML>
  <HEAD>
  <!-- Generated by javadoc (build 1.6.0_65) on Fri May 01 11:48:53 PDT 2015 -->
  <TITLE>
  BitmapPoolAdapter (glide 3.6.0 API)
  </TITLE>
  
  <META NAME="date" CONTENT="2015-05-01">
  
  <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
  
  <SCRIPT type="text/javascript">
  function windowTitle()
  {
      if (location.href.indexOf('is-external=true') == -1) {
          parent.document.title="BitmapPoolAdapter (glide 3.6.0 API)";
      }
  }
  </SCRIPT>
  <NOSCRIPT>
  </NOSCRIPT>
  
  </HEAD>
  
  <BODY BGCOLOR="white" onload="windowTitle();">
  <HR>
  
  
  <!-- ========= START OF TOP NAVBAR ======= -->
  <A NAME="navbar_top"><!-- --></A>
  <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  <TR>
  <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  <A NAME="navbar_top_firstrow"><!-- --></A>
  <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
    <TR ALIGN="center" VALIGN="top">
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
    </TR>
  </TABLE>
  </TD>
  <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  </EM>
  </TD>
  </TR>
  
  <TR>
  <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  &nbsp;<A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle"><B>PREV CLASS</B></A>&nbsp;
  &nbsp;<A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/LruBitmapPool.html" title="class in com.bumptech.glide.load.engine.bitmap_recycle"><B>NEXT CLASS</B></A></FONT></TD>
  <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
    <A HREF="../../../../../../index.html?com/bumptech/glide/load/engine/bitmap_recycle/BitmapPoolAdapter.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  &nbsp;<A HREF="BitmapPoolAdapter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  &nbsp;<SCRIPT type="text/javascript">
    <!--
    if(window==top) {
      document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
    }
    //-->
  </SCRIPT>
  <NOSCRIPT>
    <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  </NOSCRIPT>
  
  
  </FONT></TD>
  </TR>
  <TR>
  <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
    SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  </TR>
  </TABLE>
  <A NAME="skip-navbar_top"></A>
  <!-- ========= END OF TOP NAVBAR ========= -->
  
  <HR>
  <!-- ======== START OF CLASS DATA ======== -->
  <H2>
  <FONT SIZE="-1">
  com.bumptech.glide.load.engine.bitmap_recycle</FONT>
  <BR>
  Class BitmapPoolAdapter</H2>
  <PRE>
  <A HREF="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
    <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>com.bumptech.glide.load.engine.bitmap_recycle.BitmapPoolAdapter</B>
  </PRE>
  <DL>
  <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">BitmapPool</A></DD>
  </DL>
  <HR>
  <DL>
  <DT><PRE>public class <B>BitmapPoolAdapter</B><DT>extends <A HREF="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">BitmapPool</A></DL>
  </PRE>
  
  <P>
  An <A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle"><CODE>BitmapPool</CODE></A> implementation that rejects all
   <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A>s added to it and always returns <code>null</code> from get.
  <P>
  
  <P>
  <HR>
  
  <P>
  
  <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  
  <A NAME="constructor_summary"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  <B>Constructor Summary</B></FONT></TH>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD><CODE><B><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPoolAdapter.html#BitmapPoolAdapter()">BitmapPoolAdapter</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  </TR>
  </TABLE>
  &nbsp;
  <!-- ========== METHOD SUMMARY =========== -->
  
  <A NAME="method_summary"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  <B>Method Summary</B></FONT></TH>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;void</CODE></FONT></TD>
  <TD><CODE><B><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPoolAdapter.html#clearMemory()">clearMemory</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes all <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A>s from the pool.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;<A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</A></CODE></FONT></TD>
  <TD><CODE><B><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPoolAdapter.html#get(int, int, android.graphics.Bitmap.Config)">get</A></B>(int&nbsp;width,
      int&nbsp;height,
      <A HREF="http://d.android.com/reference/android/graphics/Bitmap.Config.html?is-external=true" title="class or interface in android.graphics">Bitmap.Config</A>&nbsp;config)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A> of exactly the given width, height, and configuration, and containing
   only transparent pixels or null if no such <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A> could be obtained from the pool.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;<A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</A></CODE></FONT></TD>
  <TD><CODE><B><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPoolAdapter.html#getDirty(int, int, android.graphics.Bitmap.Config)">getDirty</A></B>(int&nbsp;width,
           int&nbsp;height,
           <A HREF="http://d.android.com/reference/android/graphics/Bitmap.Config.html?is-external=true" title="class or interface in android.graphics">Bitmap.Config</A>&nbsp;config)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Identical to <A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#get(int, int, android.graphics.Bitmap.Config)"><CODE>BitmapPool.get(int, int, android.graphics.Bitmap.Config)</CODE></A> except that any returned non-null
   <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A> may <em>not</em> have been erased and may contain random data.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;int</CODE></FONT></TD>
  <TD><CODE><B><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPoolAdapter.html#getMaxSize()">getMaxSize</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current maximum size of the pool in bytes.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;boolean</CODE></FONT></TD>
  <TD><CODE><B><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPoolAdapter.html#put(android.graphics.Bitmap)">put</A></B>(<A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</A>&nbsp;bitmap)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds the given <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A> and returns <code>true</code> if the <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A>
   was eligible to be added and <code>false</code> otherwise.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;void</CODE></FONT></TD>
  <TD><CODE><B><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPoolAdapter.html#setSizeMultiplier(float)">setSizeMultiplier</A></B>(float&nbsp;sizeMultiplier)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Multiplies the initial size of the pool by the given multipler to dynamically and synchronously allow users to
   adjust the size of the pool.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;void</CODE></FONT></TD>
  <TD><CODE><B><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPoolAdapter.html#trimMemory(int)">trimMemory</A></B>(int&nbsp;level)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reduces the size of the cache by evicting items based on the given level.</TD>
  </TR>
  </TABLE>
  &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD><CODE><A HREF="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
  </TR>
  </TABLE>
  &nbsp;
  <P>
  
  <!-- ========= CONSTRUCTOR DETAIL ======== -->
  
  <A NAME="constructor_detail"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  <B>Constructor Detail</B></FONT></TH>
  </TR>
  </TABLE>
  
  <A NAME="BitmapPoolAdapter()"><!-- --></A><H3>
  BitmapPoolAdapter</H3>
  <PRE>
  public <B>BitmapPoolAdapter</B>()</PRE>
  <DL>
  </DL>
  
  <!-- ============ METHOD DETAIL ========== -->
  
  <A NAME="method_detail"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  <B>Method Detail</B></FONT></TH>
  </TR>
  </TABLE>
  
  <A NAME="getMaxSize()"><!-- --></A><H3>
  getMaxSize</H3>
  <PRE>
  public int <B>getMaxSize</B>()</PRE>
  <DL>
  <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#getMaxSize()">BitmapPool</A></CODE></B></DD>
  <DD>Returns the current maximum size of the pool in bytes.
  <P>
  <DD><DL>
  <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#getMaxSize()">getMaxSize</A></CODE> in interface <CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">BitmapPool</A></CODE></DL>
  </DD>
  <DD><DL>
  </DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="setSizeMultiplier(float)"><!-- --></A><H3>
  setSizeMultiplier</H3>
  <PRE>
  public void <B>setSizeMultiplier</B>(float&nbsp;sizeMultiplier)</PRE>
  <DL>
  <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#setSizeMultiplier(float)">BitmapPool</A></CODE></B></DD>
  <DD>Multiplies the initial size of the pool by the given multipler to dynamically and synchronously allow users to
   adjust the size of the pool.
  
   <p>
       If the current total size of the pool is larger than the max size after the given multiplier is applied,
       <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A>s should be evicted until the pool is smaller than the new max size.
   </p>
  <P>
  <DD><DL>
  <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#setSizeMultiplier(float)">setSizeMultiplier</A></CODE> in interface <CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">BitmapPool</A></CODE></DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>sizeMultiplier</CODE> - The size multiplier to apply between 0 and 1.</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="put(android.graphics.Bitmap)"><!-- --></A><H3>
  put</H3>
  <PRE>
  public boolean <B>put</B>(<A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</A>&nbsp;bitmap)</PRE>
  <DL>
  <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#put(android.graphics.Bitmap)">BitmapPool</A></CODE></B></DD>
  <DD>Adds the given <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A> and returns <code>true</code> if the <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A>
   was eligible to be added and <code>false</code> otherwise.
  
   <p>
       Note - If the <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A> is rejected (this method returns false) then it is the caller's
       responsibility to call <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true#recycle()" title="class or interface in android.graphics"><CODE>Bitmap.recycle()</CODE></A>.
   </p>
  
   <p>
       Note - This method will return <code>true</code> if the given <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A> is synchronously
       evicted after being accepted. The only time this method will return <code>false</code> is if the
       <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A> is not eligible to be added to the pool (either it is not mutable or it is
       larger than the max pool size).
   </p>
  <P>
  <DD><DL>
  <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#put(android.graphics.Bitmap)">put</A></CODE> in interface <CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">BitmapPool</A></CODE></DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>bitmap</CODE> - The <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A> to attempt to add.<DT><B>See Also:</B><DD><A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true#isMutable()" title="class or interface in android.graphics"><CODE>Bitmap.isMutable()</CODE></A>, 
  <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true#recycle()" title="class or interface in android.graphics"><CODE>Bitmap.recycle()</CODE></A></DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="get(int, int, android.graphics.Bitmap.Config)"><!-- --></A><H3>
  get</H3>
  <PRE>
  public <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</A> <B>get</B>(int&nbsp;width,
                    int&nbsp;height,
                    <A HREF="http://d.android.com/reference/android/graphics/Bitmap.Config.html?is-external=true" title="class or interface in android.graphics">Bitmap.Config</A>&nbsp;config)</PRE>
  <DL>
  <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#get(int, int, android.graphics.Bitmap.Config)">BitmapPool</A></CODE></B></DD>
  <DD>Returns a <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A> of exactly the given width, height, and configuration, and containing
   only transparent pixels or null if no such <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A> could be obtained from the pool.
  
   <p>
       Because this method erases all pixels in the <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A>, this method is slightly slower than
       <A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#getDirty(int, int, android.graphics.Bitmap.Config)"><CODE>BitmapPool.getDirty(int, int, android.graphics.Bitmap.Config)</CODE></A>. If the <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A> is being
       obtained to be used in <A HREF="http://d.android.com/reference/android/graphics/BitmapFactory.html?is-external=true" title="class or interface in android.graphics"><CODE>BitmapFactory</CODE></A> or in any other case where every pixel in the
       <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A> will always be overwritten or cleared,
       <A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#getDirty(int, int, android.graphics.Bitmap.Config)"><CODE>BitmapPool.getDirty(int, int, android.graphics.Bitmap.Config)</CODE></A> will be faster. When in doubt, use this method
       to ensure correctness.
   </p>
  
   <pre>
       Implementations can should clear out every returned Bitmap using the following:
  
   <code>bitmap.eraseColor(Color.TRANSPARENT);
   </code>
   </pre>
  <P>
  <DD><DL>
  <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#get(int, int, android.graphics.Bitmap.Config)">get</A></CODE> in interface <CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">BitmapPool</A></CODE></DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>width</CODE> - The width in pixels of the desired <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A>.<DD><CODE>height</CODE> - The height in pixels of the desired <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A>.<DD><CODE>config</CODE> - The <A HREF="http://d.android.com/reference/android/graphics/Bitmap.Config.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap.Config</CODE></A> of the desired <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A>.<DT><B>See Also:</B><DD><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#getDirty(int, int, android.graphics.Bitmap.Config)"><CODE>BitmapPool.getDirty(int, int, android.graphics.Bitmap.Config)</CODE></A></DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getDirty(int, int, android.graphics.Bitmap.Config)"><!-- --></A><H3>
  getDirty</H3>
  <PRE>
  public <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</A> <B>getDirty</B>(int&nbsp;width,
                         int&nbsp;height,
                         <A HREF="http://d.android.com/reference/android/graphics/Bitmap.Config.html?is-external=true" title="class or interface in android.graphics">Bitmap.Config</A>&nbsp;config)</PRE>
  <DL>
  <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#getDirty(int, int, android.graphics.Bitmap.Config)">BitmapPool</A></CODE></B></DD>
  <DD>Identical to <A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#get(int, int, android.graphics.Bitmap.Config)"><CODE>BitmapPool.get(int, int, android.graphics.Bitmap.Config)</CODE></A> except that any returned non-null
   <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A> may <em>not</em> have been erased and may contain random data.
  
   <p>
       Although this method is slightly more efficient than <A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#get(int, int, android.graphics.Bitmap.Config)"><CODE>BitmapPool.get(int, int, android.graphics.Bitmap.Config)</CODE></A>
       it should be used with caution and only when the caller is sure that they are going to erase the
       <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A> entirely before writing new data to it.
   </p>
  <P>
  <DD><DL>
  <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#getDirty(int, int, android.graphics.Bitmap.Config)">getDirty</A></CODE> in interface <CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">BitmapPool</A></CODE></DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>width</CODE> - The width in pixels of the desired <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A>.<DD><CODE>height</CODE> - The height in pixels of the desired <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A>.<DD><CODE>config</CODE> - The <A HREF="http://d.android.com/reference/android/graphics/Bitmap.Config.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap.Config</CODE></A> of the desired <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A>.
  <DT><B>Returns:</B><DD>A <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A> with exactly the given width, height, and config potentially containing
   random image data or null if no such <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A> could be obtained from the pool.<DT><B>See Also:</B><DD><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#get(int, int, android.graphics.Bitmap.Config)"><CODE>BitmapPool.get(int, int, android.graphics.Bitmap.Config)</CODE></A></DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="clearMemory()"><!-- --></A><H3>
  clearMemory</H3>
  <PRE>
  public void <B>clearMemory</B>()</PRE>
  <DL>
  <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#clearMemory()">BitmapPool</A></CODE></B></DD>
  <DD>Removes all <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A>s from the pool.
  <P>
  <DD><DL>
  <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#clearMemory()">clearMemory</A></CODE> in interface <CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">BitmapPool</A></CODE></DL>
  </DD>
  <DD><DL>
  </DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="trimMemory(int)"><!-- --></A><H3>
  trimMemory</H3>
  <PRE>
  public void <B>trimMemory</B>(int&nbsp;level)</PRE>
  <DL>
  <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#trimMemory(int)">BitmapPool</A></CODE></B></DD>
  <DD>Reduces the size of the cache by evicting items based on the given level.
  <P>
  <DD><DL>
  <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html#trimMemory(int)">trimMemory</A></CODE> in interface <CODE><A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">BitmapPool</A></CODE></DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>level</CODE> - The level from <A HREF="http://d.android.com/reference/android/content/ComponentCallbacks2.html?is-external=true" title="class or interface in android.content"><CODE>ComponentCallbacks2</CODE></A> to use to determine how many
   <A HREF="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics"><CODE>Bitmap</CODE></A>s to evict.<DT><B>See Also:</B><DD><A HREF="http://d.android.com/reference/android/content/ComponentCallbacks2.html?is-external=true" title="class or interface in android.content"><CODE>ComponentCallbacks2</CODE></A></DL>
  </DD>
  </DL>
  <!-- ========= END OF CLASS DATA ========= -->
  <HR>
  
  
  <!-- ======= START OF BOTTOM NAVBAR ====== -->
  <A NAME="navbar_bottom"><!-- --></A>
  <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  <TR>
  <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  <A NAME="navbar_bottom_firstrow"><!-- --></A>
  <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
    <TR ALIGN="center" VALIGN="top">
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
    </TR>
  </TABLE>
  </TD>
  <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  </EM>
  </TD>
  </TR>
  
  <TR>
  <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  &nbsp;<A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle"><B>PREV CLASS</B></A>&nbsp;
  &nbsp;<A HREF="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/LruBitmapPool.html" title="class in com.bumptech.glide.load.engine.bitmap_recycle"><B>NEXT CLASS</B></A></FONT></TD>
  <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
    <A HREF="../../../../../../index.html?com/bumptech/glide/load/engine/bitmap_recycle/BitmapPoolAdapter.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  &nbsp;<A HREF="BitmapPoolAdapter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  &nbsp;<SCRIPT type="text/javascript">
    <!--
    if(window==top) {
      document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
    }
    //-->
  </SCRIPT>
  <NOSCRIPT>
    <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  </NOSCRIPT>
  
  
  </FONT></TD>
  </TR>
  <TR>
  <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
    SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  </TR>
  </TABLE>
  <A NAME="skip-navbar_bottom"></A>
  <!-- ======== END OF BOTTOM NAVBAR ======= -->
  
  <HR>
  
  </BODY>
  </HTML>
  