VirtualBox

Ignore:
Timestamp:
Feb 4, 2008 5:45:03 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
27890
Message:

A quick implementation sketch of a solution to the SetVisibleRegion? vs. paintEvent race again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxFrameBuffer.h

    r6725 r6794  
    509509    ulong mPixelFormat;
    510510    CGImageRef mImage;
    511 #if 1
    512     CGRect *mRegionRects;
    513     ULONG mRegionCount;
    514 #else
    515511    typedef struct
    516512    {
     
    520516        ULONG used;
    521517        /** Variable sized array of the rectangle that makes up the region. */
    522         CGRECT rcts[1];
     518        CGRect rcts[1];
    523519    } RegionRects;
    524520    /** The current valid region, all access is by atomic cmpxchg or atomic xchg.
     
    536532     * This is operated with atomic cmpxchg and atomic xchg. */
    537533    RegionRects volatile *mRegionUnused;
    538 #endif
    539534};
    540535
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette