#include <stdint.h>
// INTERNAL INCLUDES
-#include <dali/public-api/images/bitmap-image.h>
+#include <dali/public-api/images/buffer-image.h>
#include <dali/internal/common/message.h>
#include <dali/internal/render/gl-resources/texture.h>
-#include <dali/internal/common/bitmap-upload.h>
+#include <dali/internal/render/gl-resources/texture-cache.h>
#include <dali/integration-api/bitmap.h>
#include <dali/internal/event/images/bitmap-compressed.h>
#include <dali/integration-api/debug.h>
* Constructor
* Creates a new texture object from a Bitmap
* @param[in] bitmap The Bitmap
- * @param context The GL context
+ * @param[in] context The GL context
+ * @param[in] discardPolicy The discard policy
*/
- CompressedBitmapTexture( Internal::BitmapCompressed* const bitmap, Context& context );
+ CompressedBitmapTexture( Internal::BitmapCompressed* const bitmap, Context& context, ResourcePolicy::Discardable discardPolicy );
/**
* Destructor.
private:
Internal::BitmapCompressedPtr mBitmap; ///< The Bitmap the Texture was created from (may be NULL)
+ Pixel::Format mPixelFormat;
// Changes scope, should be at end of class
DALI_LOG_OBJECT_STRING_DECLARATION;