Bug 183500 - Add basic synchronization capability to Nicosia::Buffer
Summary: Add basic synchronization capability to Nicosia::Buffer
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Zan Dobersek
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-03-08 23:12 PST by Zan Dobersek
Modified: 2018-03-08 23:51 PST (History)
3 users (show)

See Also:


Attachments
Patch (3.61 KB, patch)
2018-03-08 23:21 PST, Zan Dobersek
no flags Details | Formatted Diff | Diff
Patch for landing (3.73 KB, patch)
2018-03-08 23:48 PST, Zan Dobersek
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zan Dobersek 2018-03-08 23:12:08 PST
Add basic synchronization capability to Nicosia::Buffer
Comment 1 Zan Dobersek 2018-03-08 23:21:51 PST
Created attachment 335401 [details]
Patch
Comment 2 EWS Watchlist 2018-03-08 23:23:21 PST
Attachment 335401 [details] did not pass style-queue:


ERROR: Source/WebCore/platform/graphics/nicosia/NicosiaBuffer.cpp:72:  More than one command on the same line  [whitespace/newline] [4]
Total errors found: 1 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Carlos Garcia Campos 2018-03-08 23:27:16 PST
Comment on attachment 335401 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=335401&action=review

> Source/WebCore/platform/graphics/nicosia/NicosiaBuffer.cpp:58
> +    m_painting.state = PaintingState::InProgress;

Should we assert here that state as complete?

> Source/WebCore/platform/graphics/nicosia/NicosiaBuffer.cpp:64
> +    m_painting.state = PaintingState::Complete;

And here that is in progress?
Comment 4 Zan Dobersek 2018-03-08 23:41:47 PST
Comment on attachment 335401 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=335401&action=review

>> Source/WebCore/platform/graphics/nicosia/NicosiaBuffer.cpp:58
>> +    m_painting.state = PaintingState::InProgress;
> 
> Should we assert here that state as complete?

Makes sense.

>> Source/WebCore/platform/graphics/nicosia/NicosiaBuffer.cpp:64
>> +    m_painting.state = PaintingState::Complete;
> 
> And here that is in progress?

Right.
Comment 5 Zan Dobersek 2018-03-08 23:48:35 PST
Created attachment 335402 [details]
Patch for landing
Comment 6 Zan Dobersek 2018-03-08 23:50:29 PST
Comment on attachment 335402 [details]
Patch for landing

Clearing flags on attachment: 335402

Committed r229454: <https://trac.webkit.org/changeset/229454>
Comment 7 Zan Dobersek 2018-03-08 23:50:33 PST
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2018-03-08 23:51:19 PST
<rdar://problem/38293587>