Closed Bug 1287785 Opened 8 years ago Closed 8 years ago

avoid copying ScrollMetadata values in RenderLayers

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: froydnj, Assigned: froydnj)

Details

Attachments

(1 file)

Using `auto' here means that we're copying each ScrollMetadata value as
we examine it.  Using `auto&' here means that we don't copy, which is
probably the intended behavior.
Comment on attachment 8772398 [details] [diff] [review]
avoid copying ScrollMetadata values in RenderLayers

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

::: gfx/layers/composite/ContainerLayerComposite.cpp
@@ +598,5 @@
>        continue;
>      }
>  
>      if (gfxPrefs::LayersDrawFPS()) {
> +      for (auto& metadata : layer->GetAllScrollMetadata()) {

Might as well use |const auto&|, to indicate the loop doesn't modify the metadata objects.
Attachment #8772398 - Flags: review?(botond) → review+
Pushed by nfroyd@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/920b164008c2
avoid copying ScrollMetadata values in RenderLayers; r=botond
https://hg.mozilla.org/mozilla-central/rev/920b164008c2
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: