Closed Bug 1150381 Opened 9 years ago Closed 9 years ago

[LayerScope]: Don't showing the same texture in the same frame on LayerScope.

Categories

(Core :: Graphics, defect)

ARM
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: vliu, Assigned: vliu)

Details

Attachments

(1 file, 2 obsolete files)

In some situations, the device will paint the same texture in a frame. This case will also draw twice on Layerscope. This bug intends to come out a patch to remove one of them on Layerscope since we don't need to show it twice.
Summary: [LayerScope]: Don't showing the same texture ID in Layerscope in the same frame. → [LayerScope]: Don't showing the same texture in the same frame on LayerScope.
Assignee: nobody → vliu
Attached patch WIP-1.patch (obsolete) — Splinter Review
Hi Chiajung,

As our discussion offline, the proposed patch was attached. Could you have a feedback for the patch? Thanks
Attachment #8587204 - Flags: feedback?(chung)
Comment on attachment 8587204 [details] [diff] [review]
WIP-1.patch

Review of attachment 8587204 [details] [diff] [review]:
-----------------------------------------------------------------

I think layer scope may need some refactoring to abstract Session and Frame submitting.
That way, we should able to avoid static object like the texture catch

::: gfx/layers/LayerScope.cpp
@@ +1376,4 @@
>  LayerScopeAutoFrame::LayerScopeAutoFrame(int64_t aFrameStamp)
>  {
>      // Do Begin Frame
> +    SenderHelper::ClearTextureIdList();

Move into BeginFrame would be better.
Comment on attachment 8587204 [details] [diff] [review]
WIP-1.patch

Review of attachment 8587204 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good to me.
Attachment #8587204 - Flags: feedback?(chung) → feedback+
Attached patch bug-1150381-fix.patch (obsolete) — Splinter Review
Hi Chiajung,

Thanks for your feedback for my WIP. Based on your suggestion, I rearrange my patch to review. Can you please help me to review my patch?
Attachment #8590587 - Flags: review?(chung)
Comment on attachment 8590587 [details] [diff] [review]
bug-1150381-fix.patch

Review of attachment 8590587 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM. Please remove redundant white space before uploading

::: gfx/layers/LayerScope.cpp
@@ +1388,5 @@
>  void
>  LayerScopeAutoFrame::BeginFrame(int64_t aFrameStamp)
>  {
> +    SenderHelper::ClearTextureIdList();
> +    

space.
Attachment #8590587 - Flags: review?(chung) → review+
(In reply to Chiajung Hung [:chiajung] from comment #5)
> Comment on attachment 8590587 [details] [diff] [review]
> bug-1150381-fix.patch
> 
> Review of attachment 8590587 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> LGTM. Please remove redundant white space before uploading
> 
> ::: gfx/layers/LayerScope.cpp
> @@ +1388,5 @@
> >  void
> >  LayerScopeAutoFrame::BeginFrame(int64_t aFrameStamp)
> >  {
> > +    SenderHelper::ClearTextureIdList();
> > +    
> 
> space.

Thanks for the review. I will remove the space when I land it.
(In reply to Vincent Liu[:vliu] from comment #4)
> Created attachment 8590587 [details] [diff] [review]
> bug-1150381-fix.patch
> 
> Hi Chiajung,
> 
> Thanks for your feedback for my WIP. Based on your suggestion, I rearrange
> my patch to review. Can you please help me to review my patch?

The first version of patch caused the try server fail since the declaration of List<> can't find its definition in non-Android platform. I tried to change to std::list instead. Talked with review on IRC, and he is fine with this change.
Attachment #8587204 - Attachment is obsolete: true
Attachment #8590587 - Attachment is obsolete: true
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/7ebc6fb05d55
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: