WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
147137
[CoordinatedGraphics] Remove unnecessary two virtual methods from TiledBackingStoreClient
https://bugs.webkit.org/show_bug.cgi?id=147137
Summary
[CoordinatedGraphics] Remove unnecessary two virtual methods from TiledBackin...
Ryuan Choi
Reported
2015-07-20 19:30:22 PDT
tiledBackingStoreContentsRect() and tiledBackingStoreVisibleRect() are ambiguous methods to get contentsRect and visibleRect from CoordinatedGraphicsLayer. CoordinatedGraphicsLayer can pass them directly if needed.
Attachments
Patch
(13.56 KB, patch)
2015-07-20 19:39 PDT
,
Ryuan Choi
no flags
Details
Formatted Diff
Diff
Patch
(13.82 KB, patch)
2015-08-26 20:38 PDT
,
Ryuan Choi
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ryuan Choi
Comment 1
2015-07-20 19:39:16 PDT
Created
attachment 257156
[details]
Patch
Gyuyoung Kim
Comment 2
2015-08-17 01:05:02 PDT
Comment on
attachment 257156
[details]
Patch Any reason you didn't submit to EWS ?
Ryuan Choi
Comment 3
2015-08-26 06:53:38 PDT
(In reply to
comment #2
)
> Comment on
attachment 257156
[details]
> Patch > > Any reason you didn't submit to EWS ?
Sorry for the late answer. I didn't know it. I submit to EWS
Gyuyoung Kim
Comment 4
2015-08-26 18:07:59 PDT
Comment on
attachment 257156
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=257156&action=review
> Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.cpp:-132 > - IntRect dirtyRect = mapFromContents(contentsRect);
When we don't adjust mapFromContents(), is there any problem ? mapFromContents() applies a content scale factor. IntRect TiledBackingStore::mapFromContents(const IntRect& rect) const { return enclosingIntRect(FloatRect(rect.x() * m_contentsScale, rect.y() * m_contentsScale, rect.width() * m_contentsScale, rect.height() * m_contentsScale)); }
Ryuan Choi
Comment 5
2015-08-26 18:32:43 PDT
Comment on
attachment 257156
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=257156&action=review
>> Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.cpp:-132 >> - IntRect dirtyRect = mapFromContents(contentsRect); > > When we don't adjust mapFromContents(), is there any problem ? > > mapFromContents() applies a content scale factor. > > IntRect TiledBackingStore::mapFromContents(const IntRect& rect) const > { > return enclosingIntRect(FloatRect(rect.x() * m_contentsScale, > rect.y() * m_contentsScale, > rect.width() * m_contentsScale, > rect.height() * m_contentsScale)); > }
With this patch, coverageRatio will get dirtyRect which is already scaled, while previous coverageRatio get contentsRect.
> Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.cpp:151 > +void TiledBackingStore::createTiles(const IntRect& visibleRect, const IntRect& contentsRect)
I will rename these as scaledXXX not to confuse.
Ryuan Choi
Comment 6
2015-08-26 20:38:25 PDT
Created
attachment 260026
[details]
Patch
Gyuyoung Kim
Comment 7
2015-08-27 03:45:23 PDT
Comment on
attachment 260026
[details]
Patch I can't find behavior change here. So rs=me that there is no behavior change on the assumption. However someone(yoon?) might want to take a final look before landing.
WebKit Commit Bot
Comment 8
2015-08-30 16:30:11 PDT
Comment on
attachment 260026
[details]
Patch Clearing flags on attachment: 260026 Committed
r189161
: <
http://trac.webkit.org/changeset/189161
>
WebKit Commit Bot
Comment 9
2015-08-30 16:30:22 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug