Changeset 69114 in webkit
- Timestamp:
- Oct 5, 2010 9:42:34 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r69112 r69114 1 2010-10-05 Kwang Yul Seo <skyul@company100.net> 2 3 Reviewed by Kent Tamura. 4 5 [BREWMP] Use PlatformRefPtr in getDisplayInfo 6 https://bugs.webkit.org/show_bug.cgi?id=47023 7 8 Use PlatformRefPtr to release IBitmap* automatically. 9 10 * platform/brew/ScreenBrew.cpp: 11 (WebCore::getDisplayInfo): 12 1 13 2010-10-05 Kristian Monsen <kristianm@google.com> 2 14 -
trunk/WebCore/platform/brew/ScreenBrew.cpp
r54226 r69114 37 37 #include <AEEAppGen.h> 38 38 #include <AEEStdLib.h> 39 #include <wtf/brew/RefPtrBrew.h> 39 40 40 41 namespace WebCore { … … 49 50 { 50 51 IDisplay* display = reinterpret_cast<AEEApplet*>(GETAPPINSTANCE())->m_pIDisplay; 51 IBitmap* bitmap = IDisplay_GetDestination(display); 52 ASSERT(bitmap); 52 PlatformRefPtr<IBitmap> bitmap = adoptPlatformRef(IDisplay_GetDestination(display)); 53 53 54 54 AEEBitmapInfo bitmapInfo; 55 IBitmap_GetInfo(bitmap , &bitmapInfo, sizeof(AEEBitmapInfo));55 IBitmap_GetInfo(bitmap.get(), &bitmapInfo, sizeof(AEEBitmapInfo)); 56 56 57 57 info.width = bitmapInfo.cx; 58 58 info.height = bitmapInfo.cy; 59 59 info.depth = bitmapInfo.nDepth; 60 61 IBitmap_Release(bitmap);62 60 } 63 61
Note: See TracChangeset
for help on using the changeset viewer.