Bug 179970

Summary: [CoordGraphics] Remove relay CoordinatedBuffer::Client implementations
Product: WebKit Reporter: Zan Dobersek <zan>
Component: New BugsAssignee: Zan Dobersek <zan>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, cgarcia, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Zan Dobersek 2017-11-23 02:21:07 PST
[CoordGraphics] Remove relay CoordinatedBuffer::Client implementations
Comment 1 Zan Dobersek 2017-11-23 02:36:07 PST
Created attachment 327490 [details]
Patch
Comment 2 Carlos Garcia Campos 2017-11-23 02:54:30 PST
Comment on attachment 327490 [details]
Patch

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

Yes!

> Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedImageBacking.cpp:114
> +    {
> +        GraphicsContext& context = m_buffer->context();
> +        context.save();
> +        context.clip(rect);
> +        context.drawImage(*m_image, rect, rect);
> +        context.restore();
> +    }

Why do we need another scope?

> Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/UpdateAtlas.cpp:92
> +    }

Ditto.
Comment 3 Zan Dobersek 2017-11-23 02:59:09 PST
Comment on attachment 327490 [details]
Patch

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

>> Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedImageBacking.cpp:114
>> +    }
> 
> Why do we need another scope?

Just for clarity, to limit the GraphicsContext reference and operations on it to a single block.
Comment 4 Zan Dobersek 2017-11-23 03:04:08 PST
Comment on attachment 327490 [details]
Patch

Clearing flags on attachment: 327490

Committed r225113: <https://trac.webkit.org/changeset/225113>
Comment 5 Zan Dobersek 2017-11-23 03:04:12 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2017-11-23 03:05:20 PST
<rdar://problem/35674932>