Bug 146921 - [CoordinatedGraphics] Remove setContentsScale from TiledBackingStore
Summary: [CoordinatedGraphics] Remove setContentsScale from TiledBackingStore
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryuan Choi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-13 16:01 PDT by Ryuan Choi
Modified: 2015-07-15 19:05 PDT (History)
6 users (show)

See Also:


Attachments
Patch (4.40 KB, patch)
2015-07-13 16:07 PDT, Ryuan Choi
no flags Details | Formatted Diff | Diff
Patch (4.94 KB, patch)
2015-07-13 17:58 PDT, Ryuan Choi
no flags Details | Formatted Diff | Diff
Patch (4.95 KB, patch)
2015-07-14 00:29 PDT, Ryuan Choi
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryuan Choi 2015-07-13 16:01:34 PDT
setContentsScale is only used to create TiledBackingStore.
Comment 1 Ryuan Choi 2015-07-13 16:07:04 PDT
Created attachment 256741 [details]
Patch
Comment 2 Gyuyoung Kim 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();
Comment 3 Ryuan Choi 2015-07-13 17:58:32 PDT
Created attachment 256752 [details]
Patch
Comment 4 Ryuan Choi 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.
Comment 5 Gyuyoung Kim 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)
Comment 6 Ryuan Choi 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.
Comment 7 Gyuyoung Kim 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.
Comment 8 Ryuan Choi 2015-07-14 00:29:27 PDT
Created attachment 256763 [details]
Patch
Comment 9 Gyuyoung Kim 2015-07-15 17:52:15 PDT
Comment on attachment 256763 [details]
Patch

rs=me.
Comment 10 WebKit Commit Bot 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>
Comment 11 WebKit Commit Bot 2015-07-15 19:05:09 PDT
All reviewed patches have been landed.  Closing bug.