Changeset 182585 in webkit


Ignore:
Timestamp:
Apr 8, 2015, 8:44:44 PM (10 years ago)
Author:
Simon Fraser
Message:

Add a debug assertion that will fire if we try to paint layer contents on a background thread
https://bugs.webkit.org/show_bug.cgi?id=143547

Reviewed by Alexey Proskuryakov.

New assertion to catch cases where other frameworks erroneously trigger painting
on a non-main (or non-Web) thread.

  • platform/graphics/mac/WebLayer.mm:

(-[WebSimpleLayer display]):
(-[WebSimpleLayer drawInContext:]):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r182581 r182585  
     12015-04-08  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Add a debug assertion that will fire if we try to paint layer contents on a background thread
     4        https://bugs.webkit.org/show_bug.cgi?id=143547
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        New assertion to catch cases where other frameworks erroneously trigger painting
     9        on a non-main (or non-Web) thread.
     10
     11        * platform/graphics/mac/WebLayer.mm:
     12        (-[WebSimpleLayer display]):
     13        (-[WebSimpleLayer drawInContext:]):
     14
    1152015-04-08  Brent Fulgham  <bfulgham@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/mac/WebLayer.mm

    r170071 r182585  
    108108        WebThreadLock();
    109109#endif
     110    ASSERT(isMainThread());
    110111    [super display];
    111112    PlatformCALayer* layer = PlatformCALayer::platformCALayer(self);
     
    120121        WebThreadLock();
    121122#endif
     123    ASSERT(isMainThread());
    122124    PlatformCALayer* layer = PlatformCALayer::platformCALayer(self);
    123125    if (layer && layer->owner()) {
Note: See TracChangeset for help on using the changeset viewer.