Bug 147621

Summary: [CoordinatedGraphics] Remove unused functions in Coordinated TiledBackingStore
Product: WebKit Reporter: Gyuyoung Kim <gyuyoung.kim>
Component: New BugsAssignee: Gyuyoung Kim <gyuyoung.kim>
Status: RESOLVED FIXED    
Severity: Normal CC: cmarcelo, commit-queue, kondapallykalyan, luiz, noam, ossy, yoon
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Gyuyoung Kim 2015-08-04 00:50:33 PDT
I think we don't need to update tile size when new size is same with exist size.
Comment 1 Gyuyoung Kim 2015-08-04 00:51:38 PDT
Created attachment 258163 [details]
Patch
Comment 2 Csaba Osztrogonác 2015-08-04 03:25:36 PDT
(In reply to comment #0)
> I think we don't need to update tile size when new size is same with exist
> size.

Does this case happen frequently?
Comment 3 Gyuyoung Kim 2015-08-04 19:44:14 PDT
(In reply to comment #2)
> (In reply to comment #0)
> > I think we don't need to update tile size when new size is same with exist
> > size.
> 
> Does this case happen frequently?

This case doesn't happen frequently honestly. But it seems to me that it would be good if this condition is added.
Comment 4 Gyuyoung Kim 2015-08-05 18:09:03 PDT
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #0)
> > > I think we don't need to update tile size when new size is same with exist
> > > size.
> > 
> > Does this case happen frequently?
> 
> This case doesn't happen frequently honestly. But it seems to me that it
> would be good if this condition is added.

Ossy ping ?
Comment 5 Csaba Osztrogonác 2015-08-06 04:35:19 PDT
Comment on attachment 258163 [details]
Patch

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

> Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.cpp:58
>  void TiledBackingStore::setTileSize(const IntSize& size)
>  {
> +    if (m_tileSize == size)
> +        return;
> +
>      m_tileSize = size;
>      m_tiles.clear();
>  }

It seems setTileSize() is an unused function now and can be removed. :)
Or do you plan to push patches in the future which rely on its functionality?
Comment 6 Gyuyoung Kim 2015-08-06 06:58:44 PDT
Created attachment 258363 [details]
Patch
Comment 7 Gyuyoung Kim 2015-08-06 06:59:57 PDT
(In reply to comment #5)
> Comment on attachment 258163 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=258163&action=review
> 
> > Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.cpp:58
> >  void TiledBackingStore::setTileSize(const IntSize& size)
> >  {
> > +    if (m_tileSize == size)
> > +        return;
> > +
> >      m_tileSize = size;
> >      m_tiles.clear();
> >  }
> 
> It seems setTileSize() is an unused function now and can be removed. :)
> Or do you plan to push patches in the future which rely on its functionality?

Ok, let's remove it.
Comment 8 WebKit Commit Bot 2015-08-06 10:58:25 PDT
Comment on attachment 258363 [details]
Patch

Clearing flags on attachment: 258363

Committed r188046: <http://trac.webkit.org/changeset/188046>
Comment 9 WebKit Commit Bot 2015-08-06 10:58:30 PDT
All reviewed patches have been landed.  Closing bug.