Add _BitmapImpl class method
authoryounghoon song <ysens.song@samsung.com>
Mon, 2 Sep 2013 02:59:53 +0000 (11:59 +0900)
committeryounghoon song <ysens.song@samsung.com>
Mon, 2 Sep 2013 03:10:35 +0000 (12:10 +0900)
Change-Id: Iaaf93b07de2f7f8b2e78d8c870affff1b2f6d652

src/graphics/FGrp_Bitmap.cpp
src/graphics/FGrp_BitmapImpl.cpp
src/graphics/inc/FGrp_BitmapImpl.h

index 24ecae2..e7048ed 100644 (file)
@@ -639,7 +639,7 @@ _Bitmap::Construct(const void* pExtBuffer, int width, int height, int bitsPerPix
        SysTryReturnResult(NID_GRP, __pScratchPad16 || __pScratchPad32, E_OUT_OF_MEMORY, "Memory allocation failed.");
 
        this->__hasOwnership = false;
-       this->__isOpaqueAllOver = true;
+       this->__isOpaqueAllOver = 0;
 
        this->__bitmapPixelFormat = (bitsPerPixel == 32) ? BITMAP_PIXEL_FORMAT_ARGB8888 : BITMAP_PIXEL_FORMAT_RGB565;
 
index 2ffe89c..c583f8b 100644 (file)
@@ -1646,6 +1646,13 @@ _BitmapImpl::CheckNinePatchedBitmapStrictly(const Bitmap& bitmap)
        }
 }
 
+void
+_BitmapImpl::SetNinePatchedTagByForce(bool isNinePatched)
+{
+       _sharedItem->associated.hasBeenDetectedByUsingName = true;
+       _sharedItem->associated.determinedNinePatchedAtFirst = isNinePatched;
+}
+
 bool
 _BitmapImpl::_SetCallback(void (* DestroyCallback)(void*), void* pDestroyCallbackParam,
                              void (* LockCallback)(void*), void* pLockCallbackParam,
index c031bfb..401b0a0 100644 (file)
@@ -117,6 +117,8 @@ public:
        result LockFast(BufferInfo& info, long timeout = INFINITE);
        result UnlockFast(void);
 
+       void SetNinePatchedTagByForce(bool isNinePatched);
+
        static bool CheckNinePatchedBitmapStrictly(const Bitmap& bitmap);
 
        /**