| Summary: | [CoordinatedGraphics] Remove setContentsScale from TiledBackingStore | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Ryuan Choi <ryuan.choi> | ||||||||
| Component: | WebKit EFL | Assignee: | Ryuan Choi <ryuan.choi> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | cmarcelo, commit-queue, kondapallykalyan, lucas.de.marchi, luiz, noam | ||||||||
| Priority: | P2 | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Ryuan Choi
2015-07-13 16:01:34 PDT
Created attachment 256741 [details]
Patch
Comment on attachment 256741 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256741&action=review > Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.cpp:-124 > - m_tiles.clear(); If there is no problem when we don't call below two functions, LGTM. m_tiles.clear(); coverWithTilesIfNeeded(); Created attachment 256752 [details]
Patch
(In reply to comment #2) > Comment on attachment 256741 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=256741&action=review > > > Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.cpp:-124 > > - m_tiles.clear(); > > If there is no problem when we don't call below two functions, LGTM. > > m_tiles.clear(); We don't need to clear tiles because TiledBackingStore didn't make them. > coverWithTilesIfNeeded(); I missed to cover it. I updated the patch. thanks. Comment on attachment 256752 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256752&action=review To be honest, I don't know what is benefit when we drop setContentsScale(). > Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.h:41 > + TiledBackingStore(TiledBackingStoreClient*, float contentsScale); It would be nice if we set default value. TiledBackingStore(TiledBackingStoreClient*, float contentsScale = 1.f) Comment on attachment 256752 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256752&action=review >> Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.h:41 >> + TiledBackingStore(TiledBackingStoreClient*, float contentsScale); > > It would be nice if we set default value. > > TiledBackingStore(TiledBackingStoreClient*, float contentsScale = 1.f) Hmm, are there any reason? We alwasys create TiledBackingStore with two arguments. Comment on attachment 256752 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256752&action=review >>> Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.h:41 >>> + TiledBackingStore(TiledBackingStoreClient*, float contentsScale); >> >> It would be nice if we set default value. >> >> TiledBackingStore(TiledBackingStoreClient*, float contentsScale = 1.f) > > Hmm, are there any reason? > We alwasys create TiledBackingStore with two arguments. Because we have initialized the contentsScale with 1.f. , m_contentsScale(1.f) I think it would be good if we keep it in constructor as well. If so, we can use a argument when we don't need to set other scale value. Created attachment 256763 [details]
Patch
Comment on attachment 256763 [details]
Patch
rs=me.
Comment on attachment 256763 [details] Patch Clearing flags on attachment: 256763 Committed r186884: <http://trac.webkit.org/changeset/186884> All reviewed patches have been landed. Closing bug. |