From: younghoon song Date: Mon, 2 Sep 2013 02:59:53 +0000 (+0900) Subject: Add _BitmapImpl class method X-Git-Tag: accepted/tizen/20131002.165803^2~249 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b814c878db247a6bf863c47faf35100f7f8a61b5;p=platform%2Fframework%2Fnative%2Fuifw.git Add _BitmapImpl class method Change-Id: Iaaf93b07de2f7f8b2e78d8c870affff1b2f6d652 --- diff --git a/src/graphics/FGrp_Bitmap.cpp b/src/graphics/FGrp_Bitmap.cpp index 24ecae2..e7048ed 100644 --- a/src/graphics/FGrp_Bitmap.cpp +++ b/src/graphics/FGrp_Bitmap.cpp @@ -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; diff --git a/src/graphics/FGrp_BitmapImpl.cpp b/src/graphics/FGrp_BitmapImpl.cpp index 2ffe89c..c583f8b 100644 --- a/src/graphics/FGrp_BitmapImpl.cpp +++ b/src/graphics/FGrp_BitmapImpl.cpp @@ -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, diff --git a/src/graphics/inc/FGrp_BitmapImpl.h b/src/graphics/inc/FGrp_BitmapImpl.h index c031bfb..401b0a0 100644 --- a/src/graphics/inc/FGrp_BitmapImpl.h +++ b/src/graphics/inc/FGrp_BitmapImpl.h @@ -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); /**