RESOLVED FIXED 146921
[CoordinatedGraphics] Remove setContentsScale from TiledBackingStore
https://bugs.webkit.org/show_bug.cgi?id=146921
Summary [CoordinatedGraphics] Remove setContentsScale from TiledBackingStore
Ryuan Choi
Reported 2015-07-13 16:01:34 PDT
setContentsScale is only used to create TiledBackingStore.
Attachments
Patch (4.40 KB, patch)
2015-07-13 16:07 PDT, Ryuan Choi
no flags
Patch (4.94 KB, patch)
2015-07-13 17:58 PDT, Ryuan Choi
no flags
Patch (4.95 KB, patch)
2015-07-14 00:29 PDT, Ryuan Choi
no flags
Ryuan Choi
Comment 1 2015-07-13 16:07:04 PDT
Gyuyoung Kim
Comment 2 2015-07-13 17:08:07 PDT
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();
Ryuan Choi
Comment 3 2015-07-13 17:58:32 PDT
Ryuan Choi
Comment 4 2015-07-13 18:00:02 PDT
(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.
Gyuyoung Kim
Comment 5 2015-07-13 23:07:00 PDT
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)
Ryuan Choi
Comment 6 2015-07-13 23:23:42 PDT
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.
Gyuyoung Kim
Comment 7 2015-07-13 23:30:51 PDT
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.
Ryuan Choi
Comment 8 2015-07-14 00:29:27 PDT
Gyuyoung Kim
Comment 9 2015-07-15 17:52:15 PDT
Comment on attachment 256763 [details] Patch rs=me.
WebKit Commit Bot
Comment 10 2015-07-15 19:05:04 PDT
Comment on attachment 256763 [details] Patch Clearing flags on attachment: 256763 Committed r186884: <http://trac.webkit.org/changeset/186884>
WebKit Commit Bot
Comment 11 2015-07-15 19:05:09 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.