Changeset 69114 in webkit


Ignore:
Timestamp:
Oct 5, 2010 9:42:34 AM (14 years ago)
Author:
kseo@webkit.org
Message:

[BREWMP] Use PlatformRefPtr in getDisplayInfo
https://bugs.webkit.org/show_bug.cgi?id=47023

Reviewed by Kent Tamura.

Use PlatformRefPtr to release IBitmap* automatically.

  • platform/brew/ScreenBrew.cpp:

(WebCore::getDisplayInfo):

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r69112 r69114  
     12010-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
    1132010-10-05  Kristian Monsen  <kristianm@google.com>
    214
  • trunk/WebCore/platform/brew/ScreenBrew.cpp

    r54226 r69114  
    3737#include <AEEAppGen.h>
    3838#include <AEEStdLib.h>
     39#include <wtf/brew/RefPtrBrew.h>
    3940
    4041namespace WebCore {
     
    4950{
    5051    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));
    5353
    5454    AEEBitmapInfo bitmapInfo;
    55     IBitmap_GetInfo(bitmap, &bitmapInfo, sizeof(AEEBitmapInfo));
     55    IBitmap_GetInfo(bitmap.get(), &bitmapInfo, sizeof(AEEBitmapInfo));
    5656
    5757    info.width  = bitmapInfo.cx;
    5858    info.height = bitmapInfo.cy;
    5959    info.depth  = bitmapInfo.nDepth;
    60 
    61     IBitmap_Release(bitmap);
    6260}
    6361
Note: See TracChangeset for help on using the changeset viewer.